Esempio n. 1
0
        public Route FindRoute(int wptIndex, string icao, string rwy, IReadOnlyList <string> stars)
        {
            var editor      = wptList.GetEditor();
            var starHandler = StarHandlerFactory.GetHandler(
                icao,
                navDataLocation,
                wptList,
                editor,
                airportList);

            return(finder.FindRoute(wptIndex, new DestInfo(rwy, stars, starHandler), editor));
        }
Esempio n. 2
0
        /// <exception cref="Exception"></exception>
        public List <string> GetAllProcedures()
        {
            var wptList = airwayNetwork.WptList;
            var handler = StarHandlerFactory.GetHandler(
                View.Icao,
                appOptions.Instance.NavDataLocation,
                wptList,
                new WaypointListEditor(wptList),
                airwayNetwork.AirportList);

            return(handler.StarCollection.GetStarList(View.Rwy));
        }
Esempio n. 3
0
        public Route FindRoute(
            string origIcao, string origRwy, IReadOnlyList <string> sids,
            string destIcao, string destRwy, IReadOnlyList <string> stars)
        {
            var editor     = wptList.GetEditor();
            var sidHandler = SidHandlerFactory.GetHandler(
                origIcao,
                navDataLocation,
                wptList,
                editor,
                airportList);

            var starHandler = StarHandlerFactory.GetHandler(
                destIcao,
                navDataLocation,
                wptList,
                editor,
                airportList);

            return(finder.FindRoute(
                       new OrigInfo(origRwy, sids, sidHandler),
                       new DestInfo(destRwy, stars, starHandler),
                       editor));
        }
        // @Throws
        public static Route AnalyzeWithCommands(
            string route,
            string origIcao,
            string origRwy,
            string destIcao,
            string destRwy,
            string navDataLocation,
            AirportManager airportList,
            WaypointList wptList)
        {
            var sidHandler = SidHandlerFactory.GetHandler(
                origIcao,
                navDataLocation,
                wptList,
                wptList.GetEditor(),
                airportList);

            var starHandler = StarHandlerFactory.GetHandler(
                destIcao,
                navDataLocation,
                wptList,
                wptList.GetEditor(),
                airportList);

            return(new AnalyzerWithCommands(
                       CoordinateFormatter.Split(route),
                       origIcao,
                       origRwy,
                       destIcao,
                       destRwy,
                       airportList,
                       wptList,
                       wptList.GetEditor(),
                       sidHandler.SidCollection,
                       starHandler.StarCollection).Analyze());
        }