Package io.heraldprox.herald.sensor
Class DefaultSensorDelegate
- java.lang.Object
-
- io.heraldprox.herald.sensor.DefaultSensorDelegate
-
- All Implemented Interfaces:
SensorDelegate
- Direct Known Subclasses:
CalibrationLog,ContactLog,DetectionLog,EventTimeIntervalLog,Interactions,RssiHistogram,StatisticsLog
public abstract class DefaultSensorDelegate extends java.lang.Object implements SensorDelegate
-
-
Constructor Summary
Constructors Constructor Description DefaultSensorDelegate()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsensor(SensorType sensor, ImmediateSendData didReceive, TargetIdentifier fromTarget)Receive written immediate send data from target, e.g.voidsensor(SensorType sensor, Location didVisit)Detection of time spent at location, e.g.voidsensor(SensorType sensor, PayloadData didRead, TargetIdentifier fromTarget)Read payload data from target, e.g.voidsensor(SensorType sensor, Proximity didMeasure, TargetIdentifier fromTarget)Measure proximity to target, e.g.voidsensor(SensorType sensor, Proximity didMeasure, TargetIdentifier fromTarget, PayloadData withPayload)Measure proximity to target with payload data.voidsensor(SensorType sensor, SensorState didUpdateState)Sensor state updatevoidsensor(SensorType sensor, TargetIdentifier didDetect)Detection of a target with an ephemeral identifier, e.g.voidsensor(SensorType sensor, java.util.List<PayloadData> didShare, TargetIdentifier fromTarget)Read payload data of other targets recently acquired by a target, e.g.
-
-
-
Method Detail
-
sensor
public void sensor(@NonNull SensorType sensor, @NonNull TargetIdentifier didDetect)Description copied from interface:SensorDelegateDetection of a target with an ephemeral identifier, e.g. BLE central detecting a BLE peripheral.- Specified by:
sensorin interfaceSensorDelegate
-
sensor
public void sensor(@NonNull SensorType sensor, @NonNull PayloadData didRead, @NonNull TargetIdentifier fromTarget)Description copied from interface:SensorDelegateRead payload data from target, e.g. encrypted device identifier from BLE peripheral after successful connection.- Specified by:
sensorin interfaceSensorDelegate
-
sensor
public void sensor(@NonNull SensorType sensor, @NonNull ImmediateSendData didReceive, @NonNull TargetIdentifier fromTarget)Description copied from interface:SensorDelegateReceive written immediate send data from target, e.g. important timing signal.- Specified by:
sensorin interfaceSensorDelegate
-
sensor
public void sensor(@NonNull SensorType sensor, @NonNull java.util.List<PayloadData> didShare, @NonNull TargetIdentifier fromTarget)Description copied from interface:SensorDelegateRead payload data of other targets recently acquired by a target, e.g. Android peripheral sharing payload data acquired from nearby iOS peripherals.- Specified by:
sensorin interfaceSensorDelegate
-
sensor
public void sensor(@NonNull SensorType sensor, @NonNull Proximity didMeasure, @NonNull TargetIdentifier fromTarget)Description copied from interface:SensorDelegateMeasure proximity to target, e.g. a sample of RSSI values from BLE peripheral.- Specified by:
sensorin interfaceSensorDelegate
-
sensor
public void sensor(@NonNull SensorType sensor, @NonNull Location didVisit)Description copied from interface:SensorDelegateDetection of time spent at location, e.g. at specific restaurant between 02/06/2020 19:00 and 02/06/2020 21:00- Specified by:
sensorin interfaceSensorDelegate
-
sensor
public void sensor(@NonNull SensorType sensor, @NonNull Proximity didMeasure, @NonNull TargetIdentifier fromTarget, @NonNull PayloadData withPayload)Description copied from interface:SensorDelegateMeasure proximity to target with payload data. Combines didMeasure and didRead into a single convenient delegate method- Specified by:
sensorin interfaceSensorDelegate
-
sensor
public void sensor(@NonNull SensorType sensor, @NonNull SensorState didUpdateState)Description copied from interface:SensorDelegateSensor state update- Specified by:
sensorin interfaceSensorDelegate
-
-