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_ON
busResourceURI, 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, unregister
addNewServiceProfiles, addNewServiceProfiles, busDyingOut, getMyID, handleRequest, removeMatchingProfiles
close, getComment, getLabel, getType, getURI, setComment, setLabel
public 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)
ServiceCallee
ServiceCallee
. It is called
by the bus whenever there is a call that need to be serviced by this
ServiceCallee
.handleCall
in class ExporterActuatorCallee
call
- the call that needs to be serviced.public boolean executeOn()
ExporterActuatorCallee
executeOn
in class ExporterActuatorCallee
true
if the actuator could be set to ONpublic boolean executeOff()
ExporterActuatorCallee
executeOff
in class ExporterActuatorCallee
true
if the actuator could be set to OFFpublic Boolean executeGet()
ExporterActuatorCallee
executeGet
in class ExporterActuatorCallee
public 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.OnOffListener
Copyright © 2018 universAAL Consortium. All rights reserved.