Package io.heraldprox.herald.sensor.data
Class StatisticsLog
- java.lang.Object
-
- io.heraldprox.herald.sensor.DefaultSensorDelegate
-
- io.heraldprox.herald.sensor.data.StatisticsLog
-
- All Implemented Interfaces:
SensorDelegate
public class StatisticsLog extends DefaultSensorDelegate
-
-
Constructor Summary
Constructors Constructor Description StatisticsLog(android.content.Context context, java.lang.String filename, PayloadData payloadData)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
sensor(SensorType sensor, PayloadData didRead, TargetIdentifier fromTarget)
Read payload data from target, e.g.void
sensor(SensorType sensor, Proximity didMeasure, TargetIdentifier fromTarget)
Measure proximity to target, e.g.void
sensor(SensorType sensor, java.util.List<PayloadData> didShare, TargetIdentifier fromTarget)
Read payload data of other targets recently acquired by a target, e.g.
-
-
-
Constructor Detail
-
StatisticsLog
public StatisticsLog(@NonNull android.content.Context context, @NonNull java.lang.String filename, @NonNull PayloadData payloadData)
-
-
Method Detail
-
sensor
public void sensor(@NonNull SensorType sensor, @NonNull PayloadData didRead, @NonNull TargetIdentifier fromTarget)
Description copied from interface:SensorDelegate
Read payload data from target, e.g. encrypted device identifier from BLE peripheral after successful connection.- Specified by:
sensor
in interfaceSensorDelegate
- Overrides:
sensor
in classDefaultSensorDelegate
-
sensor
public void sensor(@NonNull SensorType sensor, @NonNull Proximity didMeasure, @NonNull TargetIdentifier fromTarget)
Description copied from interface:SensorDelegate
Measure proximity to target, e.g. a sample of RSSI values from BLE peripheral.- Specified by:
sensor
in interfaceSensorDelegate
- Overrides:
sensor
in classDefaultSensorDelegate
-
sensor
public void sensor(@NonNull SensorType sensor, @NonNull java.util.List<PayloadData> didShare, @NonNull TargetIdentifier fromTarget)
Description copied from interface:SensorDelegate
Read payload data of other targets recently acquired by a target, e.g. Android peripheral sharing payload data acquired from nearby iOS peripherals.- Specified by:
sensor
in interfaceSensorDelegate
- Overrides:
sensor
in classDefaultSensorDelegate
-
-