public abstract class ExporterActuatorCallee extends ServiceCallee
Modifier and Type | Field and Description |
---|---|
static String |
IN_DEVICE
Argument suffix.
|
protected static String |
NAMESPACE |
protected ServiceProfile[] |
newProfiles |
static String |
OUT_GET_ON_OFF
Argument suffix.
|
static String |
SERVICE_GET_ON_OFF
Service suffix.
|
static String |
SERVICE_TURN_OFF
Service suffix.
|
static String |
SERVICE_TURN_ON
Service suffix.
|
busResourceURI, owner, theBus
Modifier | Constructor and Description |
---|---|
protected |
ExporterActuatorCallee(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 Boolean |
executeGet()
When a GET STATUS service request is received, this method is called
automatically.
|
abstract boolean |
executeOff()
When a SET OFF service request is received, this method is called
automatically.
|
abstract boolean |
executeOn()
When a SET ON 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_ON_OFF
public static final String OUT_GET_ON_OFF
public static final String SERVICE_TURN_OFF
public static final String SERVICE_TURN_ON
public static final String IN_DEVICE
protected static String NAMESPACE
protected ServiceProfile[] newProfiles
protected ExporterActuatorCallee(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 boolean executeOn()
true
if the actuator could be set to ONpublic abstract boolean executeOff()
true
if the actuator could be set to OFFpublic abstract Boolean executeGet()
public static ServiceProfile[] getServiceProfiles(String namespace, String ontologyURI, Actuator actuator)
Copyright © 2015 universAAL Consortium. All Rights Reserved.