Skip to main content

Class: DefaultTimeInfoDataProvider

A default implementation of TimeInfoDataProvider.

Implements

Constructors

constructor

new DefaultTimeInfoDataProvider(bus, genericTimerIndex): DefaultTimeInfoDataProvider

Constructor.

Parameters

NameTypeDescription
busEventBusThe event bus.
genericTimerIndexnumberThe index of the generic timer used by this data provider.

Returns

DefaultTimeInfoDataProvider

Defined in

src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/PFD/Components/BottomInfoPanel/TimeInfo/TimeInfoDataProvider.ts:36

Properties

time

Readonly time: Subscribable<number>

The current sim time, as a UNIX timestamp in milliseconds.

Implementation of

TimeInfoDataProvider.time

Defined in

src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/PFD/Components/BottomInfoPanel/TimeInfo/TimeInfoDataProvider.ts:21


timerValue

Readonly timerValue: Subscribable<number>

The current timer value, in milliseconds.

Implementation of

TimeInfoDataProvider.timerValue

Defined in

src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/PFD/Components/BottomInfoPanel/TimeInfo/TimeInfoDataProvider.ts:25

Methods

destroy

destroy(): void

Destroys this data provider. Once destroyed, this data provider will no longer update its provided data, and can no longer be paused or resumed.

Returns

void

Defined in

src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/PFD/Components/BottomInfoPanel/TimeInfo/TimeInfoDataProvider.ts:109


init

init(paused?): void

Initializes this data provider. Once initialized, this data provider will continuously update its data until paused or destroyed.

Parameters

NameTypeDefault valueDescription
pausedbooleanfalseWhether to initialize this data provider as paused. If true, this data provider will provide an initial set of data but will not update the provided data until it is resumed. Defaults to false.

Returns

void

Throws

Error if this data provider is dead.

Defined in

src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/PFD/Components/BottomInfoPanel/TimeInfo/TimeInfoDataProvider.ts:46


pause

pause(): void

Pauses this data provider. Once paused, this data provider will not update its data until it is resumed.

Returns

void

Throws

Error if this data provider is dead.

Defined in

src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/PFD/Components/BottomInfoPanel/TimeInfo/TimeInfoDataProvider.ts:92


resume

resume(): void

Resumes this data provider. Once resumed, this data provider will continuously update its data until paused or destroyed.

Returns

void

Throws

Error if this data provider is dead.

Defined in

src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/PFD/Components/BottomInfoPanel/TimeInfo/TimeInfoDataProvider.ts:73