MeasurementManager class abstract
Class is used for managing measurement generators and notifying about sensor and signal measurements. Referenced from NavigineSdk.
- Implemented types
- Implementers
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addBeaconGenerator(
String uuid, int major, int minor, int power, int timeout, int rssiMin, int rssiMax) → String -
Method adds a beacon generator for simulating BLE beacon signals.
uuidUUID of the beacon.majorMajor value of the beacon.minorMinor value of the beacon.powerTransmission power of the beacon (dBm).timeoutDuration of the generator in milliseconds.rssiMinMinimum RSSI value for the simulated signal.rssiMaxMaximum RSSI value for the simulated signal. Returns Unique identifier of the created beacon generator. -
addEddystoneGenerator(
String namespaceId, String instanceId, int power, int timeout, int rssiMin, int rssiMax) → String -
Method adds an Eddystone generator for simulating Eddystone beacon signals.
namespaceIdNamespace ID of the Eddystone beacon.instanceIdInstance ID of the Eddystone beacon.powerTransmission power of the beacon (dBm).timeoutDuration of the generator in milliseconds.rssiMinMinimum RSSI value for the simulated signal.rssiMaxMaximum RSSI value for the simulated signal. Returns Unique identifier of the created Eddystone generator. -
addLocationGenerator(
double latMin, double latMax, double lonMin, double lonMax, double accMin, double accMax, int timeout) → String -
Method adds a location generator for simulating location measurements.
latMinMinimum latitude for the simulated location.latMaxMaximum latitude for the simulated location.lonMinMinimum longitude for the simulated location.lonMaxMaximum longitude for the simulated location.accMinMinimum accuracy for the simulated location (in meters).accMaxMaximum accuracy for the simulated location (in meters).timeoutDuration of the generator in milliseconds. Returns Unique identifier of the created location generator. -
addMeasurementListener(
MeasurementListener listener) → void -
Method is used to add MeasurementListener class element
which will notify about new sensor or signal measurements.
Note: Do not forget to remove listener if it is no longer needed!
listenerCorresponding MeasurementListener class. -
addWifiGenerator(
String mac, int timeout, int rssiMin, int rssiMax) → String -
Method adds a Wi-Fi generator for simulating Wi-Fi signals.
macMAC address of the Wi-Fi access point.timeoutDuration of the generator in milliseconds.rssiMinMinimum RSSI value for the simulated signal.rssiMaxMaximum RSSI value for the simulated signal. Returns Unique identifier of the created Wi-Fi generator. -
addWifiRttGenerator(
String mac, int timeout, int distMin, int distMax, int stdDevMin, int stdDevMax, int rssiMin, int rssiMax) → String -
Method adds a Wi-Fi RTT generator for simulating Wi-Fi Round-Trip Time signals.
macMAC address of the Wi-Fi access point.timeoutDuration of the generator in milliseconds.distMinMinimum distance for the simulated signal (in meters).distMaxMaximum distance for the simulated signal (in meters).stdDevMinMinimum standard deviation for the simulated signal.stdDevMaxMaximum standard deviation for the simulated signal.rssiMinMinimum RSSI value for the simulated signal.rssiMaxMaximum RSSI value for the simulated signal. Returns Unique identifier of the created Wi-Fi RTT generator. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
removeBleGenerator(
String id) → void -
Method removes a specific BLE beacon generator by its identifier.
idUnique identifier of the BLE generator to remove. -
removeBleGenerators(
) → void - Method removes all BLE beacon generators.
-
removeLocationGenerator(
String id) → void -
Method removes a specific location generator by its identifier.
idUnique identifier of the location generator to remove. -
removeLocationGenerators(
) → void - Method removes all location generators.
-
removeMeasurementListener(
MeasurementListener listener) → void -
Method is used for removing previously added MeasurementListener class element.
listenerCorresponding MeasurementListener class to remove. -
removeWifiGenerator(
String id) → void -
Method removes a specific Wi-Fi generator by its identifier.
idUnique identifier of the Wi-Fi generator to remove. -
removeWifiGenerators(
) → void - Method removes all Wi-Fi generators.
-
removeWifiRttGenerator(
String hash) → void -
Method removes a specific Wi-Fi RTT generator by its identifier.
hashUnique identifier of the Wi-Fi RTT generator to remove. -
removeWifiRttGenerators(
) → void - Method removes all Wi-Fi RTT generators.
-
setPublishIntervalMs(
int intervalMs) → void -
Sets the interval in milliseconds between measurement batches delivered to MeasurementListener. Default is 1000 ms. Values less than or equal to zero are treated as the default.
intervalMswait time in milliseconds before the next publish cycle -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited