org.universAAL.hw.exporter.zigbee.ha.devices
Class PresenceDetectorCallee
java.lang.Object
org.universAAL.middleware.bus.member.BusMember
org.universAAL.middleware.bus.member.Callee
org.universAAL.middleware.service.ServiceCallee
org.universAAL.hw.exporter.zigbee.ha.devices.ExporterSensorCallee
org.universAAL.hw.exporter.zigbee.ha.devices.PresenceDetectorCallee
- All Implemented Interfaces:
- it.cnr.isti.zigbee.ha.cluster.glue.measureament_sensing.event.OccupancyListener
public class PresenceDetectorCallee
- extends ExporterSensorCallee
- implements it.cnr.isti.zigbee.ha.cluster.glue.measureament_sensing.event.OccupancyListener
Exporter class that acts as wrapper towards uAAL. Connects interaction of the
device with the uAAL middleware through the service and context buses.
- Author:
- alfiva
Constructor Summary |
PresenceDetectorCallee(ModuleContext context,
it.cnr.isti.zigbee.ha.device.api.lighting.OccupancySensor serv)
Constructor to be used in the exporter, which sets up all the exporting
process. |
Method Summary |
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PresenceDetectorCallee
public PresenceDetectorCallee(ModuleContext context,
it.cnr.isti.zigbee.ha.device.api.lighting.OccupancySensor serv)
- Constructor to be used in the exporter, which sets up all the exporting
process.
- Parameters:
context
- The OSGi contextserv
- The OSGi service backing the interaction with the device in
the abstraction layer
getValue
protected ServiceResponse getValue()
- Description copied from class:
ExporterSensorCallee
- This is a sensor, so it must provide its sensed value when asked.
- Specified by:
getValue
in class ExporterSensorCallee
- Returns:
- The Service Response representing the requested output, as
defined by the appropriate Service Ontology.
changedOccupancy
public void changedOccupancy(it.cnr.isti.zigbee.ha.cluster.glue.measureament_sensing.event.OccupancyEvent event)
- Specified by:
changedOccupancy
in interface it.cnr.isti.zigbee.ha.cluster.glue.measureament_sensing.event.OccupancyListener
Copyright © 2014 universAAL Consortium. All Rights Reserved.