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

Revision 1207, 495 bytes checked in by wojtekp, 11 years ago (diff)
  • Property svn:mime-type set to text/plain
RevLine 
[477]1package schedframe.events;
2
[1207]3import schedframe.resources.devices.PhysicalResource;
[477]4
5public class ResourceEventCommand implements EventCommand {
6
[1207]7        private PhysicalResource resource;
[477]8       
[1207]9        public ResourceEventCommand(PhysicalResource resource) {
10                this.resource = resource;
[477]11        }
12       
13        public void execute(EventType evType) {
14                //TODO - add event factory
15                throw new RuntimeException("not implemented");
16        }
17
18        public void execute(Event event) {
[1207]19                resource.getEventHandler().handleResourceEvent(event);
[477]20        }
21
22}
Note: See TracBrowser for help on using the repository browser.