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.DoublescoreByProximity(java.util.Date start, java.util.Date end)java.lang.DoublescoreByProximity(java.util.Date start, java.util.Date end, double measuredPower, double excludeRssiBelow)java.lang.DoublescoreByTarget(java.util.Date start, java.util.Date end)java.lang.DoublescoreByTarget(java.util.Date start, java.util.Date end, int maximumDeviceCount, double excludeRssiBelow)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.-
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:SensorDelegateMeasure proximity to target, e.g. a sample of RSSI values from BLE peripheral.- Specified by:
sensorin interfaceSensorDelegate- Overrides:
sensorin classDefaultSensorDelegate
-
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- Overrides:
sensorin 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)
-
-