Class: Epic2InputParsers
Defined in: workingtitle-instruments-epic2/shared/Formatters/Epic2InputParsers.ts:7
Contains Boeing FMC parse functions and parse function factories.
Constructors
Constructor
new Epic2InputParsers():
Epic2InputParsers
Returns
Epic2InputParsers
Methods
AdfFrequency()
static
AdfFrequency(lowerBound
,upperBound
): (input
) =>null
|string
|Promise
<null
|string
>
Defined in: workingtitle-instruments-epic2/shared/Formatters/Epic2InputParsers.ts:246
A parser which validates frequencies.
Parameters
Parameter | Type | Default value | Description |
---|---|---|---|
lowerBound | number | 190 | the lower accepted bound, inclusive, default 190. |
upperBound | number | 1750 | the upper accepted bound, inclusive, default 1750. |
Returns
An altitude parser.
(
input
):null
|string
|Promise
<null
|string
>
Parameters
Parameter | Type |
---|---|
input | string |
Returns
null
| string
| Promise
<null
| string
>
AirportIcao()
static
AirportIcao(): (input
) =>null
|string
|Promise
<null
|string
>
Defined in: workingtitle-instruments-epic2/shared/Formatters/Epic2InputParsers.ts:12
A 3-5 character airport ICAO parser.
Returns
A 3-5 character airport ICAO parser.
(
input
):null
|string
|Promise
<null
|string
>
Parameters
Parameter | Type |
---|---|
input | string |
Returns
null
| string
| Promise
<null
| string
>
AirspeedCas()
static
AirspeedCas(lowerBound
,upperBound
): (input
) =>null
|number
|Promise
<null
|number
>
Defined in: workingtitle-instruments-epic2/shared/Formatters/Epic2InputParsers.ts:28
A calibrated airspeed parser.
Parameters
Parameter | Type | Default value | Description |
---|---|---|---|
lowerBound | number | 0 | the lower accepted bound, inclusive, default -Infinity |
upperBound | number | 550 | the upper accepted bound, inclusive, default Infinity. |
Returns
A calibrated airspeed parser.
(
input
):null
|number
|Promise
<null
|number
>
Parameters
Parameter | Type |
---|---|
input | string |
Returns
null
| number
| Promise
<null
| number
>
AirspeedMach()
static
AirspeedMach(lowerBound
,upperBound
): (input
) =>null
|number
|Promise
<null
|number
>
Defined in: workingtitle-instruments-epic2/shared/Formatters/Epic2InputParsers.ts:45
A Mach airspeed parser.
Parameters
Parameter | Type | Default value | Description |
---|---|---|---|
lowerBound | number | .100 | the lower accepted bound, inclusive, default .100. |
upperBound | number | .990 | the upper accepted bound, inclusive, default .990. |
Returns
A Mach parser.
(
input
):null
|number
|Promise
<null
|number
>
Parameters
Parameter | Type |
---|---|
input | string |
Returns
null
| number
| Promise
<null
| number
>
Altitude()
static
Altitude(lowerBound
,upperBound
): (input
) =>null
|number
|Promise
<null
|number
>
Defined in: workingtitle-instruments-epic2/shared/Formatters/Epic2InputParsers.ts:63
A parser which validates altitudes.
Parameters
Parameter | Type | Default value | Description |
---|---|---|---|
lowerBound | number | Subscribable <number > | -2000 | the lower accepted bound, inclusive, default -2000. |
upperBound | number | Subscribable <number > | 60000 | the upper accepted bound, inclusive, default 60000. |
Returns
An altitude parser.
(
input
):null
|number
|Promise
<null
|number
>
Parameters
Parameter | Type |
---|---|
input | string |
Returns
null
| number
| Promise
<null
| number
>
CelsiusTemperature()
static
CelsiusTemperature(lowerBound
,upperBound
): (input
) =>null
|number
|Promise
<null
|number
>
Defined in: workingtitle-instruments-epic2/shared/Formatters/Epic2InputParsers.ts:91
A parser which validates Celsius temperatures.
Parameters
Parameter | Type | Default value | Description |
---|---|---|---|
lowerBound | number | -55 | the lower accepted bound, inclusive, default -55. |
upperBound | number | 50 | the upper accepted bound, inclusive, default 50. |
Returns
The temperature in Celsius or null.
(
input
):null
|number
|Promise
<null
|number
>
Parameters
Parameter | Type |
---|---|
input | string |
Returns
null
| number
| Promise
<null
| number
>
FaranheitTemperature()
static
FaranheitTemperature(lowerBound
,upperBound
): (input
) =>null
|number
|Promise
<null
|number
>
Defined in: workingtitle-instruments-epic2/shared/Formatters/Epic2InputParsers.ts:112
A parser which validates Faranheit temperatures.
Parameters
Parameter | Type | Default value | Description |
---|---|---|---|
lowerBound | number | -67 | the lower accepted bound, inclusive, default -67. |
upperBound | number | 122 | the upper accepted bound, inclusive, default 122. |
Returns
The temperature in Faranheit or null.
(
input
):null
|number
|Promise
<null
|number
>
Parameters
Parameter | Type |
---|---|
input | string |
Returns
null
| number
| Promise
<null
| number
>
FuelFlow()
static
FuelFlow(lowerBound
,upperBound
): (input
) =>null
|number
|Promise
<null
|number
>
Defined in: workingtitle-instruments-epic2/shared/Formatters/Epic2InputParsers.ts:133
A parser which validates fuel flows in pounds per hour.
Parameters
Parameter | Type | Default value | Description |
---|---|---|---|
lowerBound | number | 0 | the lower accepted bound, inclusive, default 0. |
upperBound | number | 5000 | the upper accepted bound, inclusive, default 5000. |
Returns
The fuel flow in pounds per hour or null.
(
input
):null
|number
|Promise
<null
|number
>
Parameters
Parameter | Type |
---|---|
input | string |
Returns
null
| number
| Promise
<null
| number
>
Number()
static
Number(lowerBound
,upperBound
,decimals
): (input
) =>null
|number
|Promise
<null
|number
>
Defined in: workingtitle-instruments-epic2/shared/Formatters/Epic2InputParsers.ts:154
A parser which validates plain unitless numbers.
Parameters
Parameter | Type | Default value | Description |
---|---|---|---|
lowerBound | number | -Infinity | the lower accepted bound, inclusive, default -Infinity. |
upperBound | number | Infinity | the upper accepted bound, inclusive, default Infinity. |
decimals | number | 0 | the number of decimal places. |
Returns
The fuel flow in pounds per hour or null.
(
input
):null
|number
|Promise
<null
|number
>
Parameters
Parameter | Type |
---|---|
input | string |
Returns
null
| number
| Promise
<null
| number
>
PlainText()
static
PlainText(maxLength
,minLength
): (input
) =>null
|string
|Promise
<null
|string
>
Defined in: workingtitle-instruments-epic2/shared/Formatters/Epic2InputParsers.ts:186
A parser which validates Faranheit temperatures.
Parameters
Parameter | Type | Default value | Description |
---|---|---|---|
maxLength | number | 10 | the maximum length accepted, default 10. |
minLength | number | 1 | the minimum length accepted, default 1. |
Returns
The temperature in Faranheit or null.
(
input
):null
|string
|Promise
<null
|string
>
Parameters
Parameter | Type |
---|---|
input | string |
Returns
null
| string
| Promise
<null
| string
>
TransponderCode()
static
TransponderCode(): (input
) =>null
|string
|Promise
<null
|string
>
Defined in: workingtitle-instruments-epic2/shared/Formatters/Epic2InputParsers.ts:268
A parser which validates transponder codes.
Returns
A squawk parser.
(
input
):null
|string
|Promise
<null
|string
>
Parameters
Parameter | Type |
---|---|
input | string |
Returns
null
| string
| Promise
<null
| string
>
UppercasePlainText()
static
UppercasePlainText(maxLength
,minLength
): (input
) =>null
|string
|Promise
<null
|string
>
Defined in: workingtitle-instruments-epic2/shared/Formatters/Epic2InputParsers.ts:174
A parser which validates plain text and transforms it to be upper case
Parameters
Parameter | Type | Default value | Description |
---|---|---|---|
maxLength | number | 10 | the maximum length accepted, default 10. |
minLength | number | 1 | the minimum length accepted, default 1. |
Returns
The temperature in Faranheit or null.
(
input
):null
|string
|Promise
<null
|string
>
Parameters
Parameter | Type |
---|---|
input | string |
Returns
null
| string
| Promise
<null
| string
>
VhfFrequency()
static
VhfFrequency(lowerBound
,upperBound
): (input
) =>null
|string
|Promise
<null
|string
>
Defined in: workingtitle-instruments-epic2/shared/Formatters/Epic2InputParsers.ts:218
A parser which validates frequencies.
Parameters
Parameter | Type | Default value | Description |
---|---|---|---|
lowerBound | number | 118 | the lower accepted bound, inclusive, default 118. |
upperBound | number | 136.995 | the upper accepted bound, inclusive, default 136.995. |
Returns
An altitude parser.
(
input
):null
|string
|Promise
<null
|string
>
Parameters
Parameter | Type |
---|---|
input | string |
Returns
null
| string
| Promise
<null
| string
>
Weight()
static
Weight(lowerBound
,upperBound
): (input
) =>null
|number
|Promise
<null
|number
>
Defined in: workingtitle-instruments-epic2/shared/Formatters/Epic2InputParsers.ts:198
A parser which validates weights in pounds.
Parameters
Parameter | Type | Default value | Description |
---|---|---|---|
lowerBound | number | 0 | the lower accepted bound, inclusive, default 0. |
upperBound | number | 99000 | the upper accepted bound, inclusive, default 99000. |
Returns
The temperature in Faranheit or null.
(
input
):null
|number
|Promise
<null
|number
>
Parameters
Parameter | Type |
---|---|
input | string |
Returns
null
| number
| Promise
<null
| number
>