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

Revision 1316, 371 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.devices.PhysicalResource;
4
5public class ResourceEventCommand implements EventCommand {
6
7        private PhysicalResource resource;
8       
9        public ResourceEventCommand(PhysicalResource resource) {
10                this.resource = resource;
11        }
12
13        public void execute(Event event) {
14                resource.getEventHandler().handleResourceEvent(event);
15        }
16
17}
Note: See TracBrowser for help on using the repository browser.