public abstract class UtilSensorCallee 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.
The actual service method of the
addNewServiceProfiles, addNewServiceProfiles, busDyingOut, communicationChannelBroken, getMyID, handleRequest, removeMatchingProfiles
close, getComment, getLabel, getType, getURI, setComment, setLabel
public UtilSensorCallee(ModuleContext context, String namespace, Sensor sensor) throws InvalidOntologyUtilException
BE CAREFUL: This will only work with sensors that have StatusValue as HAS_VALUE property. Others, like DimmerSensor, will throw an exception.
context- The Module Context of uAAL
namespace- The namespace of your server, ending with the character #
sensor- The ontology instance of the sensor you are controlling. The more properties it has set, the better.
InvalidOntologyUtilException- when an sensor 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 executeGet()
Copyright © 2015 universAAL Consortium. All Rights Reserved.