org.universAAL.hw.exporter.zigbee.ha.devices
Class DimmerLightCallee
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.ExporterDimmerCallee
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
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 contextserv
- The OSGi service backing the interaction with the device in
the abstraction layer
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.