Class: WaypointInfoAirportWeatherProvider
Defined in: src/workingtitle-instruments-g3x-touch/html_ui/MFD/Components/WaypointInfo/WaypointInfoAirportWeatherProvider.ts:26
A provider of airport weather data for a waypoint information component.
Constructors
Constructor
new WaypointInfoAirportWeatherProvider(
facLoader,facility):WaypointInfoAirportWeatherProvider
Defined in: src/workingtitle-instruments-g3x-touch/html_ui/MFD/Components/WaypointInfo/WaypointInfoAirportWeatherProvider.ts:46
Creates a new instance of AirportInfoWeatherProvider. The provider is created in a paused state.
Parameters
| Parameter | Type | Description |
|---|---|---|
facLoader | FacilityLoader | The facility loader this provider uses to retrieve facility data. |
facility | Subscribable<Facility | null> | The facility for which to search airport weather data. |
Returns
WaypointInfoAirportWeatherProvider
Properties
weatherData
readonlyweatherData:Subscribable<Readonly<WaypointInfoAirportWeatherData> |null>
Defined in: src/workingtitle-instruments-g3x-touch/html_ui/MFD/Components/WaypointInfo/WaypointInfoAirportWeatherProvider.ts:34
The most recently fetched airport weather data.
Methods
destroy()
destroy():
void
Defined in: src/workingtitle-instruments-g3x-touch/html_ui/MFD/Components/WaypointInfo/WaypointInfoAirportWeatherProvider.ts:245
Destroys this provider.
Returns
void
pause()
pause():
void
Defined in: src/workingtitle-instruments-g3x-touch/html_ui/MFD/Components/WaypointInfo/WaypointInfoAirportWeatherProvider.ts:76
Pauses this provider. When this provider is paused, it will not update its provided airport weather data.
Returns
void
Throws
Error if this provider has been destroyed.
refresh()
refresh():
void
Defined in: src/workingtitle-instruments-g3x-touch/html_ui/MFD/Components/WaypointInfo/WaypointInfoAirportWeatherProvider.ts:97
Refreshes this provider's airport weather data. This has no effect if this provider is paused.
Returns
void
Throws
Error if this provider has been destroyed.
resume()
resume():
void
Defined in: src/workingtitle-instruments-g3x-touch/html_ui/MFD/Components/WaypointInfo/WaypointInfoAirportWeatherProvider.ts:58
Resumes this provider. When this provider is resumed, it will update its provided airport weather data whenever the facility for which to search weather data changes.
Returns
void
Throws
Error if this provider has been destroyed.