Class ACARSGenerator
java.lang.Object
org.deltava.util.flightplan.FlightPlanGenerator
org.deltava.util.flightplan.MSFSGenerator
org.deltava.util.flightplan.ACARSGenerator
A flight plan generator for ACARS dispatch sheets.
- Since:
- 10.0
- Version:
- 11.0
- 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongenerate(Collection<NavigationDataBean> waypoints) Generates a flight plan between two airports.final StringReturns the file extension of flight plans generated by this Generator.final StringReturns the MIME type of flight plans generated by this Generator.voidUpdates the Aircraft used.voidUpdates the destination alternate airport.voidUpdates the arrival Gate.voidSets the departure Gate.voidsetPassengerCount(int pax) Updates the passenger count.voidsetRunwayD(Runway r) Updates the departure Runway.voidUpdates the simulator used.Methods inherited from class FlightPlanGenerator
create, getEncoding, 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.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
-
ACARSGenerator
public ACARSGenerator()
-
-
Method Details
-
setPassengerCount
public void setPassengerCount(int pax) Updates the passenger count.- Parameters:
pax- the number of passengers
-
setAircraft
-
setAirportL
Updates the destination alternate airport.- Parameters:
a- the Airport
-
setSimulator
-
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
-
getExtension
Description copied from class:FlightPlanGeneratorReturns the file extension of flight plans generated by this Generator.- Overrides:
getExtensionin classFlightPlanGenerator- Returns:
- the file extension
-
getMimeType
Description copied from class:FlightPlanGeneratorReturns the MIME type of flight plans generated by this Generator.- Overrides:
getMimeTypein classFlightPlanGenerator- Returns:
- the MIME type
-