Skip to main content

Class: AvionicsStatusClient

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

Constructor.

Parameters

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

Returns

AvionicsStatusClient

Defined in

src/workingtitle-instruments-g3x-touch/html_ui/Pages/VCockpit/Instruments/NavSystems/G3XTouch/Shared/AvionicsStatus/AvionicsStatusManager.ts:290

Properties

uid

Readonly uid: string

The UID of this client's avionics unit.

Defined in

src/workingtitle-instruments-g3x-touch/html_ui/Pages/VCockpit/Instruments/NavSystems/G3XTouch/Shared/AvionicsStatus/AvionicsStatusManager.ts:275

Methods

destroy

destroy(): void

Destroys this client.

Returns

void

Defined in

src/workingtitle-instruments-g3x-touch/html_ui/Pages/VCockpit/Instruments/NavSystems/G3XTouch/Shared/AvionicsStatus/AvionicsStatusManager.ts:363


init

init(): void

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.

Defined in

src/workingtitle-instruments-g3x-touch/html_ui/Pages/VCockpit/Instruments/NavSystems/G3XTouch/Shared/AvionicsStatus/AvionicsStatusManager.ts:301


setStatus

setStatus(status): void

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

NameTypeDescription
statusAvionicsStatusThe status to set.

Returns

void

Throws

Error if this client was destroyed.

Defined in

src/workingtitle-instruments-g3x-touch/html_ui/Pages/VCockpit/Instruments/NavSystems/G3XTouch/Shared/AvionicsStatus/AvionicsStatusManager.ts:325