Class FlightPlanGenerator

java.lang.Object
org.deltava.util.flightplan.FlightPlanGenerator
Direct Known Subclasses:
MSFSGenerator, XPGenerator

public abstract class FlightPlanGenerator extends Object
An abstract class to describe flight plan generators for simulators and payware aircraft.
Since:
2.4
Version:
10.6
Author:
Luke
  • Field Details

    • _al

      protected Airline _al
      The airline.
    • _aD

      protected Airport _aD
      The departure airport.
    • _aA

      protected Airport _aA
      The arrivla airport.
    • _altitude

      protected String _altitude
      The cruise altitude.
    • _sid

      protected TerminalRoute _sid
      The standard departure route.
    • _star

      protected TerminalRoute _star
      The standard terminal arrival route.
    • _route

      protected String _route
      The route waypoints as rendered in the flight plan for ACARS.
    • _navCycle

      protected String _navCycle
      The AIRAC cycle used to generate the flight plan.
  • Constructor Details

    • FlightPlanGenerator

      public FlightPlanGenerator()
  • Method Details

    • setAirline

      public void setAirline(Airline al)
      Sets the Airline for the flight.
      Parameters:
      al - the Airline
    • setAirports

      public void setAirports(Airport aD, Airport aA)
      Sets the departure and arrival Airports for the flight.
      Parameters:
      aD - the departure Airport
      aA - the arrival Airport
    • setCruiseAltitude

      public void setCruiseAltitude(String alt)
      Sets the cruise altitude for the flight.
      Parameters:
      alt - the altitude
    • setSID

      public void setSID(TerminalRoute sid)
      Updates the deprature route.
      Parameters:
      sid - the departure route bean
    • setSTAR

      public void setSTAR(TerminalRoute star)
      Updates the arrival route.
      Parameters:
      star - the arrival route bean
    • setRoute

      public void setRoute(String route)
      Sets the route text.
      Parameters:
      route - the route text
    • setNavCycle

      public void setNavCycle(String cycle)
      Updates the AIRAC cycle used to generate this Flight Plan.
      Parameters:
      cycle -
    • generate

      public abstract String generate(Collection<NavigationDataBean> waypoints)
      Generates a flight plan between two airports.
      Parameters:
      waypoints - a Collection of waypoints
      Returns:
      the generated flight plan file
    • getMimeType

      public String getMimeType()
      Returns the MIME type of flight plans generated by this Generator.
      Returns:
      the MIME type
    • getExtension

      public String getExtension()
      Returns the file extension of flight plans generated by this Generator.
      Returns:
      the file extension
    • getEncoding

      public String getEncoding()
      Returns the character encoding for flight plans generated by this Generator.
      Returns:
      the encoding
    • create

      public static FlightPlanGenerator create(Simulator sim)
      Returns the appropriate FlightPlanGenerator for a particular Simulator.
      Parameters:
      sim - the Simulator
      Returns:
      a FlightPlanGenerator