Class ETOPSHelper

java.lang.Object
org.deltava.beans.flight.ETOPSHelper

public final class ETOPSHelper extends Object
A utility class to do ETOPS validation.
Since:
4.1
Version:
10.3
Author:
Luke
  • Method Details

    • init

      public static void init(Collection<Airport> airports)
      Initializes the set of diversion airports.
      Parameters:
      airports - a Collection of Airports
    • isWarn

      public static boolean isWarn(ETOPS ae, ETOPS re)
      Validates whether an ETOPS classification should trigger an ETOPS warning.
      Parameters:
      ae - the Aircraft ETOPS rating
      re - the route ETOPS classification
      Returns:
      TRUE if an ETOPS warning should be triggered, otherwise FALSE
      Throws:
      NullPointerException - if rp is null
    • generateAlternateMarker

      public static AirportLocation generateAlternateMarker(Airport a)
      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 GeoLocation
      airports - a List of closest Airports
      Returns:
      a Marker
    • classify

      public static ETOPSResult classify(Collection<? extends GeoLocation> entries)
      ETOPS-classifies a set of positions.
      Parameters:
      entries - a Collection of GeoLocations
      Returns:
      an ETOPS classification
    • classify

      public static ETOPSResult classify(PopulatedRoute pr)
      ETOPS-classifies an ACARS route.
      Parameters:
      pr - a PopulatedRoute bean
      Returns:
      an ETOPS classification