Class: AirportFilter
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
Construct an airport filter.
Parameters
Name | Type | Description |
---|---|---|
minLength? | number | The minimum length in feet. |
surfaceType? | number | The type of surfaces to look for. |
Returns
Defined in
workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/Controllers/NearestStore.ts:55
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
minLength(): number
Get the current minimum length.
Returns
number
The minimum length in feet.
Defined in
workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/Controllers/NearestStore.ts:96
• set
minLength(minLength
): void
Set a new minimum length and clear the cache.
Parameters
Name | Type | Description |
---|---|---|
minLength | number | The new minimum length in feet. |
Returns
void
Defined in
workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/Controllers/NearestStore.ts:87
surfaceType
• get
surfaceType(): number
Get the current surface type filter.
Returns
number
A bitfield of the surface types to allow.
Defined in
workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/Controllers/NearestStore.ts:113
• set
surfaceType(surfaceType
): void
Set a new surface type filter and clear the cache.
Parameters
Name | Type | Description |
---|---|---|
surfaceType | number | The new surface type options. |
Returns
void
Defined in
workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/Controllers/NearestStore.ts:104
Methods
filter
▸ filter(airports
): AirportFacility
[]
Perform the filter on a given list of airports.
Parameters
Name | Type | Description |
---|---|---|
airports | IterableIterator <AirportFacility > | An array of AirportFacilities. |
Returns
AirportFacility
[]
A list of airports meeting the filter criteria.
Defined in
workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/Controllers/NearestStore.ts:65