Skip to main content

Class: FlightTimerInstrument

Defined in: src/sdk/instruments/FlightTimer.ts:295

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

Defined in: src/sdk/instruments/FlightTimer.ts:309

Creates a new instance of FlightTimerInstrument.

Parameters

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

Returns

FlightTimerInstrument

Constructor

new FlightTimerInstrument(bus, timerCount): FlightTimerInstrument

Defined in: src/sdk/instruments/FlightTimer.ts:315

Creates a new instance of FlightTimerInstrument that manages timers with the empty ID ('').

Parameters

ParameterTypeDescription
busEventBusThe event bus.
timerCountnumberThe number of supported timers.

Returns

FlightTimerInstrument

Methods

init()

init(): void

Defined in: src/sdk/instruments/FlightTimer.ts:332

Initializes this instrument.

Returns

void

Implementation of

Instrument.init


onUpdate()

onUpdate(): void

Defined in: src/sdk/instruments/FlightTimer.ts:342

Updates this instrument.

Returns

void

Implementation of

Instrument.onUpdate