Package entity.actuator
Class SwitchableActuator
java.lang.Object
entity.actuator.Actuator
entity.actuator.SwitchableActuator
An
Actuator that can be switched on and off.-
Constructor Summary
ConstructorsConstructorDescriptionSwitchableActuator(ActuatorID actuatorID, ActuatorType actuatorType) Default constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoidturnOff(SwitchableInvoker invoker) Turn off the actuator.voidturnOn(SwitchableInvoker invoker) Turn on the actuator.Methods inherited from class entity.actuator.Actuator
equals, getActuatorType, getId, hashCode
-
Constructor Details
-
SwitchableActuator
Default constructor.- Parameters:
actuatorID- the actuator id.actuatorType- the actuator type.
-
-
Method Details
-
turnOn
Turn on the actuator.- Parameters:
invoker- the invoker to call.
-
turnOff
Turn off the actuator.- Parameters:
invoker- the invoker to call.
-