Skip to main content

Class: AirportFilter

Defined in: workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/Controllers/NearestStore.ts:39

A filter to be injected into a NearestStore. This will allow the filtering of a list of airports based upon their longest runway and its surface type. This includes result cacheing to optimize performance of repeated filters. Search parameters may be tweaked, and doing so will automatically invalidate the cache.

Constructors

Constructor

new AirportFilter(minLength?, surfaceType?): AirportFilter

Defined in: workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/Controllers/NearestStore.ts:55

Construct an airport filter.

Parameters

ParameterTypeDescription
minLength?numberThe minimum length in feet.
surfaceType?numberThe type of surfaces to look for.

Returns

AirportFilter

Properties

_minLength

_minLength: number

Defined in: workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/Controllers/NearestStore.ts:46


_surfaceType

_surfaceType: number

Defined in: workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/Controllers/NearestStore.ts:47


surfacesHard

static surfacesHard: never[] = []

Defined in: workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/Controllers/NearestStore.ts:42

Accessors

minLength

Get Signature

get minLength(): number

Defined in: workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/Controllers/NearestStore.ts:96

Get the current minimum length.

Returns

number

The minimum length in feet.

Set Signature

set minLength(minLength): void

Defined in: workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/Controllers/NearestStore.ts:87

Set a new minimum length and clear the cache.

Parameters
ParameterTypeDescription
minLengthnumberThe new minimum length in feet.
Returns

void


surfaceType

Get Signature

get surfaceType(): number

Defined in: workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/Controllers/NearestStore.ts:113

Get the current surface type filter.

Returns

number

A bitfield of the surface types to allow.

Set Signature

set surfaceType(surfaceType): void

Defined in: workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/Controllers/NearestStore.ts:104

Set a new surface type filter and clear the cache.

Parameters
ParameterTypeDescription
surfaceTypenumberThe new surface type options.
Returns

void

Methods

filter()

filter(airports): AirportFacility[]

Defined in: workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/Controllers/NearestStore.ts:65

Perform the filter on a given list of airports.

Parameters

ParameterTypeDescription
airportsIterableIterator<AirportFacility>An array of AirportFacilities.

Returns

AirportFacility[]

A list of airports meeting the filter criteria.