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

Package class diagram package DimmerLightCallee
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.ExporterDimmerCallee
                  extended by org.universAAL.hw.exporter.zigbee.ha.devices.DimmerLightCallee
All Implemented Interfaces:
it.cnr.isti.zigbee.ha.cluster.glue.general.event.CurrentLevelListener

public class DimmerLightCallee
extends ExporterDimmerCallee
implements it.cnr.isti.zigbee.ha.cluster.glue.general.event.CurrentLevelListener

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.ExporterDimmerCallee
IN_DEVICE, IN_SET_VALUE, NAMESPACE, newProfiles, OUT_GET_VLAUE, SERVICE_GET_VALUE, SERVICE_SET_VALUE
 
Fields inherited from class org.universAAL.middleware.bus.member.BusMember
busResourceURI, owner, theBus
 
Constructor Summary
DimmerLightCallee(ModuleContext context, it.cnr.isti.zigbee.ha.device.api.lighting.DimmableLight serv)
          Constructor to be used in the exporter, which sets up all the exporting process.
 
Method Summary
 void changedCurrentLevel(it.cnr.isti.zigbee.ha.cluster.glue.general.event.CurrentLevelEvent event)
           
 Integer executeGet()
          When a GET STATUS service request is received, this method is called automatically.
 boolean executeSet(Integer value)
          When a SET STATUS service request is received, this method is called automatically.
 
Methods inherited from class org.universAAL.hw.exporter.zigbee.ha.devices.ExporterDimmerCallee
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

DimmerLightCallee

public DimmerLightCallee(ModuleContext context,
                         it.cnr.isti.zigbee.ha.device.api.lighting.DimmableLight 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

executeGet

public Integer executeGet()
Description copied from class: ExporterDimmerCallee
When a GET STATUS service request is received, this method is called automatically.

Specified by:
executeGet in class ExporterDimmerCallee
Returns:
The Integer value representing the status property of the actuator.

executeSet

public boolean executeSet(Integer value)
Description copied from class: ExporterDimmerCallee
When a SET STATUS service request is received, this method is called automatically.

Specified by:
executeSet in class ExporterDimmerCallee
Parameters:
value - The Integer representing the dimmed value
Returns:
The Boolean value representing the status property of the actuator.

changedCurrentLevel

public void changedCurrentLevel(it.cnr.isti.zigbee.ha.cluster.glue.general.event.CurrentLevelEvent event)
Specified by:
changedCurrentLevel in interface it.cnr.isti.zigbee.ha.cluster.glue.general.event.CurrentLevelListener


Copyright © 2014 universAAL Consortium. All Rights Reserved.