Class SocialDistance
- java.lang.Object
-
- io.heraldprox.herald.sensor.DefaultSensorDelegate
-
- io.heraldprox.herald.sensor.analysis.Interactions
-
- io.heraldprox.herald.sensor.analysis.SocialDistance
-
- All Implemented Interfaces:
SensorDelegate
public class SocialDistance extends Interactions
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class io.heraldprox.herald.sensor.analysis.Interactions
Interactions.InteractionsForTarget, Interactions.InteractionsForTime
-
-
Constructor Summary
Constructors Constructor Description SocialDistance()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Double
scoreByProximity(java.util.Date start, java.util.Date end)
java.lang.Double
scoreByProximity(java.util.Date start, java.util.Date end, double measuredPower, double excludeRssiBelow)
java.lang.Double
scoreByTarget(java.util.Date start, java.util.Date end)
java.lang.Double
scoreByTarget(java.util.Date start, java.util.Date end, int maximumDeviceCount, double excludeRssiBelow)
void
sensor(SensorType sensor, Proximity didMeasure, TargetIdentifier fromTarget)
Measure proximity to target, e.g.void
sensor(SensorType sensor, Proximity didMeasure, TargetIdentifier fromTarget, PayloadData withPayload)
Measure proximity to target with payload data.-
Methods inherited from class io.heraldprox.herald.sensor.analysis.Interactions
append, reduceByProximity, reduceByProximity, reduceByTarget, reduceByTime, reduceByTime, remove, subdata, subdata
-
-
-
-
Method Detail
-
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 Proximity didMeasure, @NonNull TargetIdentifier fromTarget, @NonNull PayloadData withPayload)
Description copied from interface:SensorDelegate
Measure proximity to target with payload data. Combines didMeasure and didRead into a single convenient delegate method- Specified by:
sensor
in interfaceSensorDelegate
- Overrides:
sensor
in classInteractions
-
scoreByProximity
@NonNull public java.lang.Double scoreByProximity(@NonNull java.util.Date start, @NonNull java.util.Date end)
-
scoreByProximity
@NonNull public java.lang.Double scoreByProximity(@NonNull java.util.Date start, @NonNull java.util.Date end, double measuredPower, double excludeRssiBelow)
-
scoreByTarget
@NonNull public java.lang.Double scoreByTarget(@NonNull java.util.Date start, @NonNull java.util.Date end)
-
scoreByTarget
@NonNull public java.lang.Double scoreByTarget(@NonNull java.util.Date start, @NonNull java.util.Date end, int maximumDeviceCount, double excludeRssiBelow)
-
-