Class XP9Generator
java.lang.Object
org.deltava.util.flightplan.FlightPlanGenerator
org.deltava.util.flightplan.XPGenerator
org.deltava.util.flightplan.XP9Generator
A Flight Plan Generator for X-Plane 9.
- Since:
- 2.8
- Version:
- 7.0
- Author:
- Luke
-
Field Summary
Fields inherited from class FlightPlanGenerator
_aA, _aD, _al, _altitude, _navCycle, _route, _sid, _starModifier 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 TypeMethodDescriptiongenerate(Collection<NavigationDataBean> waypoints) Generates an X-Plane 9 flight plan between two airports.Returns the file extension of flight plans generated by this Generator.Methods inherited from class XPGenerator
getNavaidTypeModifier and TypeMethodDescriptionprotected static intgetNavaidType(Navaid nt) Maps Navaid types to X-Plane FMS types.Methods inherited from class FlightPlanGenerator
create, getEncoding, getMimeType, setAirline, setAirports, setCruiseAltitude, setNavCycle, setRoute, setSID, setSTARModifier and TypeMethodDescriptionstatic FlightPlanGeneratorReturns the appropriate FlightPlanGenerator for a particular Simulator.Returns the character encoding for 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.
-
Constructor Details
-
XP9Generator
public XP9Generator()
-
-
Method Details
-
generate
Generates an X-Plane 9 flight plan between two airports.- Specified by:
generatein classFlightPlanGenerator- Parameters:
waypoints- a Collection of waypoints- Returns:
- the generated flight plan file
-
getExtension
Description copied from class:FlightPlanGeneratorReturns the file extension of flight plans generated by this Generator.- Overrides:
getExtensionin classFlightPlanGenerator- Returns:
- the file extension
-