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

Revision 1415, 643 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.EventCommand;
4import schedframe.resources.computing.ComputingResource;
5import schedframe.resources.computing.profiles.energy.ResourceEvent;
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(ResourceEvent event) {
16                SchedulingEvent ev = new ResourceStateChangedEvent(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.