source: DCWoRMS/branches/coolemall/src/schedframe/events/scheduling/SchedulingEventCommand.java @ 1316

Revision 1316, 626 bytes checked in by wojtekp, 11 years ago (diff)
  • Property svn:mime-type set to text/plain
Line 
1package schedframe.events.scheduling;
2
3import schedframe.events.Event;
4import schedframe.events.EventCommand;
5import schedframe.resources.computing.ComputingResource;
6
7public class SchedulingEventCommand implements EventCommand {
8
9        private ComputingResource compResource;
10       
11        public SchedulingEventCommand (ComputingResource compResource) {
12                this.compResource = compResource;
13        }
14       
15        public void execute(Event event) {
16                SchedulingEvent ev = new ResourceStateChangedEvent(compResource.getFullName(), event.getType());
17                ev.setSource(compResource.getFullName());
18                compResource.getEventHandler().handleSchedulingEvent(ev);
19        }
20
21}
Note: See TracBrowser for help on using the repository browser.