
public class LightdimmerSensorWrapper extends AbstractIntegerCallee
IN_DEVICE, IN_SET_VALUE, namespace, newProfiles, OUT_GET_VALUE, SERVICE_GET_VALUE, SERVICE_SET_VALUEbusResourceURI, owner, theBus| Constructor and Description |
|---|
LightdimmerSensorWrapper(ModuleContext context,
String itemName)
Constructor to be used in the exporter, which sets up all the exporting
process.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
void |
publish(org.eclipse.smarthome.core.events.Event event)
This must be called from the single receiver once it determines it is up
to this wrapper to publish its state.
|
void |
unregister()
This will be called when its time to close.
|
communicationChannelBroken, getServiceProfileGET, getServiceProfiles, getServiceProfileSET, handleCalladdNewServiceProfiles, addNewServiceProfiles, busDyingOut, getMyID, handleRequest, removeMatchingProfilesclose, getComment, getLabel, getType, getURI, setComment, setLabelpublic LightdimmerSensorWrapper(ModuleContext context, String itemName)
context - The OSGi contextserv - The OSGi service backing the interaction with the device in
the abstraction layerpublic Integer executeGet()
AbstractIntegerCalleeexecuteGet in class AbstractIntegerCalleepublic boolean executeSet(Integer value)
AbstractIntegerCalleeexecuteSet in class AbstractIntegerCalleevalue - The Integer representing the dimmed valuepublic void publish(org.eclipse.smarthome.core.events.Event event)
GenericDeviceevent - The event data where to take info frompublic void unregister()
GenericDeviceunregister in interface GenericDeviceunregister in class AbstractIntegerCalleeCopyright © 2018 universAAL Consortium. All rights reserved.