Class ScorePackage

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

public class ScorePackage extends Object
A bean to store data used to generate a Flight Score.
Since:
8.0
Version:
11.4
Author:
Luke
  • Constructor Details

    • ScorePackage

      public ScorePackage(Aircraft a, FDRFlightReport fr, Runway rD, Runway rA, AircraftPolicyOptions opts)
      Creates a Flight Scoring package.
      Parameters:
      a - the Aircraft used
      fr - the FDRFlightReport
      rD - the departure Runway
      rA - the arrival Runway
      opts - the AircraftPolicyOptions to use
  • Method Details

    • add

      public void add(RouteEntry re)
      Adds data to the scoring package.
      Parameters:
      re - an ACARSRouteEntry
    • add

      public void add(String msg)
      Adds a message to the scoring package.
      Parameters:
      msg - the message
    • getAircraft

      public Aircraft getAircraft()
      Returns the aircraft profile used.
      Returns:
      the Aircraft
    • getFlightReport

      public FDRFlightReport getFlightReport()
      Returns the Flight Report.
      Returns:
      an FDRFlightReport
    • getData

      public Collection<ACARSRouteEntry> getData()
      Returns the flight data.
      Returns:
      a Collection of ACARSRouteEntry beans
    • getRunwayD

      public Runway getRunwayD()
      Returns the departure Runway.
      Returns:
      a Runway
    • getRunwayA

      public Runway getRunwayA()
      Returns the arrival Runway.
      Returns:
      a Runway
    • getOptions

      public AircraftPolicyOptions getOptions()
      Returns the aircraft policy options.
      Returns:
      an AircraftPolicyOptions bean
    • getMessages

      public Collection<String> getMessages()
      Returns the scoring package messages.
      Returns:
      a Collection of messages
    • getWarnings

      public Collection<Warning> getWarnings()
      Returns all warnings from this data set.
      Returns:
      a Collection of Warnings
    • getResult

      public FlightScore getResult()
      Returns the flight score.
      Returns:
      the FlightScore
    • setResult

      void setResult(FlightScore fs)
      Updates the flight score.
      Parameters:
      fs - the FlightScore