Class FlightPlanGenerator
java.lang.Object
org.deltava.util.flightplan.FlightPlanGenerator
- Direct Known Subclasses:
MSFSGenerator,XPGenerator
An abstract class to describe flight plan generators for simulators and payware aircraft.
- Since:
- 2.4
- Version:
- 10.6
- Author:
- Luke
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AirportThe arrivla airport.protected AirportThe departure airport.protected AirlineThe airline.protected StringThe cruise altitude.protected StringThe AIRAC cycle used to generate the flight plan.protected StringThe route waypoints as rendered in the flight plan for ACARS.protected TerminalRouteThe standard departure route.protected TerminalRouteThe standard terminal arrival route. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic FlightPlanGeneratorReturns the appropriate FlightPlanGenerator for a particular Simulator.abstract Stringgenerate(Collection<NavigationDataBean> waypoints) Generates a flight plan between two airports.Returns the character encoding for flight plans generated by this Generator.Returns the file extension of flight plans generated by this Generator.Returns the MIME type of flight plans generated by this Generator.voidsetAirline(Airline al) Sets the Airline for the flight.voidsetAirports(Airport aD, Airport aA) Sets the departure and arrival Airports for the flight.voidsetCruiseAltitude(String alt) Sets the cruise altitude for the flight.voidsetNavCycle(String cycle) Updates the AIRAC cycle used to generate this Flight Plan.voidSets the route text.voidsetSID(TerminalRoute sid) Updates the deprature route.voidsetSTAR(TerminalRoute star) Updates the arrival route.
-
Field Details
-
_al
The airline. -
_aD
The departure airport. -
_aA
The arrivla airport. -
_altitude
The cruise altitude. -
_sid
The standard departure route. -
_star
The standard terminal arrival route. -
_route
The route waypoints as rendered in the flight plan for ACARS.
-
-
Constructor Details
-
FlightPlanGenerator
public FlightPlanGenerator()
-
-
Method Details
-
setAirline
-
setAirports
-
setCruiseAltitude
Sets the cruise altitude for the flight.- Parameters:
alt- the altitude
-
setRoute
-
generate
Generates a flight plan between two airports.- Parameters:
waypoints- a Collection of waypoints- Returns:
- the generated flight plan file
-
getMimeType
Returns the MIME type of flight plans generated by this Generator.- Returns:
- the MIME type
-
getExtension
Returns the file extension of flight plans generated by this Generator.- Returns:
- the file extension
-
getEncoding
Returns the character encoding for flight plans generated by this Generator.- Returns:
- the encoding
-
create
Returns the appropriate FlightPlanGenerator for a particular Simulator.- Parameters:
sim- the Simulator- Returns:
- a FlightPlanGenerator
-