Skip to main content

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​

ParameterTypeDefault valueDescription
lowerBoundnumber190the lower accepted bound, inclusive, default 190.
upperBoundnumber1750the upper accepted bound, inclusive, default 1750.

Returns​

An altitude parser.

(input): null | string | Promise<null | string>

Parameters​
ParameterType
inputstring
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​
ParameterType
inputstring
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​

ParameterTypeDefault valueDescription
lowerBoundnumber0the lower accepted bound, inclusive, default -Infinity
upperBoundnumber550the upper accepted bound, inclusive, default Infinity.

Returns​

A calibrated airspeed parser.

(input): null | number | Promise<null | number>

Parameters​
ParameterType
inputstring
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​

ParameterTypeDefault valueDescription
lowerBoundnumber.100the lower accepted bound, inclusive, default .100.
upperBoundnumber.990the upper accepted bound, inclusive, default .990.

Returns​

A Mach parser.

(input): null | number | Promise<null | number>

Parameters​
ParameterType
inputstring
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​

ParameterTypeDefault valueDescription
lowerBoundnumber | Subscribable<number>-2000the lower accepted bound, inclusive, default -2000.
upperBoundnumber | Subscribable<number>60000the upper accepted bound, inclusive, default 60000.

Returns​

An altitude parser.

(input): null | number | Promise<null | number>

Parameters​
ParameterType
inputstring
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​

ParameterTypeDefault valueDescription
lowerBoundnumber-55the lower accepted bound, inclusive, default -55.
upperBoundnumber50the upper accepted bound, inclusive, default 50.

Returns​

The temperature in Celsius or null.

(input): null | number | Promise<null | number>

Parameters​
ParameterType
inputstring
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​

ParameterTypeDefault valueDescription
lowerBoundnumber-67the lower accepted bound, inclusive, default -67.
upperBoundnumber122the upper accepted bound, inclusive, default 122.

Returns​

The temperature in Faranheit or null.

(input): null | number | Promise<null | number>

Parameters​
ParameterType
inputstring
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​

ParameterTypeDefault valueDescription
lowerBoundnumber0the lower accepted bound, inclusive, default 0.
upperBoundnumber5000the upper accepted bound, inclusive, default 5000.

Returns​

The fuel flow in pounds per hour or null.

(input): null | number | Promise<null | number>

Parameters​
ParameterType
inputstring
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​

ParameterTypeDefault valueDescription
lowerBoundnumber-Infinitythe lower accepted bound, inclusive, default -Infinity.
upperBoundnumberInfinitythe upper accepted bound, inclusive, default Infinity.
decimalsnumber0the number of decimal places.

Returns​

The fuel flow in pounds per hour or null.

(input): null | number | Promise<null | number>

Parameters​
ParameterType
inputstring
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​

ParameterTypeDefault valueDescription
maxLengthnumber10the maximum length accepted, default 10.
minLengthnumber1the minimum length accepted, default 1.

Returns​

The temperature in Faranheit or null.

(input): null | string | Promise<null | string>

Parameters​
ParameterType
inputstring
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​
ParameterType
inputstring
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​

ParameterTypeDefault valueDescription
maxLengthnumber10the maximum length accepted, default 10.
minLengthnumber1the minimum length accepted, default 1.

Returns​

The temperature in Faranheit or null.

(input): null | string | Promise<null | string>

Parameters​
ParameterType
inputstring
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​

ParameterTypeDefault valueDescription
lowerBoundnumber118the lower accepted bound, inclusive, default 118.
upperBoundnumber136.995the upper accepted bound, inclusive, default 136.995.

Returns​

An altitude parser.

(input): null | string | Promise<null | string>

Parameters​
ParameterType
inputstring
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​

ParameterTypeDefault valueDescription
lowerBoundnumber0the lower accepted bound, inclusive, default 0.
upperBoundnumber99000the upper accepted bound, inclusive, default 99000.

Returns​

The temperature in Faranheit or null.

(input): null | number | Promise<null | number>

Parameters​
ParameterType
inputstring
Returns​

null | number | Promise<null | number>