/// <summary> /// Gets a route from an airport to a waypoint. /// </summary> public Route FindRoute(OrigInfo origInfo, int wptIndex, WaypointListEditor editor) { int origIndex = AddSid(origInfo); var result = GetRoute(origIndex, wptIndex); editor.Undo(); return(result); }
/// <summary> /// Gets a route between two aiports, from ORIG to DEST. /// </summary> /// <exception cref="RouteNotFoundException"></exception> public Route FindRoute(OrigInfo origInfo, DestInfo destInfo, WaypointListEditor editor) { int origIndex = AddSid(origInfo); int destIndex = AddStar(destInfo); var result = GetRoute(origIndex, destIndex); editor.Undo(); return(result); }
/// <summary> /// Add SID to wptList and returns the index of origin rwy. /// </summary> private int AddSid(OrigInfo info) { return(info.Handler.AddSidsToWptList(info.Rwy, info.Sids)); }