data/CommandHandler¶
Classes¶
CommandHandler¶
Defined in: data/CommandHandler.ts:30
CommandHandler processes commands before they are sent to the server. It handles: 1. Local commands that are executed client-side only (PAN, ZOOM, etc.) 2. Commands that need preprocessing before sending to server (MCRE with bbox) 3. Commands that need special client-side handling (QUIT)
Constructors¶
Constructor¶
Defined in: data/CommandHandler.ts:90
Parameters¶
app¶
Returns¶
Methods¶
getAllHandledCommands()¶
Defined in: data/CommandHandler.ts:98
All commands handled by this CommandHandler — the single source of truth the console merges into its autocomplete list.
Returns¶
string[]
handleCommand()¶
Defined in: data/CommandHandler.ts:107
Main entry point for command processing
Parameters¶
command¶
string
The raw command string from the console
Returns¶
CommandResult indicating how to handle the command
executeServerCommand()¶
Defined in: data/CommandHandler.ts:155
Execute a command line the simulation forwarded over BlueSky's STACK
topic (a scenario-file GUI command such as PAN/ZOOM, relayed by the
proxy as a stack_command event). Runs the local-command handlers
exactly as if the line had been typed into the console, but never
sends anything back to the server — the simulation forwarded the line
precisely because it cannot execute it, so returning it would loop.
Parameters¶
command¶
string
Returns¶
void
Interfaces¶
CommandResult¶
Defined in: data/CommandHandler.ts:14
Result of command processing
Properties¶
handled¶
Defined in: data/CommandHandler.ts:16
Whether the command was handled by this handler
sendToServer¶
Defined in: data/CommandHandler.ts:18
Whether the command should be sent to the BlueSky server
modifiedCommand?¶
Defined in: data/CommandHandler.ts:20
Modified command to send (if different from original)