Skip to main content

Class: FlightTimerController<ID>

A controller for a set of flight timers.

Type parameters

NameType
IDextends string

Constructors

constructor

new FlightTimerController<ID>(bus, id): FlightTimerController<ID>

Creates a new instance of FlightTimerController.

Type parameters

NameType
IDextends string

Parameters

NameTypeDescription
busEventBusThe event bus.
idIDThe ID of the timers controlled by this controller.

Returns

FlightTimerController<ID>

Defined in

src/sdk/instruments/FlightTimer.ts:171

Properties

id

Readonly id: ID

The ID of the timers controlled by this controller.

Defined in

src/sdk/instruments/FlightTimer.ts:171

Methods

reset

reset(index): void

Resets a timer to its initial value.

Parameters

NameTypeDescription
indexnumberThe index of the timer.

Returns

void

Defined in

src/sdk/instruments/FlightTimer.ts:230


setInitialValue

setInitialValue(index, initialValue): void

Sets the initial value for a timer.

Parameters

NameTypeDescription
indexnumberThe index of the timer.
initialValuenumberThe initial value to set, in milliseconds.

Returns

void

Defined in

src/sdk/instruments/FlightTimer.ts:197


setMode

setMode(index, mode): void

Sets the active counting mode for a timer.

Parameters

NameTypeDescription
indexnumberThe index of the timer.
modeFlightTimerModeThe mode to set.

Returns

void

Defined in

src/sdk/instruments/FlightTimer.ts:188


setValue

setValue(index, value): void

Sets the current value for a timer.

Parameters

NameTypeDescription
indexnumberThe index of the timer.
valuenumberThe value to set, in milliseconds.

Returns

void

Defined in

src/sdk/instruments/FlightTimer.ts:206


start

start(index): void

Starts a timer.

Parameters

NameTypeDescription
indexnumberThe index of the timer.

Returns

void

Defined in

src/sdk/instruments/FlightTimer.ts:214


stop

stop(index): void

Stops a timer.

Parameters

NameTypeDescription
indexnumberThe index of the timer.

Returns

void

Defined in

src/sdk/instruments/FlightTimer.ts:222