Skip to main content

Class: AvionicsStatusClient

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/AvionicsStatus/AvionicsStatusManager.ts:271

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

Constructors​

Constructor​

new AvionicsStatusClient(instrumentIndex, bus): AvionicsStatusClient

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/AvionicsStatus/AvionicsStatusManager.ts:290

Constructor.

Parameters​

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

Returns​

AvionicsStatusClient

Properties​

uid​

readonly uid: string

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/AvionicsStatus/AvionicsStatusManager.ts:275

The UID of this client's avionics unit.

Methods​

destroy()​

destroy(): void

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/AvionicsStatus/AvionicsStatusManager.ts:363

Destroys this client.

Returns​

void


init()​

init(): void

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/AvionicsStatus/AvionicsStatusManager.ts:301

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-g3x-touch/html_ui/Shared/AvionicsStatus/AvionicsStatusManager.ts:325

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.