
public class Iso11073ContactClosureSensorInstance extends ActivityHubDriver implements Iso11073ContactClosureSensor, 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 |
|---|
Iso11073ContactClosureSensorInstance(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)
forward event to client
|
void |
modifiedService(org.osgi.framework.ServiceReference reference,
Object service) |
void |
removedService(org.osgi.framework.ServiceReference reference,
Object service) |
attachDriver, detachDriver, getDevice, removeDriver, setDevicepublic Iso11073ContactClosureSensorInstance(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 int getLastSensorEvent()
getLastSensorEvent in class ActivityHubDriverpublic Object addingService(org.osgi.framework.ServiceReference reference)
addingService in interface org.osgi.util.tracker.ServiceTrackerCustomizerActivityHubSensor - servicepublic 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 void incomingSensorEvent(int event)
incomingSensorEvent in interface ActivityHubBaseDeviceCategoryevent - Integer representation of a specific ActivityHubSensorEvent.
example MotionSensor: motion-detected = 0;
no-condition-detected = 3Copyright © 2018 universAAL Consortium. All rights reserved.