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 Airport
The arrivla airport.protected Airport
The departure airport.protected Airline
The airline.protected String
The cruise altitude.protected String
The AIRAC cycle used to generate the flight plan.protected String
The route waypoints as rendered in the flight plan for ACARS.protected TerminalRoute
The standard departure route.protected TerminalRoute
The standard terminal arrival route. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic FlightPlanGenerator
Returns the appropriate FlightPlanGenerator for a particular Simulator.abstract String
generate
(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.void
setAirline
(Airline al) Sets the Airline for the flight.void
setAirports
(Airport aD, Airport aA) Sets the departure and arrival Airports for the flight.void
setCruiseAltitude
(String alt) Sets the cruise altitude for the flight.void
setNavCycle
(String cycle) Updates the AIRAC cycle used to generate this Flight Plan.void
Sets the route text.void
setSID
(TerminalRoute sid) Updates the deprature route.void
setSTAR
(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
-