public class RegionUtils
extends java.lang.Object
Constructor and Description |
---|
RegionUtils() |
Modifier and Type | Method and Description |
---|---|
static double |
computeAccuracy(Beacon beacon)
Returns distance in meters based on beacon's RSSI and measured transmitPower.
|
static double |
computeAccuracy(Eddystone eddystone) |
static double |
computeAccuracy(EstimoteLocation location) |
static double |
computeAccuracy(int rssi,
int measuredPower) |
static Proximity |
computeProximity(Beacon beacon) |
static Proximity |
computeProximity(Eddystone eddystone) |
static Proximity |
computeProximity(EstimoteLocation location) |
static Proximity |
computeProximity(Nearable nearable) |
static boolean |
isBeaconInRegion(Beacon beacon,
BeaconRegion beaconRegion)
Returns true if beacon matches the region.
|
static int |
parseInt(java.lang.String numberAsString)
Parses string to integer.
|
static Proximity |
proximityFromAccuracy(double accuracy)
Computes
Proximity based on distance in meters. |
public static boolean isBeaconInRegion(Beacon beacon, BeaconRegion beaconRegion)
public static double computeAccuracy(Beacon beacon)
public static double computeAccuracy(Eddystone eddystone)
public static double computeAccuracy(EstimoteLocation location)
public static double computeAccuracy(int rssi, int measuredPower)
public static Proximity proximityFromAccuracy(double accuracy)
Proximity
based on distance in meters. Current distance ranges:
accuracy
- Distance in meters.public static Proximity computeProximity(EstimoteLocation location)
public static int parseInt(java.lang.String numberAsString)
numberAsString
- String to be parsed.