Class: DefaultTimeInfoDataProvider
Defined in: workingtitle-instruments-g3000/html_ui/PFD/Components/BottomInfoPanel/TimeInfo/TimeInfoDataProvider.ts:18
A default implementation of TimeInfoDataProvider.
Implements
Constructors
Constructor
new DefaultTimeInfoDataProvider(
bus,genericTimerIndex):DefaultTimeInfoDataProvider
Defined in: workingtitle-instruments-g3000/html_ui/PFD/Components/BottomInfoPanel/TimeInfo/TimeInfoDataProvider.ts:36
Constructor.
Parameters
| Parameter | Type | Description |
|---|---|---|
bus | EventBus | The event bus. |
genericTimerIndex | number | The index of the generic timer used by this data provider. |
Returns
DefaultTimeInfoDataProvider
Properties
time
readonlytime:Subscribable<number>
Defined in: workingtitle-instruments-g3000/html_ui/PFD/Components/BottomInfoPanel/TimeInfo/TimeInfoDataProvider.ts:21
The current sim time, as a UNIX timestamp in milliseconds.
Implementation of
timerValue
readonlytimerValue:Subscribable<number>
Defined in: workingtitle-instruments-g3000/html_ui/PFD/Components/BottomInfoPanel/TimeInfo/TimeInfoDataProvider.ts:25
The current timer value, in milliseconds.
Implementation of
TimeInfoDataProvider.timerValue
Methods
destroy()
destroy():
void
Defined in: workingtitle-instruments-g3000/html_ui/PFD/Components/BottomInfoPanel/TimeInfo/TimeInfoDataProvider.ts:109
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
init()
init(
paused):void
Defined in: workingtitle-instruments-g3000/html_ui/PFD/Components/BottomInfoPanel/TimeInfo/TimeInfoDataProvider.ts:46
Initializes this data provider. Once initialized, this data provider will continuously update its data until paused or destroyed.
Parameters
| Parameter | Type | Default value | Description |
|---|---|---|---|
paused | boolean | false | Whether 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.
pause()
pause():
void
Defined in: workingtitle-instruments-g3000/html_ui/PFD/Components/BottomInfoPanel/TimeInfo/TimeInfoDataProvider.ts:92
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.
resume()
resume():
void
Defined in: workingtitle-instruments-g3000/html_ui/PFD/Components/BottomInfoPanel/TimeInfo/TimeInfoDataProvider.ts:73
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.