public class LightswitchActuatorWrapper extends AbstractIntegerCallee
IN_DEVICE, IN_SET_VALUE, namespace, newProfiles, OUT_GET_VALUE, SERVICE_GET_VALUE, SERVICE_SET_VALUE
busResourceURI, owner, theBus
Constructor and Description |
---|
LightswitchActuatorWrapper(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, handleCall
addNewServiceProfiles, addNewServiceProfiles, busDyingOut, getMyID, handleRequest, removeMatchingProfiles
close, getComment, getLabel, getType, getURI, setComment, setLabel
public LightswitchActuatorWrapper(ModuleContext context, String itemName)
context
- The OSGi contextserv
- The OSGi service backing the interaction with the device in
the abstraction layerpublic Integer executeGet()
AbstractIntegerCallee
executeGet
in class AbstractIntegerCallee
public boolean executeSet(Integer value)
AbstractIntegerCallee
executeSet
in class AbstractIntegerCallee
value
- The Integer 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 AbstractIntegerCallee
Copyright © 2018 universAAL Consortium. All rights reserved.