Class ETOPSHelper
java.lang.Object
org.deltava.beans.flight.ETOPSHelper
A utility class to do ETOPS validation.
- Since:
- 4.1
- Version:
- 12.3
- Author:
- Luke
-
Method Summary
Modifier and TypeMethodDescriptionstatic ETOPSResultclassify(Collection<? extends GeoLocation> entries) ETOPS-classifies a set of positions.static ETOPSResultETOPS-classifies an ACARS route.static AirportLocationCreates an ETOPS altenrate Airport marker.static NavigationDataBeangenerateMidpointMarker(GeoLocation loc, Collection<Airport> airports) Generates the mid-point ETOPS marker.static voidinit(Collection<Airport> airports) Initializes the set of diversion airports.static booleanValidates whether an ETOPS classification should trigger an ETOPS warning.
-
Method Details
-
init
Initializes the set of diversion airports.- Parameters:
airports- a Collection of Airports
-
isWarn
Validates whether an ETOPS classification should trigger an ETOPS warning.- Parameters:
ae- the Aircraft ETOPS ratingre- the route ETOPS classification- Returns:
- TRUE if an ETOPS warning should be triggered, otherwise FALSE
- Throws:
NullPointerException- if rp is null
-
generateAlternateMarker
Creates an ETOPS altenrate Airport marker.- Parameters:
a- the Airport- Returns:
- a Marker
-
generateMidpointMarker
public static NavigationDataBean generateMidpointMarker(GeoLocation loc, Collection<Airport> airports) Generates the mid-point ETOPS marker. This is a convenience method for external code.- Parameters:
loc- the GeoLocationairports- a List of closest Airports- Returns:
- a Marker
-
classify
ETOPS-classifies a set of positions.- Parameters:
entries- a Collection of GeoLocations- Returns:
- an ETOPS classification
-
classify
ETOPS-classifies an ACARS route.- Parameters:
pr- a PopulatedRoute bean- Returns:
- an ETOPS classification
-