public abstract class AbstractIntegerCallee 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 |
AbstractIntegerCallee(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 Integer |
executeGet()
When a GET STATUS service request is received, this method is called
automatically.
|
abstract boolean |
executeSet(Integer 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, removeMatchingProfiles
close, getComment, getLabel, getType, getURI, setComment, setLabel
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
publish
public 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 AbstractIntegerCallee(ModuleContext context, ServiceProfile[] realizedServices, String namespace)
public void unregister()
GenericDevice
public void communicationChannelBroken()
ServiceCallee
communicationChannelBroken
in class ServiceCallee
public ServiceResponse handleCall(ServiceCall call)
ServiceCallee
ServiceCallee
. It is called
by the bus whenever there is a call that need to be serviced by this
ServiceCallee
.handleCall
in class ServiceCallee
call
- the call that needs to be serviced.public abstract Integer executeGet()
public abstract boolean executeSet(Integer value)
value
- The Integer 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.