Class MSFSXMLGenerator
java.lang.Object
org.deltava.util.flightplan.FlightPlanGenerator
org.deltava.util.flightplan.MSFSGenerator
org.deltava.util.flightplan.MSFSXMLGenerator
- Direct Known Subclasses:
FS2020Generator, P3DGenerator
An abstract Flight Plan Generator to create FSX-style XML flight plans.
- Since:
- 9.1
- Version:
- 9.1
- Author:
- Luke
-
Field Summary
Fields inherited from class MSFSGenerator
_gateDFields 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
ConstructorsModifierConstructorDescriptionprotectedMSFSXMLGenerator(int appMajor, int appVersion) Creates the Generator. -
Method Summary
Modifier and TypeMethodDescriptiongenerate(Collection<NavigationDataBean> waypoints) Generates a flight plan between two airports.protected DocumentgenerateDocument(Collection<NavigationDataBean> waypoints) Generates an XML flight plan between two airports.final StringReturns the MIME type of flight plans generated by this Generator.Methods inherited from class MSFSGenerator
setGateDMethods inherited from class FlightPlanGenerator
create, getEncoding, getExtension, 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 file extension 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
-
MSFSXMLGenerator
protected MSFSXMLGenerator(int appMajor, int appVersion) Creates the Generator.- Parameters:
appMajor- the application major versionappVersion- the application version
-
-
Method Details
-
generateDocument
Generates an XML flight plan between two airports.- Parameters:
waypoints- a Collection of waypoints- Returns:
- the generated XML Document
-
generate
Description copied from class:FlightPlanGeneratorGenerates a flight plan between two airports.- Specified by:
generatein classFlightPlanGenerator- Parameters:
waypoints- a Collection of waypoints- Returns:
- the generated flight plan file
-
getMimeType
Description copied from class:FlightPlanGeneratorReturns the MIME type of flight plans generated by this Generator.- Overrides:
getMimeTypein classFlightPlanGenerator- Returns:
- the MIME type
-