Class AlternateAirportHelper

java.lang.Object
org.deltava.beans.schedule.AlternateAirportHelper

public class AlternateAirportHelper extends Object
A helper class to calculate diversion airports. Airports are given a score based on maximum runway length in excess of minimums and distance from the destination.
Since:
4.2
Version:
11.0
Author:
Luke
  • Constructor Details

    • AlternateAirportHelper

      public AlternateAirportHelper(String appCode)
      Creates the helper
      Parameters:
      appCode - the virtual airline code
  • Method Details

    • calculateAlternates

      public List<Airport> calculateAlternates(Aircraft ac, GeoLocation dst)
      Calculates alternate airports matching distance and runway length criteria.
      Parameters:
      ac - the Aircraft used
      dst - the destination Airport (or current position)
      Returns:
      a List of Airports, sorted by distance from the destination