Skip to main content

Class: AvionicsStatusClient

Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/AvionicsStatus/AvionicsStatusManager.ts:280

A client which tracks and sends the status of a G3000 avionics unit (GDU or GTC) to a central manager for processing.

Constructors

Constructor

new AvionicsStatusClient(instrumentType, instrumentIndex, bus): AvionicsStatusClient

Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/AvionicsStatus/AvionicsStatusManager.ts:300

Constructor.

Parameters

ParameterTypeDescription
instrumentTypeInstrumentTypeThe instrument type of this client's avionics unit.
instrumentIndexnumberThe instrument index of this client's avionics unit.
busEventBusThe event bus.

Returns

AvionicsStatusClient

Properties

uid

readonly uid: string

Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/AvionicsStatus/AvionicsStatusManager.ts:284

The UID of this client's avionics unit.

Methods

destroy()

destroy(): void

Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/AvionicsStatus/AvionicsStatusManager.ts:374

Destroys this client.

Returns

void


init()

init(): void

Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/AvionicsStatus/AvionicsStatusManager.ts:312

Initializes this client. Once initialized, this client will automatically send its status to a central manager.

Returns

void

Throws

Error if this client was destroyed.


setStatus()

setStatus(status): void

Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/AvionicsStatus/AvionicsStatusManager.ts:336

Sets the status of this client's avionics unit. If this client has been initialized, then the new status will automatically be sent to the client's central manager.

Parameters

ParameterTypeDescription
statusAvionicsStatusThe status to set.

Returns

void

Throws

Error if this client was destroyed.