Skip to main content

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

NameTypeDescription
busEventBusThe event bus.
optionsReadonly<FlightTimerInstrumentOptions>Options with which to configure the instrument.

Returns

FlightTimerInstrument

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

NameTypeDescription
busEventBusThe event bus.
timerCountnumberThe number of supported timers.

Returns

FlightTimerInstrument

Defined in

src/sdk/instruments/FlightTimer.ts:315

Methods

init

init(): void

Initializes this instrument.

Returns

void

Implementation of

Instrument.init

Defined in

src/sdk/instruments/FlightTimer.ts:332


onUpdate

onUpdate(): void

Updates this instrument.

Returns

void

Implementation of

Instrument.onUpdate

Defined in

src/sdk/instruments/FlightTimer.ts:342