Class: FmcWeatherRequestSystem
A system managing the datalink weather requests in the WT21
Constructors
constructor
• new FmcWeatherRequestSystem(facLoader
): FmcWeatherRequestSystem
Ctor
Parameters
Name | Type | Description |
---|---|---|
facLoader | FacilityLoader | The facility loader. |
Returns
Defined in
workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/Datalink/FmcWeatherRequestSystem.ts:37
Properties
hasUnread
▪ Static
hasUnread: Subject
<boolean
>
Defined in
workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/Datalink/FmcWeatherRequestSystem.ts:30
isRequestActive
▪ Static
isRequestActive: Subject
<boolean
>
Defined in
workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/Datalink/FmcWeatherRequestSystem.ts:29
vhfIsSending
▪ Static
vhfIsSending: Subject
<boolean
>
Defined in
workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/Datalink/FmcWeatherRequestSystem.ts:31
Methods
addRequest
▸ addRequest(airport
, index
): void
Adds an airport to wx requests
Parameters
Name | Type | Description |
---|---|---|
airport | AirportFacility | The airport. |
index | number | The index of where the request should be in the requests array. |
Returns
void
Defined in
workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/Datalink/FmcWeatherRequestSystem.ts:71
getIsRequestActive
▸ getIsRequestActive(): Subject
<boolean
>
Get a boolean indicating if there is currently an active wx request.
Returns
Subject
<boolean
>
True if there is an active request, false otherwise.
Defined in
workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/Datalink/FmcWeatherRequestSystem.ts:62
getRequests
▸ getRequests(): WeatherRequest
[]
Get the array of weather requests.
Returns
WeatherRequest
[]
An array of weather requests.
Defined in
workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/Datalink/FmcWeatherRequestSystem.ts:54
requestMetar
▸ requestMetar(): void
Request METAR for an airport.
Returns
void
Defined in
workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/Datalink/FmcWeatherRequestSystem.ts:81
cancelRequest
▸ cancelRequest(): void
Cancels all pending metar requests.
Returns
void
Defined in
workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/Datalink/FmcWeatherRequestSystem.ts:134
setViewed
▸ setViewed(index
): void
Sets the request state to none, indicating that received data has been viewed.
Parameters
Name | Type | Description |
---|---|---|
index | number | The index of the wx request. |
Returns
void
Defined in
workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/Datalink/FmcWeatherRequestSystem.ts:151