Class: G3000EspDataProvider
Defined in: workingtitle-instruments-g3000/html_ui/MFD/ESP/G3000EspDataProvider.ts:24
A G3000 provider of ESP data.
Implements
EspDataProvider
Constructors
Constructor
new G3000EspDataProvider(
bus
,options
):G3000EspDataProvider
Defined in: workingtitle-instruments-g3000/html_ui/MFD/ESP/G3000EspDataProvider.ts:112
Creates a new instance of G3000EspDataProvider. The data provider is created in a paused state. Initializing the
data provider and calling update()
will resume it.
Parameters
Parameter | Type | Description |
---|---|---|
bus | EventBus | The event bus. |
options | Readonly <G3000EspDataProviderOptions > | Options with which to configure the data provider. |
Returns
G3000EspDataProvider
Properties
data
readonly
data:Readonly
<EspData
>
Defined in: workingtitle-instruments-g3000/html_ui/MFD/ESP/G3000EspDataProvider.ts:81
Inherit Doc
Implementation of
EspDataProvider.data
Methods
destroy()
destroy():
void
Defined in: workingtitle-instruments-g3000/html_ui/MFD/ESP/G3000EspDataProvider.ts:334
Destroys this data provider.
Returns
void
init()
init():
void
Defined in: workingtitle-instruments-g3000/html_ui/MFD/ESP/G3000EspDataProvider.ts:124
Initializes this data provider, allowing it to be updated.
Returns
void
Throws
Error if this data provider has been destroyed.
pause()
pause():
void
Defined in: workingtitle-instruments-g3000/html_ui/MFD/ESP/G3000EspDataProvider.ts:319
Pauses this data provider. The provider will be resumed the next time update()
is called.
Returns
void
Throws
Error if this data provider has been destroyed.
update()
update(
realTime
):void
Defined in: workingtitle-instruments-g3000/html_ui/MFD/ESP/G3000EspDataProvider.ts:196
Updates this data provider. Has no effect if this data provider is not initialized.
Parameters
Parameter | Type | Description |
---|---|---|
realTime | number | The current real (operating system) time, as a Javascript timestamp. |
Returns
void
Throws
Error if this data provider has been destroyed.