Skip to main content

Class: ReversionaryModeManager

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/ReversionaryMode/ReversionaryModeManager.ts:11

A manager that tracks whether reversionary mode should be active for a GDU.

Constructors​

Constructor​

new ReversionaryModeManager(bus, config, gduIndex): ReversionaryModeManager

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/ReversionaryMode/ReversionaryModeManager.ts:35

Creates a new instance of ReversionaryModeManager.

Parameters​

ParameterTypeDescription
busEventBusThe event bus.
configAvionicsConfigThe general avionics configuration object.
gduIndexnumberThe index of this manager's parent GDU.

Returns​

ReversionaryModeManager

Properties​

isReversionaryMode​

readonly isReversionaryMode: Subscribable<boolean>

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/ReversionaryMode/ReversionaryModeManager.ts:22

Whether reversionary mode should be active.

Methods​

activate()​

activate(): void

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/ReversionaryMode/ReversionaryModeManager.ts:72

Activates this manager. While activated, this manager will automatically keep track of whether reversionary mode should be active for its parent GDU.

Returns​

void

Throws​

Error if this manager has been destroyed.


deactivate()​

deactivate(): void

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/ReversionaryMode/ReversionaryModeManager.ts:91

Deactivates this manager. While deactivated, this manager will not automatically keep track of whether reversionary mode should be active for its parent GDU, and the value of the this.isReversionaryMode subscribable is set to false.

Returns​

void

Throws​

Error if this manager has been destroyed.


destroy()​

destroy(): void

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/ReversionaryMode/ReversionaryModeManager.ts:147

Destroys this manager. After this manager is destroyed, it will no longer keep track of whether reversionary mode should be active and can no longer be activated or deactivated.

Returns​

void