public abstract class ExporterSensorCallee 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_VALUE
Argument suffix.
|
static String |
SERVICE_GET_VALUE
Service suffix.
|
busResourceURI, owner, theBus
Modifier | Constructor and Description |
---|---|
protected |
ExporterSensorCallee(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.
|
static ServiceProfile[] |
getServiceProfiles(String namespace,
String ontologyURI,
Sensor sensor) |
protected abstract ServiceResponse |
getValue()
This is a sensor, so it must provide its sensed value when asked.
|
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_VALUE
public static final String IN_DEVICE
protected static String NAMESPACE
protected ServiceProfile[] newProfiles
protected ExporterSensorCallee(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.protected abstract ServiceResponse getValue()
public static ServiceProfile[] getServiceProfiles(String namespace, String ontologyURI, Sensor sensor)
Copyright © 2015 universAAL Consortium. All Rights Reserved.