Skip to main content

Class: ComFrequencyFormat

FmcFormat for parsing and displaying a com frequency Also accepts various shorthand formats. ex. 'xxx', 'xxxx', 'xxxxx', 'xxxxxx,'xxx.xxx', 'xxx.xx', 'xxx.x'

Implements

  • Validator<number>
  • Formatter<number>

Constructors

constructor

new ComFrequencyFormat(): ComFrequencyFormat

Returns

ComFrequencyFormat

Properties

nullValueString

nullValueString: string = '---.---'

Implementation of

Formatter.nullValueString

Defined in

workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/Framework/FmcFormats.ts:113

Methods

format

format(freq): string

Parameters

NameType
freqnumber

Returns

string

Inherit Doc

Implementation of

Formatter.format

Defined in

workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/Framework/FmcFormats.ts:116


parse

parse(input): Promise<null | number>

Parameters

NameType
inputstring

Returns

Promise<null | number>

Inherit Doc

Implementation of

Validator.parse

Defined in

workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/Framework/FmcFormats.ts:121