package schedframe.events; import schedframe.resources.devices.PhysicalResource; public class ResourceEventCommand implements EventCommand { private PhysicalResource resource; public ResourceEventCommand(PhysicalResource resource) { this.resource = resource; } public void execute(EventType evType) { //TODO - add event factory throw new RuntimeException("not implemented"); } public void execute(Event event) { resource.getEventHandler().handleResourceEvent(event); } }