Class ETOPSResult

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

public class ETOPSResult extends Object
A class to store ETOPS validation results.
Since:
4.1
Version:
7.0
Author:
Luke
  • Constructor Details

    • ETOPSResult

      ETOPSResult(ETOPS e)
      Creates an empty results object.
      Parameters:
      e - the ETOPS classification
    • ETOPSResult

      ETOPSResult(ETOPS e, NavigationDataBean loc, Collection<String> msgs)
      Creates the results object.
      Parameters:
      e - the ETOPS classification
      loc - the farthest point away from any Airport
      msgs - the messages
  • Method Details

    • getResult

      public ETOPS getResult()
      Returns the ETOPS classification.
      Returns:
      the classification
    • getDistance

      public int getDistance()
      Returns the maximum distance to a diversion airport.
      Returns:
      the maximum distance in miles
    • getClosestAirports

      public List<AirportLocation> getClosestAirports()
      Returns the Airport closest to the maximum distance point.
      Returns:
      the closest Airport
    • getWarningPoint

      public NavigationDataBean getWarningPoint()
      Returns the farthest point from a diversion airport.
      Returns:
      a NavigationDataBean representing the warning point
    • getMessages

      public Collection<String> getMessages()
      Returns the ETOPS messages.
      Returns:
      a Collection of messages
    • add

      public void add(AirportLocation a)
      Adds a diversion airport to the helper.
      Parameters:
      a - an AirportLocation
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object