Class is used for managing measurement generators and notifying about sensor and signal measurements. More...
Inherits Finalizable.
Public Member Functions | |
| void | addMeasurementListener (MeasurementListener listener) |
| Method is used to add MeasurementListener class element which will notify about new sensor or signal measurements. | |
| void | removeMeasurementListener (MeasurementListener listener) |
| Method is used for removing previously added MeasurementListener class element. | |
| String | addBeaconGenerator (String uuid, int major, int minor, int power, int timeout, int rssiMin, int rssiMax) |
| Method adds a beacon generator for simulating BLE beacon signals. | |
| String | addEddystoneGenerator (String namespaceId, String instanceId, int power, int timeout, int rssiMin, int rssiMax) |
| Method adds an Eddystone generator for simulating Eddystone beacon signals. | |
| void | removeBleGenerators () |
| Method removes all BLE beacon generators. | |
| void | removeBleGenerator (String id) |
| Method removes a specific BLE beacon generator by its identifier. | |
| String | addWifiGenerator (String mac, int timeout, int rssiMin, int rssiMax) |
| Method adds a Wi-Fi generator for simulating Wi-Fi signals. | |
| void | removeWifiGenerator (String id) |
| Method removes a specific Wi-Fi generator by its identifier. | |
| void | removeWifiGenerators () |
| Method removes all Wi-Fi generators. | |
| String | addWifiRttGenerator (String mac, int timeout, int distMin, int distMax, int stdDevMin, int stdDevMax, int rssiMin, int rssiMax) |
| Method adds a Wi-Fi RTT generator for simulating Wi-Fi Round-Trip Time signals. | |
| void | removeWifiRttGenerator (String hash) |
| Method removes a specific Wi-Fi RTT generator by its identifier. | |
| void | removeWifiRttGenerators () |
| Method removes all Wi-Fi RTT generators. | |
| String | addLocationGenerator (double latMin, double latMax, double lonMin, double lonMax, double accMin, double accMax, int timeout) |
| Method adds a location generator for simulating location measurements. | |
| void | removeLocationGenerator (String id) |
| Method removes a specific location generator by its identifier. | |
| void | removeLocationGenerators () |
| Method removes all location generators. | |
Class is used for managing measurement generators and notifying about sensor and signal measurements.
Referenced from NavigineSdk.
Definition at line 19 of file measurement_manager.dart.
| String MeasurementManager.addBeaconGenerator | ( | String | uuid, |
| int | major, | ||
| int | minor, | ||
| int | power, | ||
| int | timeout, | ||
| int | rssiMin, | ||
| int | rssiMax ) |
Method adds a beacon generator for simulating BLE beacon signals.
| uuid | UUID of the beacon. |
| major | Major value of the beacon. |
| minor | Minor value of the beacon. |
| power | Transmission power of the beacon (dBm). |
| timeout | Duration of the generator in milliseconds. |
| rssiMin | Minimum RSSI value for the simulated signal. |
| rssiMax | Maximum RSSI value for the simulated signal. |
Dart code snippet:
| String MeasurementManager.addEddystoneGenerator | ( | String | namespaceId, |
| String | instanceId, | ||
| int | power, | ||
| int | timeout, | ||
| int | rssiMin, | ||
| int | rssiMax ) |
Method adds an Eddystone generator for simulating Eddystone beacon signals.
| namespaceId | Namespace ID of the Eddystone beacon. |
| instanceId | Instance ID of the Eddystone beacon. |
| power | Transmission power of the beacon (dBm). |
| timeout | Duration of the generator in milliseconds. |
| rssiMin | Minimum RSSI value for the simulated signal. |
| rssiMax | Maximum RSSI value for the simulated signal. |
Dart code snippet:
| String MeasurementManager.addLocationGenerator | ( | double | latMin, |
| double | latMax, | ||
| double | lonMin, | ||
| double | lonMax, | ||
| double | accMin, | ||
| double | accMax, | ||
| int | timeout ) |
Method adds a location generator for simulating location measurements.
| latMin | Minimum latitude for the simulated location. |
| latMax | Maximum latitude for the simulated location. |
| lonMin | Minimum longitude for the simulated location. |
| lonMax | Maximum longitude for the simulated location. |
| accMin | Minimum accuracy for the simulated location (in meters). |
| accMax | Maximum accuracy for the simulated location (in meters). |
| timeout | Duration of the generator in milliseconds. |
Dart code snippet:
| void MeasurementManager.addMeasurementListener | ( | MeasurementListener | listener | ) |
Method is used to add MeasurementListener class element which will notify about new sensor or signal measurements.
| listener | Corresponding MeasurementListener class. |
Dart code snippet:
| String MeasurementManager.addWifiGenerator | ( | String | mac, |
| int | timeout, | ||
| int | rssiMin, | ||
| int | rssiMax ) |
Method adds a Wi-Fi generator for simulating Wi-Fi signals.
| mac | MAC address of the Wi-Fi access point. |
| timeout | Duration of the generator in milliseconds. |
| rssiMin | Minimum RSSI value for the simulated signal. |
| rssiMax | Maximum RSSI value for the simulated signal. |
Dart code snippet:
| String MeasurementManager.addWifiRttGenerator | ( | String | mac, |
| int | timeout, | ||
| int | distMin, | ||
| int | distMax, | ||
| int | stdDevMin, | ||
| int | stdDevMax, | ||
| int | rssiMin, | ||
| int | rssiMax ) |
Method adds a Wi-Fi RTT generator for simulating Wi-Fi Round-Trip Time signals.
| mac | MAC address of the Wi-Fi access point. |
| timeout | Duration of the generator in milliseconds. |
| distMin | Minimum distance for the simulated signal (in meters). |
| distMax | Maximum distance for the simulated signal (in meters). |
| stdDevMin | Minimum standard deviation for the simulated signal. |
| stdDevMax | Maximum standard deviation for the simulated signal. |
| rssiMin | Minimum RSSI value for the simulated signal. |
| rssiMax | Maximum RSSI value for the simulated signal. |
Dart code snippet:
| void MeasurementManager.removeBleGenerator | ( | String | id | ) |
Method removes a specific BLE beacon generator by its identifier.
| id | Unique identifier of the BLE generator to remove. |
Dart code snippet:
| void MeasurementManager.removeBleGenerators | ( | ) |
Method removes all BLE beacon generators.
Dart code snippet:
| void MeasurementManager.removeLocationGenerator | ( | String | id | ) |
Method removes a specific location generator by its identifier.
| id | Unique identifier of the location generator to remove. |
Dart code snippet:
| void MeasurementManager.removeLocationGenerators | ( | ) |
Method removes all location generators.
Dart code snippet:
| void MeasurementManager.removeMeasurementListener | ( | MeasurementListener | listener | ) |
Method is used for removing previously added MeasurementListener class element.
| listener | Corresponding MeasurementListener class to remove. |
Dart code snippet:
| void MeasurementManager.removeWifiGenerator | ( | String | id | ) |
Method removes a specific Wi-Fi generator by its identifier.
| id | Unique identifier of the Wi-Fi generator to remove. |
Dart code snippet:
| void MeasurementManager.removeWifiGenerators | ( | ) |
Method removes all Wi-Fi generators.
Dart code snippet:
| void MeasurementManager.removeWifiRttGenerator | ( | String | hash | ) |
Method removes a specific Wi-Fi RTT generator by its identifier.
| hash | Unique identifier of the Wi-Fi RTT generator to remove. |
Dart code snippet:
| void MeasurementManager.removeWifiRttGenerators | ( | ) |
Method removes all Wi-Fi RTT generators.
Dart code snippet: