AbstractMavDialect

abstract class AbstractMavDialect(dependencies: Set<MavDialect>, messages: Map<UInt, MavMessage.MavCompanion<out MavMessage<*>>>) : MavDialect

Constructors

Link copied to clipboard
constructor(dependencies: Set<MavDialect>, messages: Map<UInt, MavMessage.MavCompanion<out MavMessage<*>>>)

Properties

Link copied to clipboard
open override val dependencies: Set<MavDialect>

The dialects that this dialect depends on.

Link copied to clipboard
open override val messages: Map<UInt, MavMessage.MavCompanion<out MavMessage<*>>>

The messages that are defined in this dialect. This does not include the messages of the dependencies.

Functions

Link copied to clipboard
open override fun resolveCompanionOrNull(messageId: UInt): MavMessage.MavCompanion<out MavMessage<*>>?

Searches the dialect and its dependencies for the MavMessage.MavCompanion of the given messageId. Returns the object if found, null otherwise.

Link copied to clipboard
open override fun supports(messageId: UInt): Boolean

Checks whether this dialect supports the message of the specified messageId.