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