public abstract class ExporterDimmerCallee extends ServiceCallee
Modifier and Type | Field and Description |
---|---|
static String |
IN_DEVICE
Argument suffix.
|
static String |
IN_SET_VALUE
Service suffix.
|
protected static String |
NAMESPACE |
protected ServiceProfile[] |
newProfiles |
static String |
OUT_GET_VLAUE
Argument suffix.
|
static String |
SERVICE_GET_VALUE
Service suffix.
|
static String |
SERVICE_SET_VALUE
Service suffix.
|
busResourceURI, owner, theBus
Modifier | Constructor and Description |
---|---|
protected |
ExporterDimmerCallee(ModuleContext context,
ServiceProfile[] realizedServices) |
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[] |
getServiceProfiles(String namespace,
String ontologyURI,
Actuator actuator) |
ServiceResponse |
handleCall(ServiceCall call)
The actual service method of the
ServiceCallee . |
void |
unregister() |
addNewServiceProfiles, addNewServiceProfiles, busDyingOut, getMyID, handleRequest, removeMatchingProfiles
close, getComment, getLabel, getType, getURI, setComment, setLabel
public static final String SERVICE_GET_VALUE
public static final String OUT_GET_VLAUE
public static final String SERVICE_SET_VALUE
public static final String IN_SET_VALUE
public static final String IN_DEVICE
protected static String NAMESPACE
protected ServiceProfile[] newProfiles
protected ExporterDimmerCallee(ModuleContext context, ServiceProfile[] realizedServices)
public void unregister()
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, String ontologyURI, Actuator actuator)
Copyright © 2018 universAAL Consortium. All rights reserved.