/// <summary> /// Gets a route from a waypoint to an airport. /// </summary> public Route FindRoute(int wptIndex, DestInfo destInfo, WaypointListEditor editor) { int endIndex = AddStar(destInfo); var result = GetRoute(wptIndex, endIndex); editor.Undo(); return(result); }
/// <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); }
public TrackHandler( WaypointList wptList, WaypointListEditor editor, AirportManager airportList, TrackInUseCollection tracksInUse) { this.wptList = wptList; this.editor = editor; this.airportList = airportList; this.tracksInUse = tracksInUse; }
public TrackAdder( WaypointList wptList, WaypointListEditor editor, StatusRecorder recorder, TrackType type) { this.wptList = wptList; this.editor = editor; this.recorder = recorder; this.type = type; }
public SidHandler( string icao, SidCollection SidCollection, WaypointList wptList, WaypointListEditor editor, AirportManager airportList) { this.icao = icao; this.wptList = wptList; this.editor = editor; this.airportList = airportList; this.SidCollection = SidCollection; }
public SidHandler( string icao, string allTxt, WaypointList wptList, WaypointListEditor editor, AirportManager airportList) : this(icao, SidReader.Parse(allTxt.Lines()), wptList, editor, airportList) { }
public StarAdder( string icao, StarCollection stars, WaypointList wptList, WaypointListEditor editor, AirportManager airportList, WptSearchOption option) { this.icao = icao; this.stars = stars; this.wptList = wptList; this.editor = editor; this.airportList = airportList; this.option = option; }
public StarAdder( string icao, StarCollection stars, WaypointList wptList, WaypointListEditor editor, AirportManager airportList) : this( icao, stars, wptList, editor, airportList, new WptSearchOption()) { }
/// <exception cref="LoadSidFileException"></exception> public static SidHandler GetHandler( string icao, string navDataLocation, WaypointList wptList, WaypointListEditor editor, AirportManager airportList) { string fileLocation = Path.Combine(navDataLocation, "PROC", icao + ".txt"); try { string allTxt = File.ReadAllText(fileLocation); return(new SidHandler(icao, allTxt, wptList, editor, airportList)); } catch (Exception ex) { throw new LoadSidFileException("Failed to read " + fileLocation + ".", ex); } }
public AnalyzerWithCommands( RouteString route, string origIcao, string origRwy, string destIcao, string destRwy, AirportManager airportList, WaypointList wptList, WaypointListEditor editor, SidCollection sids, StarCollection stars) { this.route = route; this.origIcao = origIcao; this.origRwy = origRwy; this.destIcao = destIcao; this.destRwy = destRwy; this.airportList = airportList; this.wptList = wptList; this.editor = editor; this.sids = sids; this.stars = stars; }