Class: AvionicsStatusManager
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/AvionicsStatus/AvionicsStatusManager.ts:112
A manager for G3000 avionics unit (GDUs and GTCs) status. Processes status updates received from instances of AvionicsStatusClient and publishes avionics unit status events, including global power state events.
Constructors
Constructor
new AvionicsStatusManager(
bus
):AvionicsStatusManager
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/AvionicsStatus/AvionicsStatusManager.ts:131
Constructor.
Parameters
Parameter | Type | Description |
---|---|---|
bus | EventBus | The event bus. |
Returns
AvionicsStatusManager
Methods
destroy()
destroy():
void
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/AvionicsStatus/AvionicsStatusManager.ts:268
Destroys this manager. Once destroyed, this manager will no longer keep track of avionics unit statuses or publish events to the event bus.
Returns
void
init()
init():
void
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/AvionicsStatus/AvionicsStatusManager.ts:140
Initializes this manager. Once initialized, this manager will keep track of the status of all AvionicsStatusClient instances and publish them on the event bus, along with the avionics global power state.
Returns
void
Throws
Error if this manager was destroyed.