org.universAAL.samples.utils.app
Class CalleeExample

Package class diagram package CalleeExample
java.lang.Object
  extended by org.universAAL.middleware.bus.member.BusMember
      extended by org.universAAL.middleware.bus.member.Callee
          extended by org.universAAL.middleware.service.ServiceCallee
              extended by org.universAAL.support.utils.service.top.UtilActuatorCallee
                  extended by org.universAAL.samples.utils.app.CalleeExample

public class CalleeExample
extends UtilActuatorCallee


Field Summary
 
Fields inherited from class org.universAAL.middleware.bus.member.BusMember
busResourceURI, owner, theBus
 
Constructor Summary
CalleeExample(ModuleContext context, String namespace, Actuator actuator)
           
 
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 org.universAAL.support.utils.service.top.UtilActuatorCallee
handleCall
 
Methods inherited from class org.universAAL.middleware.service.ServiceCallee
addNewServiceProfiles, busDyingOut, getMyID, handleRequest, removeMatchingProfiles
 
Methods inherited from class org.universAAL.middleware.bus.member.BusMember
close, getType, getURI
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CalleeExample

public CalleeExample(ModuleContext context,
                     String namespace,
                     Actuator actuator)
              throws InvalidOntologyUtilException
Throws:
InvalidOntologyUtilException
Method Detail

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.