Skip to main content

Class: G3000NearestContext

A G3000 nearest facilities context. Maintains search subscriptions for the nearest airports, VORs, NDBs, intersections, and user waypoints to the airplane's position.

Properties

_updateEvent

Readonly _updateEvent: SubEvent<G3000NearestContext, void>

Defined in

src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/Shared/Nearest/G3000NearestContext.ts:38


airports

Readonly airports: NearestSubscription<AirportFacility>

The nearest airports.

Defined in

src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/Shared/Nearest/G3000NearestContext.ts:21


intersections

Readonly intersections: NearestSubscription<IntersectionFacility>

The nearest intersections.

Defined in

src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/Shared/Nearest/G3000NearestContext.ts:27


ndbs

Readonly ndbs: NearestSubscription<NdbFacility>

The nearest NDB stations.

Defined in

src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/Shared/Nearest/G3000NearestContext.ts:30


updateEvent

Readonly updateEvent: ReadonlySubEvent<G3000NearestContext, void>

A subscribable event which fires when this context is updated.

Defined in

src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/Shared/Nearest/G3000NearestContext.ts:40


usrs

Readonly usrs: NearestSubscription<UserFacility>

The nearest USR facilities.

Defined in

src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/Shared/Nearest/G3000NearestContext.ts:33


vors

Readonly vors: NearestSubscription<VorFacility>

The nearest VOR stations.

Defined in

src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/Shared/Nearest/G3000NearestContext.ts:24


weather

Readonly weather: NearestSubscription<AirportFacility>

The nearest airports with weather information.

Defined in

src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/Shared/Nearest/G3000NearestContext.ts:36

Methods

getNearest

getNearest<T>(facilityType): undefined | FacilityTypeMap[T]

Gets the nearest facility for a given type.

Type parameters

NameType
Textends FacilityType

Parameters

NameTypeDescription
facilityTypeTThe type of facility.

Returns

undefined | FacilityTypeMap[T]

The nearest facility for a given type.

Defined in

src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/Shared/Nearest/G3000NearestContext.ts:191


getRegionLetter

getRegionLetter(): undefined | string

Gets the airport region letter to use for the first character in waypoint inputs.

Returns

undefined | string

The airport region letter.

Defined in

src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/Shared/Nearest/G3000NearestContext.ts:182


update

update(): Promise<void>

Updates this context.

Returns

Promise<void>

Defined in

src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/Shared/Nearest/G3000NearestContext.ts:198


getInstance

getInstance(): Promise<G3000NearestContext>

Gets the G3000NearestContext instance on the local instrument.

Returns

Promise<G3000NearestContext>

A Promise which will be fulfilled with the G3000NearestContext instance on the local instrument once it is initialized.

Defined in

src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/Shared/Nearest/G3000NearestContext.ts:217


initializeInstance

initializeInstance(facilityLoader, bus, fmsPosIndex): G3000NearestContext

Initializes and returns the G3000NearestContext instance on the local instrument. If the instance is already initialized, this method returns the instance without performing any other actions.

Parameters

NameTypeDescription
facilityLoaderFacilityLoaderA facility loader.
busEventBusThe event bus.
fmsPosIndexnumber | Subscribable<number>The index of the FMS geo-positioning system used by the context to get the airplane's position.

Returns

G3000NearestContext

The initialized G3000NearestContext instance on the local instrument.

Defined in

src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/Shared/Nearest/G3000NearestContext.ts:233