Package infrastructure.wot
Class WotInvoker
java.lang.Object
infrastructure.wot.WotInvoker
- All Implemented Interfaces:
DimmableInvoker,SwitchableInvoker
Web of Thing Invoker in order to be able to communicate with things and invoke actions.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal voidsetIntensity(ActuatorID actuatorID, int intensity) Set the intensity of the actuator.final voidturnOff(ActuatorID actuatorID) Turn the actuator off.final voidturnOn(ActuatorID actuatorID) Turn the actuator on.
-
Constructor Details
-
WotInvoker
public WotInvoker()
-
-
Method Details
-
setIntensity
Description copied from interface:DimmableInvokerSet the intensity of the actuator.- Specified by:
setIntensityin interfaceDimmableInvoker- Parameters:
actuatorID- the id of the actuator.intensity- the intensity to set in the actuator.
-
turnOn
Description copied from interface:SwitchableInvokerTurn the actuator on.- Specified by:
turnOnin interfaceSwitchableInvoker- Parameters:
actuatorID- the id of the actuator.
-
turnOff
Description copied from interface:SwitchableInvokerTurn the actuator off.- Specified by:
turnOffin interfaceSwitchableInvoker- Parameters:
actuatorID- the id of the actuator.
-