public class PresenceSensorWrapper extends AbstractStatusValueCallee
IN_DEVICE, IN_SET_VALUE, namespace, newProfiles, OUT_GET_VALUE, SERVICE_GET_VALUE, SERVICE_SET_VALUE
busResourceURI, owner, theBus
Constructor and Description |
---|
PresenceSensorWrapper(ModuleContext context,
String itemName) |
Modifier and Type | Method and Description |
---|---|
StatusValue |
executeGet()
When a GET STATUS service request is received, this method is called
automatically.
|
boolean |
executeSet(StatusValue 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, handleCall
addNewServiceProfiles, addNewServiceProfiles, busDyingOut, getMyID, handleRequest, removeMatchingProfiles
close, getComment, getLabel, getType, getURI, setComment, setLabel
public PresenceSensorWrapper(ModuleContext context, String itemName)
public StatusValue executeGet()
AbstractStatusValueCallee
executeGet
in class AbstractStatusValueCallee
public boolean executeSet(StatusValue value)
AbstractStatusValueCallee
executeSet
in class AbstractStatusValueCallee
value
- The StatusValue representing the dimmed valuepublic void publish(org.eclipse.smarthome.core.events.Event event)
GenericDevice
event
- The event data where to take info frompublic void unregister()
GenericDevice
unregister
in interface GenericDevice
unregister
in class AbstractStatusValueCallee
Copyright © 2018 universAAL Consortium. All rights reserved.