org.universAAL.hw.exporter.zigbee.ha.devices
Class TemperatureSensorCallee

Package class diagram package TemperatureSensorCallee
java.lang.Object
  extended by org.universAAL.middleware.bus.member.BusMember
      extended by org.universAAL.middleware.bus.member.Callee
          extended by org.universAAL.middleware.service.ServiceCallee
              extended by org.universAAL.hw.exporter.zigbee.ha.devices.ExporterSensorCallee
                  extended by org.universAAL.hw.exporter.zigbee.ha.devices.TemperatureSensorCallee
All Implemented Interfaces:
it.cnr.isti.zigbee.ha.cluster.glue.measureament_sensing.event.MeasuredValueListener

public class TemperatureSensorCallee
extends ExporterSensorCallee
implements it.cnr.isti.zigbee.ha.cluster.glue.measureament_sensing.event.MeasuredValueListener

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

Field Summary
 
Fields inherited from class org.universAAL.hw.exporter.zigbee.ha.devices.ExporterSensorCallee
IN_DEVICE, NAMESPACE, newProfiles, OUT_GET_VALUE, SERVICE_GET_VALUE
 
Fields inherited from class org.universAAL.middleware.bus.member.BusMember
busResourceURI, owner, theBus
 
Constructor Summary
TemperatureSensorCallee(ModuleContext context, it.cnr.isti.zigbee.ha.device.api.hvac.TemperatureSensor serv)
          Constructor to be used in the exporter, which sets up all the exporting process.
 
Method Summary
 void changedMeasuredValue(it.cnr.isti.zigbee.ha.cluster.glue.measureament_sensing.event.MeasuredValueEvent event)
           
protected  ServiceResponse getValue()
          This is a sensor, so it must provide its sensed value when asked.
 
Methods inherited from class org.universAAL.hw.exporter.zigbee.ha.devices.ExporterSensorCallee
communicationChannelBroken, getServiceProfiles, handleCall, unregister
 
Methods inherited from class org.universAAL.middleware.service.ServiceCallee
addNewServiceProfiles, busDyingOut, getMyID, handleRequest, removeMatchingProfiles
 
Methods inherited from class org.universAAL.middleware.bus.member.BusMember
close, getType, getURI
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TemperatureSensorCallee

public TemperatureSensorCallee(ModuleContext context,
                               it.cnr.isti.zigbee.ha.device.api.hvac.TemperatureSensor serv)
Constructor to be used in the exporter, which sets up all the exporting process.

Parameters:
context - The OSGi context
serv - The OSGi service backing the interaction with the device in the abstraction layer
Method Detail

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.

changedMeasuredValue

public void changedMeasuredValue(it.cnr.isti.zigbee.ha.cluster.glue.measureament_sensing.event.MeasuredValueEvent event)
Specified by:
changedMeasuredValue in interface it.cnr.isti.zigbee.ha.cluster.glue.measureament_sensing.event.MeasuredValueListener


Copyright © 2014 universAAL Consortium. All Rights Reserved.