org.universAAL.samples.utils.app
Class CalleeExample
java.lang.Object
org.universAAL.middleware.bus.member.BusMember
org.universAAL.middleware.bus.member.Callee
org.universAAL.middleware.service.ServiceCallee
org.universAAL.support.utils.service.top.UtilActuatorCallee
org.universAAL.samples.utils.app.CalleeExample
public class CalleeExample
- extends UtilActuatorCallee
Method Summary |
void |
communicationChannelBroken()
This abstract method is called for each member of the bus when the bus is
being stopped. |
boolean |
executeGet()
When a GET STATUS service request is received, this method is called
automatically. |
boolean |
executeOff()
When a SET OFF service request is received, this method is called
automatically. |
boolean |
executeOn()
When a SET ON service request is received, this method is called
automatically. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CalleeExample
public CalleeExample(ModuleContext context,
String namespace,
Actuator actuator)
throws InvalidOntologyUtilException
- Throws:
InvalidOntologyUtilException
executeGet
public boolean executeGet()
- Description copied from class:
UtilActuatorCallee
- When a GET STATUS service request is received, this method is called
automatically.
- Specified by:
executeGet
in class UtilActuatorCallee
- Returns:
- The Boolean value representing the status property of the
actuator.
executeOff
public boolean executeOff()
- Description copied from class:
UtilActuatorCallee
- When a SET OFF service request is received, this method is called
automatically.
- Specified by:
executeOff
in class UtilActuatorCallee
- Returns:
true
if the actuator could be set to OFF
executeOn
public boolean executeOn()
- Description copied from class:
UtilActuatorCallee
- When a SET ON service request is received, this method is called
automatically.
- Specified by:
executeOn
in class UtilActuatorCallee
- Returns:
true
if the actuator could be set to ON
communicationChannelBroken
public void communicationChannelBroken()
- Description copied from class:
ServiceCallee
- This abstract method is called for each member of the bus when the bus is
being stopped.
- Specified by:
communicationChannelBroken
in class ServiceCallee
Copyright © 2014 universAAL Consortium. All Rights Reserved.