public abstract class UtilActuatorCallee extends ServiceCallee
|Constructor and Description|
Default constructor of the class.
|Modifier and Type||Method and Description|
When a GET STATUS service request is received, this method is called automatically.
When a SET OFF service request is received, this method is called automatically.
When a SET ON service request is received, this method is called automatically.
The actual service method of the
addNewServiceProfiles, addNewServiceProfiles, busDyingOut, communicationChannelBroken, getMyID, handleRequest, removeMatchingProfiles
close, getComment, getLabel, getType, getURI, setComment, setLabel
public UtilActuatorCallee(ModuleContext context, String namespace, Actuator actuator) throws InvalidOntologyUtilException
BE CAREFUL: This will only work with actuators that have StatusValue as HAS_VALUE property. Others, like DimmerActuator, will throw an exception.
context- The Module Context of uAAL
namespace- The namespace of your server, ending with the character #
actuator- The ontology instance of the actuator you are controlling. The more properties it has set, the better.
InvalidOntologyUtilException- when an actuator is passed that is does not have StatusValue as type restriction of its HAS_VALUE property
public ServiceResponse handleCall(ServiceCall call)
ServiceCallee. It is called by the bus whenever there is a call that need to be serviced by this
public abstract boolean executeOn()
trueif the actuator could be set to ON
public abstract boolean executeOff()
trueif the actuator could be set to OFF
public abstract boolean executeGet()
Copyright © 2015 universAAL Consortium. All Rights Reserved.