org.universAAL.hw.exporter.zigbee.ha.devices
Class ExporterSensorCallee
java.lang.Object
org.universAAL.middleware.bus.member.BusMember
org.universAAL.middleware.bus.member.Callee
org.universAAL.middleware.service.ServiceCallee
org.universAAL.hw.exporter.zigbee.ha.devices.ExporterSensorCallee
- Direct Known Subclasses:
- IASZoneCallee, OccupancySensorCallee, PresenceDetectorCallee, TemperatureSensorCallee
public abstract class ExporterSensorCallee
- extends ServiceCallee
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SERVICE_GET_VALUE
public static final String SERVICE_GET_VALUE
- Service suffix.
- See Also:
- Constant Field Values
OUT_GET_VALUE
public static final String OUT_GET_VALUE
- Argument suffix.
- See Also:
- Constant Field Values
IN_DEVICE
public static final String IN_DEVICE
- Argument suffix.
- See Also:
- Constant Field Values
NAMESPACE
protected static String NAMESPACE
newProfiles
protected ServiceProfile[] newProfiles
ExporterSensorCallee
protected ExporterSensorCallee(ModuleContext context,
ServiceProfile[] realizedServices)
unregister
public void unregister()
communicationChannelBroken
public void communicationChannelBroken()
- Description copied from class:
ServiceCallee
- This abstract method is called for each member of the bus when the bus is
being stopped.
- Specified by:
communicationChannelBroken
in class ServiceCallee
handleCall
public ServiceResponse handleCall(ServiceCall call)
- Description copied from class:
ServiceCallee
- The actual service method of the
ServiceCallee
. It is called
by the bus whenever there is a call that need to be serviced by this
ServiceCallee
.
- Specified by:
handleCall
in class ServiceCallee
- Parameters:
call
- the call that needs to be serviced.
- Returns:
- the result of the call execution.
getValue
protected abstract ServiceResponse getValue()
- This is a sensor, so it must provide its sensed value when asked.
- Returns:
- The Service Response representing the requested output, as
defined by the appropriate Service Ontology.
getServiceProfiles
public static ServiceProfile[] getServiceProfiles(String namespace,
String ontologyURI,
Sensor sensor)
Copyright © 2014 universAAL Consortium. All Rights Reserved.