Class: GtcUserWaypointEditController
A controller for editing user waypoints.
Constructors
constructor
• new GtcUserWaypointEditController(facRepo
, fms
): GtcUserWaypointEditController
Constructor.
Parameters
Name | Type | Description |
---|---|---|
facRepo | FacilityRepository | The facility repository. |
fms | Fms <any > | The FMS. |
Returns
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
Name | Type | Description |
---|---|---|
facility | UserFacility | The 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
Name | Type | Description |
---|---|---|
icao | string | The 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
Name | Type | Description |
---|---|---|
icao | string | The ICAO of the existing facility to edit. |
facility | UserFacility | A 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
Name | Type | Description |
---|---|---|
icao | string | The ICAO to check. |
Returns
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
Name | Type | Default value | Description |
---|---|---|---|
includeInFlightPlan | boolean | false | Whether 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
Name | Type | Description |
---|---|---|
icao | string | The 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