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(Event event) { resource.getEventHandler().handleResourceEvent(event); } }