public class DimmerLightCallee extends ExporterDimmerCallee implements it.cnr.isti.zigbee.ha.cluster.glue.general.event.CurrentLevelListener
IN_DEVICE, IN_SET_VALUE, NAMESPACE, newProfiles, OUT_GET_VLAUE, SERVICE_GET_VALUE, SERVICE_SET_VALUE
busResourceURI, owner, theBus
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
communicationChannelBroken, getServiceProfiles, handleCall, unregister
addNewServiceProfiles, addNewServiceProfiles, busDyingOut, getMyID, handleRequest, removeMatchingProfiles
close, getComment, getLabel, getType, getURI, setComment, setLabel
public DimmerLightCallee(ModuleContext context, it.cnr.isti.zigbee.ha.device.api.lighting.DimmableLight serv)
context
- The OSGi contextserv
- The OSGi service backing the interaction with the device in
the abstraction layerpublic Integer executeGet()
ExporterDimmerCallee
executeGet
in class ExporterDimmerCallee
public boolean executeSet(Integer value)
ExporterDimmerCallee
executeSet
in class ExporterDimmerCallee
value
- The Integer representing the dimmed valuepublic void changedCurrentLevel(it.cnr.isti.zigbee.ha.cluster.glue.general.event.CurrentLevelEvent event)
changedCurrentLevel
in interface it.cnr.isti.zigbee.ha.cluster.glue.general.event.CurrentLevelListener
Copyright © 2018 universAAL Consortium. All rights reserved.