Skip to content

core/App

Classes

App

Defined in: core/App.ts:36

Main application coordinator: creates the core modules and UI components, wires them together, and manages the overall application lifecycle.

Constructors

Constructor
new App(): App;

Defined in: core/App.ts:64

Returns

App

Methods

initialize()
initialize(): Promise<void>;

Defined in: core/App.ts:92

Initialize the application Sets up all modules and starts the application lifecycle

Returns

Promise\<void>

sendCommand()
sendCommand(command): Promise<boolean>;

Defined in: core/App.ts:505

Send command to simulation

Parameters
command

string

Returns

Promise\<boolean>

getRouteData()
getRouteData(): RouteData | null;

Defined in: core/App.ts:514

Get the current route data for the selected aircraft (if any). Used by RouteDrawingManager to anchor a leader line from the last existing waypoint when appending to an aircraft that already has a route.

Returns

RouteData | null

getAircraftInteractionManager()
getAircraftInteractionManager(): 
  | AircraftInteractionManager
  | null;

Defined in: core/App.ts:524

Get the AircraftInteractionManager instance (may be null if not yet initialized). Used by RouteDrawingManager to route its trailing POS command through the manager's explicit-POS tracking path so the resulting ROUTEDATA response is not misclassified as unsolicited.

Returns

| AircraftInteractionManager | null

setActiveNode()
setActiveNode(nodeId): void;

Defined in: core/App.ts:531

Set active simulation node

Parameters
nodeId

string

Returns

void

getState()
getState(): AppState;

Defined in: core/App.ts:536

Returns

AppState

getSocketManager()
getSocketManager(): SocketManager;

Defined in: core/App.ts:540

Returns

SocketManager

getStateManager()
getStateManager(): StateManager;

Defined in: core/App.ts:544

Returns

StateManager

getConsole()
getConsole(): Console;

Defined in: core/App.ts:548

Returns

Console

getMapDisplay()
getMapDisplay(): MapDisplay;

Defined in: core/App.ts:552

Returns

MapDisplay

getMapOverlay()
getMapOverlay(): MapOverlay | null;

Defined in: core/App.ts:556

Returns

MapOverlay | null

getMapControlsPanel()
getMapControlsPanel(): MapControlsPanel;

Defined in: core/App.ts:560

Returns

MapControlsPanel

getDisplayOptionsPanel()
getDisplayOptionsPanel(): DisplayOptionsPanel;

Defined in: core/App.ts:564

Returns

DisplayOptionsPanel