
public class OnOffLightCallee extends ExporterActuatorCallee implements it.cnr.isti.zigbee.ha.cluster.glue.general.event.OnOffListener
IN_DEVICE, NAMESPACE, newProfiles, OUT_GET_ON_OFF, SERVICE_GET_ON_OFF, SERVICE_TURN_OFF, SERVICE_TURN_ONbusResourceURI, owner, theBus| Constructor and Description |
|---|
OnOffLightCallee(ModuleContext context,
it.cnr.isti.zigbee.ha.device.api.lighting.OnOffLight serv)
Constructor to be used in the exporter, which sets up all the exporting
process.
|
| Modifier and Type | Method and Description |
|---|---|
void |
changedOnOff(it.cnr.isti.zigbee.ha.cluster.glue.general.event.OnOffEvent event) |
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.
|
ServiceResponse |
handleCall(ServiceCall call)
The actual service method of the
ServiceCallee. |
communicationChannelBroken, getServiceProfiles, unregisteraddNewServiceProfiles, addNewServiceProfiles, busDyingOut, getMyID, handleRequest, removeMatchingProfilesclose, getComment, getLabel, getType, getURI, setComment, setLabelpublic OnOffLightCallee(ModuleContext context, it.cnr.isti.zigbee.ha.device.api.lighting.OnOffLight serv)
context - The OSGi contextserv - The OSGi service backing the interaction with the device in
the abstraction layerpublic ServiceResponse handleCall(ServiceCall call)
ServiceCalleeServiceCallee. It is called
by the bus whenever there is a call that need to be serviced by this
ServiceCallee.handleCall in class ExporterActuatorCalleecall - the call that needs to be serviced.public boolean executeOn()
ExporterActuatorCalleeexecuteOn in class ExporterActuatorCalleetrue if the actuator could be set to ONpublic boolean executeOff()
ExporterActuatorCalleeexecuteOff in class ExporterActuatorCalleetrue if the actuator could be set to OFFpublic Boolean executeGet()
ExporterActuatorCalleeexecuteGet in class ExporterActuatorCalleepublic void changedOnOff(it.cnr.isti.zigbee.ha.cluster.glue.general.event.OnOffEvent event)
changedOnOff in interface it.cnr.isti.zigbee.ha.cluster.glue.general.event.OnOffListenerCopyright © 2018 universAAL Consortium. All rights reserved.