Skip to main content

Class: GtcUserWaypointEditController

A controller for editing user waypoints.

Constructors

constructor

new GtcUserWaypointEditController(facRepo, fms): GtcUserWaypointEditController

Constructor.

Parameters

NameTypeDescription
facRepoFacilityRepositoryThe facility repository.
fmsFms<any>The FMS.

Returns

GtcUserWaypointEditController

Defined in

workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/GTC/Navigation/GtcUserWaypointEditController.ts:32

Properties

MAX_WAYPOINT_COUNT

Static Readonly MAX_WAYPOINT_COUNT: 1000

The maximum number of user waypoints allowed to exist at once.

Defined in

workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/GTC/Navigation/GtcUserWaypointEditController.ts:25

Methods

addUserFacility

addUserFacility(facility): void

Adds a new user waypoint facility. If a facility with the same ICAO as the new one already exists, it will be replaced by the new facility.

Parameters

NameTypeDescription
facilityUserFacilityThe facility to add.

Returns

void

Defined in

workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/GTC/Navigation/GtcUserWaypointEditController.ts:112


doesUserWaypointExist

doesUserWaypointExist(icao): boolean

Checks whether a user waypoint with a given ICAO exists.

Parameters

NameTypeDescription
icaostringThe ICAO to check.

Returns

boolean

Whether a user waypoint with the specified ICAO exists.

Defined in

workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/GTC/Navigation/GtcUserWaypointEditController.ts:56


editUserFacility

editUserFacility(icao, facility): boolean

Edits an existing user waypoint facility. If facility to edit does not exist, then this method does nothing. If the edit involves changing the ICAO of the facility, the old facility will be removed and a new facility will be added with the new ICAO. Otherwise, the new facility will replace the old facility.

Parameters

NameTypeDescription
icaostringThe ICAO of the existing facility to edit.
facilityUserFacilityA facility to edit the existing one to.

Returns

boolean

Whether the existing facility was successfully edited.

Defined in

workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/GTC/Navigation/GtcUserWaypointEditController.ts:124


getUserWaypointCount

getUserWaypointCount(): number

Gets the number of existing user waypoints.

Returns

number

The number of existing user waypoints.

Defined in

workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/GTC/Navigation/GtcUserWaypointEditController.ts:39


getWaypointFlightPlanStatus

getWaypointFlightPlanStatus(icao): UserWaypointFlightPlanStatus

Gets the flight plan inclusion status of a waypoint: whether it is not in any flight plan, in at least one flight plan, or is part of the active leg.

Parameters

NameTypeDescription
icaostringThe ICAO to check.

Returns

UserWaypointFlightPlanStatus

The flight plan inclusion status of the waypoint with the specified ICAO.

Defined in

workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/GTC/Navigation/GtcUserWaypointEditController.ts:70


isUserWaypointCountAtLimit

isUserWaypointCountAtLimit(): boolean

Checks whether the number of existing user waypoints is at or above the allowed limit.

Returns

boolean

Whether the number of existing user waypoints is at or above the allowed limit.

Defined in

workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/GTC/Navigation/GtcUserWaypointEditController.ts:47


removeAllUserFacilities

removeAllUserFacilities(includeInFlightPlan?): boolean

Removes all existing user waypoint facilities.

Parameters

NameTypeDefault valueDescription
includeInFlightPlanbooleanfalseWhether to remove user waypoint facilities that are in flight plans. Defaults to false.

Returns

boolean

Whether at least one user waypoint facility was not removed because it was in a flight plan.

Defined in

workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/GTC/Navigation/GtcUserWaypointEditController.ts:154


removeUserFacility

removeUserFacility(icao): void

Removes an existing user waypoint facility.

Parameters

NameTypeDescription
icaostringThe ICAO of the facility to remove.

Returns

void

Defined in

workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/GTC/Navigation/GtcUserWaypointEditController.ts:144