Class: FlightTimerInstrument
An instrument which manages zero or more flight timers. Requires the topics defined in ClockEvents to be actively published to the event bus in order to function properly. All timers operate using simulation time and are updated every instrument update cycle with up to millisecond precision.
Implements
Constructors
constructor
• new FlightTimerInstrument(bus
, options
): FlightTimerInstrument
Creates a new instance of FlightTimerInstrument.
Parameters
Name | Type | Description |
---|---|---|
bus | EventBus | The event bus. |
options | Readonly <FlightTimerInstrumentOptions > | Options with which to configure the instrument. |
Returns
Defined in
src/sdk/instruments/FlightTimer.ts:309
• new FlightTimerInstrument(bus
, timerCount
): FlightTimerInstrument
Creates a new instance of FlightTimerInstrument that manages timers with the empty ID (''
).
Parameters
Name | Type | Description |
---|---|---|
bus | EventBus | The event bus. |
timerCount | number | The number of supported timers. |
Returns
Defined in
src/sdk/instruments/FlightTimer.ts:315
Methods
init
▸ init(): void
Initializes this instrument.
Returns
void
Implementation of
Defined in
src/sdk/instruments/FlightTimer.ts:332
onUpdate
▸ onUpdate(): void
Updates this instrument.
Returns
void
Implementation of
Defined in
src/sdk/instruments/FlightTimer.ts:342