Class ETOPSHelper
java.lang.Object
org.deltava.beans.flight.ETOPSHelper
A utility class to do ETOPS validation.
- Since:
- 4.1
- Version:
- 10.3
- Author:
- Luke
-
Method Summary
Modifier and TypeMethodDescriptionstatic ETOPSResult
classify
(Collection<? extends GeoLocation> entries) ETOPS-classifies a set of positions.static ETOPSResult
ETOPS-classifies an ACARS route.static AirportLocation
Creates an ETOPS altenrate Airport marker.static NavigationDataBean
generateMidpointMarker
(GeoLocation loc, Collection<Airport> airports) Generates the mid-point ETOPS marker.static void
init
(Collection<Airport> airports) Initializes the set of diversion airports.static boolean
Validates 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
-