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
-
Method Summary
Modifier and TypeMethodDescriptionfinal void
setIntensity
(ActuatorID actuatorID, int intensity) Set the intensity of the actuator.final void
turnOff
(ActuatorID actuatorID) Turn the actuator off.final void
turnOn
(ActuatorID actuatorID) Turn the actuator on.
-
Constructor Details
-
WotInvoker
public WotInvoker()
-
-
Method Details
-
setIntensity
Description copied from interface:DimmableInvoker
Set the intensity of the actuator.- Specified by:
setIntensity
in interfaceDimmableInvoker
- Parameters:
actuatorID
- the id of the actuator.intensity
- the intensity to set in the actuator.
-
turnOn
Description copied from interface:SwitchableInvoker
Turn the actuator on.- Specified by:
turnOn
in interfaceSwitchableInvoker
- Parameters:
actuatorID
- the id of the actuator.
-
turnOff
Description copied from interface:SwitchableInvoker
Turn the actuator off.- Specified by:
turnOff
in interfaceSwitchableInvoker
- Parameters:
actuatorID
- the id of the actuator.
-