
public abstract class AbstractFloatCallee extends AbstractCallee
| Modifier and Type | Field and Description |
|---|---|
static String |
IN_DEVICE
Argument suffix.
|
static String |
IN_SET_VALUE
Service suffix.
|
protected String |
namespace |
protected ServiceProfile[] |
newProfiles |
static String |
OUT_GET_VALUE
Argument suffix.
|
static String |
SERVICE_GET_VALUE
Service suffix.
|
static String |
SERVICE_SET_VALUE
Service suffix.
|
busResourceURI, owner, theBus| Modifier | Constructor and Description |
|---|---|
protected |
AbstractFloatCallee(ModuleContext context,
ServiceProfile[] realizedServices,
String namespace) |
| Modifier and Type | Method and Description |
|---|---|
void |
communicationChannelBroken()
This abstract method is called for each member of the bus when the bus is
being stopped.
|
abstract Float |
executeGet()
When a GET STATUS service request is received, this method is called
automatically.
|
abstract boolean |
executeSet(Float value)
When a SET STATUS service request is received, this method is called
automatically.
|
static ServiceProfile |
getServiceProfileGET(String namespace,
Device instance) |
static ServiceProfile[] |
getServiceProfiles(String namespace,
Device instance)
Get the typical service profiles for a controller: GET/SET the has value
prop.
|
static ServiceProfile |
getServiceProfileSET(String namespace,
Device instance) |
ServiceResponse |
handleCall(ServiceCall call)
The actual service method of the
ServiceCallee. |
void |
unregister()
This will be called when its time to close.
|
addNewServiceProfiles, addNewServiceProfiles, busDyingOut, getMyID, handleRequest, removeMatchingProfilesclose, getComment, getLabel, getType, getURI, setComment, setLabelclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublishpublic static final String SERVICE_GET_VALUE
public static final String OUT_GET_VALUE
public static final String SERVICE_SET_VALUE
public static final String IN_SET_VALUE
public static final String IN_DEVICE
protected String namespace
protected ServiceProfile[] newProfiles
protected AbstractFloatCallee(ModuleContext context, ServiceProfile[] realizedServices, String namespace)
public void unregister()
GenericDevicepublic void communicationChannelBroken()
ServiceCalleecommunicationChannelBroken in class ServiceCalleepublic ServiceResponse handleCall(ServiceCall call)
ServiceCalleeServiceCallee. It is called
by the bus whenever there is a call that need to be serviced by this
ServiceCallee.handleCall in class ServiceCalleecall - the call that needs to be serviced.public abstract Float executeGet()
public abstract boolean executeSet(Float value)
value - The Float representing the dimmed valuepublic static ServiceProfile[] getServiceProfiles(String namespace, Device instance)
namespace - Must be the same as the one set in the constructorinstance - The instance of the ontological representation of the devicepublic static ServiceProfile getServiceProfileGET(String namespace, Device instance)
public static ServiceProfile getServiceProfileSET(String namespace, Device instance)
Copyright © 2018 universAAL Consortium. All rights reserved.