Class AlternateAirportHelper
java.lang.Object
org.deltava.beans.schedule.AlternateAirportHelper
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncalculateAlternates
(Aircraft ac, GeoLocation dst) Calculates alternate airports matching distance and runway length criteria.
-
Constructor Details
-
AlternateAirportHelper
Creates the helper- Parameters:
appCode
- the virtual airline code
-
-
Method Details
-
calculateAlternates
Calculates alternate airports matching distance and runway length criteria.- Parameters:
ac
- the Aircraft useddst
- the destination Airport (or current position)- Returns:
- a List of Airports, sorted by distance from the destination
-