Beispiel #1
0
 public IEnumerable <string> GetSelectedProcedures()
 {
     return(SidHandlerFactory.GetHandler(
                Icao,
                appOptions.Instance.NavDataLocation,
                airwayNetwork.WptList,
                airwayNetwork.WptList.GetEditor(),
                airwayNetwork.AirportList)
            .GetSidList(Rwy));
 }
 public List <string> GetSelectedProcedures()
 {
     return(SidHandlerFactory.GetHandler(
                Icao,
                destination.NavDataLocation,
                destination.WptList,
                destination.WptList.GetEditor(),
                destination.AirportList)
            .GetSidList(Rwy));
 }
        public Route FindRoute(string icao, string rwy, IReadOnlyList <string> sids, int wptIndex)
        {
            var editor     = wptList.GetEditor();
            var sidHandler = SidHandlerFactory.GetHandler(
                icao,
                navDataLocation,
                wptList,
                editor,
                airportList);

            return(finder.FindRoute(new OrigInfo(rwy, sids, sidHandler), wptIndex, editor));
        }
        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());
        }