예제 #1
0
        /// <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);
        }
예제 #2
0
        /// <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);
        }
예제 #3
0
 /// <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));
 }