UI Interections Functions definitions
Methods
# inner animateLinesOfSight(geojson_asset_points, geojson_anchors, geojson_antennas, geojson_lines_of_sight)
Animate Lines Of Sight function
Parameters:
| Name | Type | Description |
|---|---|---|
geojson_asset_points |
FeatureCollection
|
Asset Points FeatureCollection data |
geojson_anchors |
FeatureCollection
|
Anchors FeatureCollection data |
geojson_antennas |
FeatureCollection
|
Antennas FeatureCollection data |
geojson_lines_of_sight |
FeatureCollection
|
Lines of Sight FeatureCollection data |
# inner animatePulsingDotPoints(pulsing_dots_layers_sources)
Animate Pulsing Dot Points function
Parameters:
| Name | Type | Description |
|---|---|---|
pulsing_dots_layers_sources |
Array
|
Pulsing Dots sources Array |
# inner animateWallIntersectionPoints(wall_intersections_points, geojson_lines_of_sight, geojson_walls)
Animate Wall Intersection Points function
Parameters:
| Name | Type | Description |
|---|---|---|
wall_intersections_points |
FeatureCollection
|
Lines-of-Sight Walls Intersection Points Array |
geojson_lines_of_sight |
FeatureCollection
|
Lines-of-Sight FeatureCollection |
geojson_walls |
FeatureCollection
|
Map Features Walls FeatureCollection data |
# inner autoScrollDown(htmlElement, string)
Auto scroll down element (Console debug content)
Parameters:
| Name | Type | Description |
|---|---|---|
htmlElement |
HTMLElement
|
HTML Element (Console debug) |
string |
string
|
Text to print on console |
# inner catchAntennaDirectionsIntersections(lines_of_sight, geojson_antennas_directions) → {boolean}
Catch the Antennas Direction Intersections in Lines Of Sight ((UNCALLED - done in calculate at backend module)
Parameters:
| Name | Type | Description |
|---|---|---|
lines_of_sight |
FeatureCollection
|
Lines of Sight FeatureCollection data |
geojson_antennas_directions |
FeatureCollection
|
Antennas Directions FeatureCollection data |
Result value of Asset Points with Antennas Directions
boolean
# inner catchLinesOfSight(geojson_objs, geojson_antennas) → {Array}
Catch the Lines Of Sight FeatureCollection
Parameters:
| Name | Type | Description |
|---|---|---|
geojson_objs |
FeatureCollection
|
Points (Asset Points or Anchors) FeatureCollection data |
geojson_antennas |
FeatureCollection
|
Antennas FeatureCollection |
Lines Of Sight Array data
Array
# inner catchWallIntersections(lines_of_sight, walls) → {Array}
Catch the Wall Intersections in Lines Of Sight
Parameters:
| Name | Type | Description |
|---|---|---|
lines_of_sight |
FeatureCollection
|
Lines of Sight FeatureCollection data |
walls |
FeatureCollection
|
Map Features Walls FeatureCollection data |
Lines-of-Sight Walls Intersection Points Array
Array
# inner checkAllCheckboxOptions(checkboxes)
Check All Checkbox Options
Parameters:
| Name | Type | Description |
|---|---|---|
checkboxes |
Array
|
Checkboxes HMTL input type Array |
# inner createAntennaDirection(index, geojson_antennas_directions) → {FeatureCollection}
Create Antenna Direction with provided a rotation angle
Parameters:
| Name | Type | Description |
|---|---|---|
index |
number
|
Antenna feature index |
geojson_antennas_directions |
*
|
Antennas Directions FeatureCollection |
Antennas Directions FeatureCollection
FeatureCollection
# inner createAssetPointLobesDirection(index, geojson_assetpoints_directions) → {FeatureCollection}
Create Asset Point Lobes Direction with provided a rotation angles
Parameters:
| Name | Type | Description |
|---|---|---|
index |
number
|
Asset point feature index |
geojson_assetpoints_directions |
FeatureCollection
|
Asset Point Directions FeatureCollection |
Asset Points Directions FeatureCollection
FeatureCollection
# inner generateAnimatedImage(basecolor)
Generate an Animated Image with rgb basecolor
Parameters:
| Name | Type | Description |
|---|---|---|
basecolor |
string
|
RGB color values |
Animated Pulsing Dot
# inner printOnConsoleDebugger(string)
Print string on console debugger innerHTML element and call autoScrollDown()
Parameters:
| Name | Type | Description |
|---|---|---|
string |
string
|
Text to print on console |
# inner setPulsingDotsLayersToNone(layers_pulsing_dots_IDs_to_disable) → {Array}
Set visibility of 'pulsing-dots' layers to none
Parameters:
| Name | Type | Description |
|---|---|---|
layers_pulsing_dots_IDs_to_disable |
Array
|
Pulsing Dots Layer Ids Array to disable |
Pulsing Dots Layer Ids Array with non-visible elements
Array
# inner setPulsingDotsLayersToVisible(layers_pulsing_dots_IDs_to_enable) → {Array}
Set visibility of 'pulsing-dots' layers to visible
Parameters:
| Name | Type | Description |
|---|---|---|
layers_pulsing_dots_IDs_to_enable |
Array
|
Pulsing Dots Layer Ids Array to enable |
Pulsing Dots Layer Ids Array with visible elements
Array
# inner toggleDrag(source_obj, geojson_obj, currentFeatureId, draggability)
Toggle Drag option inside popup
Parameters:
| Name | Type | Description |
|---|---|---|
source_obj |
string
|
Source of FeatureCollection |
geojson_obj |
FeatureCollection
|
FeatureCollection data object |
currentFeatureId |
number
|
Index of FeatureCollection data object |
draggability |
boolean
|
Value of draggability option |
# inner toggleLinesOfSight(source_obj, geojson_obj, currentFeatureId, show_lines)
Toggle Lines-of-Sight option inside popup
Parameters:
| Name | Type | Description |
|---|---|---|
source_obj |
string
|
Source of FeatureCollection |
geojson_obj |
FeatureCollection
|
FeatureCollection data object |
currentFeatureId |
number
|
Index of FeatureCollection data object |
show_lines |
boolean
|
Value of show lines option |
# inner togglePredictions(source_obj, geojson_obj, currentFeatureId, show_predictions)
Toggle Predictions option inside popup
Parameters:
| Name | Type | Description |
|---|---|---|
source_obj |
string
|
Source of FeatureCollection |
geojson_obj |
FeatureCollection
|
FeatureCollection data object |
currentFeatureId |
number
|
Index of FeatureCollection data object |
show_predictions |
boolean
|
Value of show predictions option |
# inner uncheckAllCheckboxOptions(checkboxes)
Uncheck All Checkbox Options
Parameters:
| Name | Type | Description |
|---|---|---|
checkboxes |
Array
|
Checkboxes HMTL input type Array |
# inner updateAnimationColorButtonsOnStart()
Update 'Start Animation' and 'Stop Animation' button colors on start
# inner updateAnimationColorButtonsOnStop()
Update 'Start Animation' and 'Stop Animation' button colors on stop
# inner updateAntennaConfigs(source_obj, geojson_antennas, geojson_antennas_directions, currentFeatureId)
Update Antenna Configs option inside popup
Parameters:
| Name | Type | Description |
|---|---|---|
source_obj |
string
|
Source of FeatureCollection |
geojson_antennas |
FeatureCollection
|
Antennas FeatureCollection |
geojson_antennas_directions |
FeatureCollection
|
Antennas Directions FeatureCollection |
currentFeatureId |
number
|
Antenna feature index |
# inner updateAssetPointConfigs(source_obj, geojson_assetpoints, geojson_assetpoints_directions, prev_large_lobe_angle_direction, prev_small_lobe_angle_direction, animation_item, currentFeatureId)
Update Asset Point Configs option inside popup
Parameters:
| Name | Type | Description |
|---|---|---|
source_obj |
string
|
Source of FeatureCollection |
geojson_assetpoints |
FeatureCollection
|
Asset Points FeatureCollection |
geojson_assetpoints_directions |
FeatureCollection
|
Asset Points Directions FeatureCollection |
prev_large_lobe_angle_direction |
number
|
Previous value of large lobe angle direction of Asset Point |
prev_small_lobe_angle_direction |
number
|
Previous value of small lobe angle direction of Asset Point |
animation_item |
number
|
Asset Point Animation item index |
currentFeatureId |
number
|
Asset Point feature index |
# inner updateConnectionButtonsColors()
Update connect and disconnect button colors on connect successfully
# inner updateContainerInnerHtml(container, message)
Attach a message to a container innerHTML
Parameters:
| Name | Type | Description |
|---|---|---|
container |
HTMLElement
|
HTML element container |
message |
string
|
Text to print on container |
# inner updateDisconnectionButtonsColors()
Update connect and disconnect button colors on disconnect successfully
# inner updateLinesOfSightCoordinates(geojson_asset_points, geojson_anchors, geojson_antennas, geojson_lines_of_sight) → {Array}
Update Lines Of Sight Coordinates
Parameters:
| Name | Type | Description |
|---|---|---|
geojson_asset_points |
FeatureCollection
|
Asset Points FeatureCollection data |
geojson_anchors |
FeatureCollection
|
Anchors FeatureCollection data |
geojson_antennas |
FeatureCollection
|
Antennas FeatureCollection data |
geojson_lines_of_sight |
FeatureCollection
|
Lines of Sight FeatureCollection data |
Lines Of Sight Array data
Array
# inner updateMqttParameters(mqtt_hostname, mqtt_port, reconnect_timeout, clientUsername, clientPassword, ssl_flag, messageToSend, mqttTopicToReceivePredictions, mqttTopicToReceiveCalculations, geojson_asset_points, geojson_antennas, geojson_anchors, geojson_precison_decimal_places, pulsing_dots_layers_IDs, pulsing_dots_layers_sources, selectedMapIndex, received_uuid) → {string}
Update Mqtt Variables and call MQTTConnect() function
Parameters:
| Name | Type | Description |
|---|---|---|
mqtt_hostname |
string
|
MQTT hostname connection |
mqtt_port |
string
|
MQTT port connection |
reconnect_timeout |
number
|
MQTT reconnect Time Out value |
clientUsername |
string
|
MQTT client username connection |
clientPassword |
string
|
MQTT client password connection |
ssl_flag |
boolean
|
MQTT connection SSL flag |
messageToSend |
string
|
MQTT message to send to the broker |
mqttTopicToReceivePredictions |
string
|
MQTT Topic To Receive Predictions |
mqttTopicToReceiveCalculations |
string
|
MQTT Topic To Receive Calculations |
geojson_asset_points |
FeatureCollection
|
Asset Points FeatureCollection |
geojson_antennas |
FeatureCollection
|
Antennas FeatureCollection |
geojson_anchors |
FeatureCollection
|
Anchors FeatureCollection |
geojson_precison_decimal_places |
number
|
Vaule of precison decimal places |
pulsing_dots_layers_IDs |
Array
|
Pulsing Dots IDs Array |
pulsing_dots_layers_sources |
Array
|
Pulsing Dots sources Array |
selectedMapIndex |
number
|
index of selected Map |
received_uuid |
string
|
MQTT received session UUID |
Connection string value and backend read rate value;
string
# inner updatePulsingDotPointsCoordinates(geojson_pulsing_dots_points, length_source, index_source) → {FeatureCollection}
Update Pulsing Dot Point Coordinates
Parameters:
| Name | Type | Description |
|---|---|---|
geojson_pulsing_dots_points |
FeatureCollection
|
Pulsing Dot Points FeatureCollection |
length_source |
number
|
FeatureCollection size |
index_source |
number
|
Pulsing Dot Points FeatureCollection index |
Pulsing Dot Points FeatureCollection Updated
FeatureCollection
# async inner updateRssiParametersColorButton()
Update Rssi Parameters button color
# inner updateRssiPathLossModelParameters(connectedFlag, geojson_asset_points, geojson_antennas, geojson_anchors, geojson_precison_decimal_places, backend_read_rate, selectedMapIndex, mqttTopicToPublish, messageToSend) → {JSON}
Update RSSI Path-Loss Model parameters
Parameters:
| Name | Type | Description |
|---|---|---|
connectedFlag |
boolean
|
MQTT connection state flag |
geojson_asset_points |
FeatureCollection
|
Asset Points FeatureCollection |
geojson_antennas |
FeatureCollection
|
Antennas FeatureCollection |
geojson_anchors |
FeatureCollection
|
Anchors FeatureCollection |
geojson_precison_decimal_places |
number
|
Vaule of precison decimal places |
backend_read_rate |
number
|
Value of Backend read rate |
selectedMapIndex |
number
|
Index of selected Map |
mqttTopicToPublish |
string
|
MQTT Topic To Publish Messages |
messageToSend |
string
|
MQTT message to send to broker |
RSSI parameters as JSON object
JSON
# inner updateSelectedColorButtonStartConnection()
Update Start Connection button color on selected ML agents
# inner updateSelectedColorButtonSubmitAgents()
Update button color on select ML agents
# inner updateSelectedMlAgents(connectedFlag, geojson_asset_points, geojson_antennas, geojson_anchors, geojson_precison_decimal_places, backend_read_rate, selectedMapIndex, mqttTopicToPublish, messageToSend) → {Array}
Update Selected ML Agent from Container
Parameters:
| Name | Type | Description |
|---|---|---|
connectedFlag |
boolean
|
MQTT connection state flag |
geojson_asset_points |
FeatureCollection
|
Asset Points FeatureCollection |
geojson_antennas |
FeatureCollection
|
Antennas FeatureCollection |
geojson_anchors |
FeatureCollection
|
Anchors FeatureCollection |
geojson_precison_decimal_places |
number
|
Vaule of precison decimal places |
backend_read_rate |
number
|
Value of Backend read rate |
selectedMapIndex |
number
|
Index of selected Map |
mqttTopicToPublish |
string
|
MQTT Topic To Publish Messages |
messageToSend |
string
|
MQTT message to send to broker |
Selected ML Agent Algorithm
Array
# inner updateUnselectedColorButtonStartConnection()
Update Start Connection button color on deselect ML agents
# inner updateUnselectedColorButtonSubmitAgents()
Update button color on unselect ML agents
# inner updateWallIntersectionPointsCoordinates(wall_intersections_points, geojson_lines_of_sight, geojson_walls) → {Array}
Update Wall Intersection Points Coordinates
Parameters:
| Name | Type | Description |
|---|---|---|
wall_intersections_points |
FeatureCollection
|
Lines-of-Sight Walls Intersection Points Array |
geojson_lines_of_sight |
FeatureCollection
|
Lines-of-Sight FeatureCollection |
geojson_walls |
FeatureCollection
|
Map Features Walls FeatureCollection data |
Lines-of-Sight Walls Intersection Points Array
Array