NodeManager
Interface for managing the in-memory node database and processing received node information.
Properties
Functions
Link copied to clipboard
Returns information about the local node.
Link copied to clipboard
abstract fun handleReceivedNodeStatus(fromNum: Int, s: ERROR CLASS: Symbol not found for StatusMessage)
Processes a received node status message.
Link copied to clipboard
Processes a received paxcounter packet.
Link copied to clipboard
abstract fun handleReceivedPosition(fromNum: Int, myNodeNum: Int, p: ERROR CLASS: Symbol not found for ProtoPosition, defaultTime: Long)
Processes a received position packet.
Link copied to clipboard
abstract fun handleReceivedTelemetry(fromNum: Int, telemetry: ERROR CLASS: Symbol not found for Telemetry)
Processes a received telemetry packet.
Link copied to clipboard
abstract fun handleReceivedUser(fromNum: Int, p: ERROR CLASS: Symbol not found for User, channel: Int = 0, manuallyVerified: Boolean = false)
Processes a received user packet.
Link copied to clipboard
abstract fun insertMetadata(nodeNum: Int, metadata: ERROR CLASS: Symbol not found for DeviceMetadata)
Inserts hardware metadata for a node.
Link copied to clipboard
abstract fun installNodeInfo(info: ERROR CLASS: Symbol not found for ProtoNodeInfo, withBroadcast: Boolean = true)
Installs node information from a ProtoNodeInfo object.
Link copied to clipboard
Loads the cached node database from the repository.
Link copied to clipboard
Removes a node from the in-memory database by its number.
Link copied to clipboard
Sets whether node database writes are allowed.
Link copied to clipboard
Sets whether the node database is ready.
Link copied to clipboard
abstract fun updateNode(nodeNum: Int, withBroadcast: Boolean = true, channel: Int = 0, transform: (ERROR CLASS: Symbol not found for Node) -> ERROR CLASS: Symbol not found for Node)
Updates a node using a transformation function.
Link copied to clipboard
Updates the status string for a node.