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

Revision 1415, 448 bytes checked in by wojtekp, 11 years ago (diff)
  • Property svn:mime-type set to text/plain
RevLine 
[477]1package schedframe.events;
2
[1415]3import schedframe.resources.computing.profiles.energy.ResourceEvent;
[1207]4import schedframe.resources.devices.PhysicalResource;
[477]5
6public class ResourceEventCommand implements EventCommand {
7
[1207]8        private PhysicalResource resource;
[477]9       
[1207]10        public ResourceEventCommand(PhysicalResource resource) {
11                this.resource = resource;
[477]12        }
13
[1415]14        public void execute(ResourceEvent event) {
[1207]15                resource.getEventHandler().handleResourceEvent(event);
[477]16        }
17
18}
Note: See TracBrowser for help on using the repository browser.