
public class Iso11073UsageSensorInstance extends ActivityHubDriver implements Iso11073UsageSensor, org.osgi.util.tracker.ServiceTrackerCustomizer, org.osgi.service.device.Constants
client, deviceMY_DEVICE_CATEGORYCLASS, MANUFACTURER, MATCH_CLASS, MATCH_MAKE, MATCH_MODEL, MATCH_SERIAL, MATCH_VERSION, MODEL, REVISION, SERIAL| Constructor and Description |
|---|
Iso11073UsageSensorInstance(org.osgi.framework.BundleContext c,
ActivityHubDriverClient client,
org.osgi.service.log.LogService log) |
| Modifier and Type | Method and Description |
|---|---|
Object |
addingService(org.osgi.framework.ServiceReference reference) |
int |
getLastSensorEvent() |
void |
incomingSensorEvent(int event)
The specific drivers have to implement this method to receive messages
from devices
|
void |
modifiedService(org.osgi.framework.ServiceReference reference,
Object service) |
void |
removedService(org.osgi.framework.ServiceReference reference,
Object service) |
attachDriver, detachDriver, getDevice, removeDriver, setDevicepublic Iso11073UsageSensorInstance(org.osgi.framework.BundleContext c,
ActivityHubDriverClient client,
org.osgi.service.log.LogService log)
c - OSGi BundleContextsr - Service reference of ISO deviceclient - Link to consumer of this driver (e.g. universAAL exporter bundle)public Object addingService(org.osgi.framework.ServiceReference reference)
addingService in interface org.osgi.util.tracker.ServiceTrackerCustomizerpublic void modifiedService(org.osgi.framework.ServiceReference reference,
Object service)
modifiedService in interface org.osgi.util.tracker.ServiceTrackerCustomizerpublic void removedService(org.osgi.framework.ServiceReference reference,
Object service)
removedService in interface org.osgi.util.tracker.ServiceTrackerCustomizerpublic int getLastSensorEvent()
getLastSensorEvent in class ActivityHubDriverpublic void incomingSensorEvent(int event)
ActivityHubBaseDeviceCategoryincomingSensorEvent in interface ActivityHubBaseDeviceCategoryevent - Integer representation of a specific ActivityHubSensorEvent.
example MotionSensor: motion-detected = 0;
no-condition-detected = 3Copyright © 2018 universAAL Consortium. All rights reserved.