public class OccupancySensorCallee extends ExporterSensorCallee implements it.cnr.isti.zigbee.ha.cluster.glue.measureament_sensing.event.OccupancyListener
IN_DEVICE, NAMESPACE, newProfiles, OUT_GET_VALUE, SERVICE_GET_VALUE
busResourceURI, owner, theBus
Constructor and Description |
---|
OccupancySensorCallee(ModuleContext context,
OccupancySensorBridge serv)
Constructor to be used in the exporter, which sets up all the exporting
process.
|
Modifier and Type | Method and Description |
---|---|
void |
changedOccupancy(it.cnr.isti.zigbee.ha.cluster.glue.measureament_sensing.event.OccupancyEvent event) |
protected ServiceResponse |
getValue()
This is a sensor, so it must provide its sensed value when asked.
|
communicationChannelBroken, getServiceProfiles, handleCall, unregister
addNewServiceProfiles, addNewServiceProfiles, busDyingOut, getMyID, handleRequest, removeMatchingProfiles
close, getComment, getLabel, getType, getURI, setComment, setLabel
public OccupancySensorCallee(ModuleContext context, OccupancySensorBridge serv)
context
- The OSGi contextserv
- The OSGi service backing the interaction with the device in
the abstraction layerprotected ServiceResponse getValue()
ExporterSensorCallee
getValue
in class ExporterSensorCallee
public void changedOccupancy(it.cnr.isti.zigbee.ha.cluster.glue.measureament_sensing.event.OccupancyEvent event)
changedOccupancy
in interface it.cnr.isti.zigbee.ha.cluster.glue.measureament_sensing.event.OccupancyListener
Copyright © 2018 universAAL Consortium. All rights reserved.