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 org.deltava.util.flightplan.MSFSGenerator
_gateD
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
MSFSXMLGenerator
(int appMajor, int appVersion) Creates the Generator. -
Method Summary
Modifier and TypeMethodDescriptiongenerate
(Collection<NavigationDataBean> waypoints) Generates a flight plan between two airports.protected Document
generateDocument
(Collection<NavigationDataBean> waypoints) Generates an XML flight plan between two airports.final String
Returns the MIME type of flight plans generated by this Generator.Methods inherited from class org.deltava.util.flightplan.MSFSGenerator
setGateD
Methods inherited from class org.deltava.util.flightplan.FlightPlanGenerator
create, getEncoding, getExtension, setAirline, setAirports, setCruiseAltitude, setNavCycle, setRoute, setSID, setSTAR
-
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:FlightPlanGenerator
Generates a flight plan between two airports.- Specified by:
generate
in classFlightPlanGenerator
- Parameters:
waypoints
- a Collection of waypoints- Returns:
- the generated flight plan file
-
getMimeType
Description copied from class:FlightPlanGenerator
Returns the MIME type of flight plans generated by this Generator.- Overrides:
getMimeType
in classFlightPlanGenerator
- Returns:
- the MIME type
-