Ravn::BDE::
Console class
Superclass | Object |
Extended With |
|
Constants
- COMMANDS
Dispatch table/help text for commands
- DEFAULT_PROMPT
What to display as a prompt
- ICONS
Icons to display for particular message types
- JADC2_MESSAGE_PATTERN
Pattern that matches messages types shown in JADC2 mode
- PLACEHOLDER_PATTERN
Pattern for matching placeholders in bolt messages
- STARTUP_FORMAT
Attributes
- beacon R
The beacon object that receives beacon broadcasts
- bolts RW
The table of bolts loaded from the startup message.
- bolts_lookup RW
The abbreviation table of bolt ID prefixes to bolt IDs.
- client R
The client object for communications with the ZMQ device
- command_lookup RW
The abbreviation table of command prefixes to commands.
- current_pos R
The current position of this station (if known)
- format R
A formatter object that allows for colorization and styling (a Pastel object).
- logdir R
Path for optional event logging
- prompt RW
The current prompt text
- received_bolts R
The hash that stores received bolt information, keyed by UUID
- received_bolts_lookup RW
The hash that stores abbreviations for lookup
Public Class Methods
Create a CLI
Run the console, connecting via ZMQ socket device at the given endpoint
.
Public Instance Methods
Return a String representation of the given Bolt message
.
Return a display for the body of the given message
.
Output a message describing the current state of the JADC2 mode flag.
Dispatch the given input_string
read from the prompt. Dispatches input strings that start with a /command
as a control command, and everything else as a character command.
Display a message and redisplay the prompt on the next line.
Display a representation of the given BDE beacon message
.
Display a block of text with appropriate spacing.
Display the given message
as an error.
Display help text for the given command
, or a list of commands if no command
is specified.
Display the given message
as logging output.
Display a representation of the given message
.
Display the result
of running a command.
Write the message to a file, for manual inspection.
Explode the given hash
into a more human-readable set of values.
Return an icon for displaying the given message
.
Initiate the Bolt with the given bolt_id
. The bolt_id
can be abbreviated.
Whether to show only JADC2 messages or show everything
Populate the bolts table from the given startup_message
.
Read a command from the prompt and return it.
Simulate receiving the Bolt with the given bolt_id
. The bolt_id
can be abbreviated.
Set the current position from the message
.
Respond to the bolt with the given UUID with the default response
Run the CLI
Does the CLI want to stay running?
Send the Bolt with the given bolt_id
. The bolt_id
can be abbreviated.
Create and send messages for the bolts with the given prefixes
(in a space-separated String), with the type created via the given type_pattern
.
Show the received bolt messages
Show the bolts loaded from the current mission.
Toggle JADC2 mode on or off.