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
Line 
1package schedframe.events;
2
3import schedframe.resources.computing.profiles.energy.ResourceEvent;
4import schedframe.resources.devices.PhysicalResource;
5
6public class ResourceEventCommand implements EventCommand {
7
8        private PhysicalResource resource;
9       
10        public ResourceEventCommand(PhysicalResource resource) {
11                this.resource = resource;
12        }
13
14        public void execute(ResourceEvent event) {
15                resource.getEventHandler().handleResourceEvent(event);
16        }
17
18}
Note: See TracBrowser for help on using the repository browser.