|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfaa.tg.nas.flight.Flight
public class Flight
Flight is a class which defines the flight scheduled for an aircraft Further definition must be done.See the source: Flight.java
| Nested Class Summary | |
|---|---|
private static class |
Flight.GroundPart
|
| Field Summary | |
|---|---|
private AcType |
acType
The type of A/C i.e. |
private Aircraft |
aircraft
The Aircraft associated with this Flight. |
private java.lang.String |
airLine
The Airline this flight is flying for |
private Airport |
arrivalAirport
The Airport at which the Flight is planned to land. |
private Runway |
arrivalRunway
The Runway at which the Flight is planned to land. |
private int |
complexity
The complexity level at which this Flight will be included in the simulation. |
static java.lang.String |
CVS_VERSION_ID
The CVS Version ID |
static int |
DEFAULT_COMPLEXITY
|
private Airport |
departureAirport
The Airport from which the Flight is planned to depart. |
private Runway |
departureRunway
The Runway from which the Flight is planned to depart. |
private Route |
filedRoute
The Route as a Object FIXME made this transient because the simEventActions tag along. |
private java.lang.String |
filedRouteString
The Route as a string |
private SimulationTime |
filedStartTime
The start time filed in the UFP |
private Flight.GroundPart |
ground
|
private java.lang.String |
groundArrivalString
Deprecated. |
private java.lang.String |
groundDepartureString
Deprecated. |
private java.lang.String |
nasRouteString
|
(package private) static long |
serialVersionUID
|
private SpID |
spId
The Simpilot ID of this flight. |
private SimulationTime |
startTime
Time when the flight is starting. |
private Altitude |
targetAltitude
|
private GenericSpeed |
targetSpeed
|
private Ufp |
ufp
The Universal Flight Plan for this object. |
| Constructor Summary | |
|---|---|
private |
Flight(Flight other,
Scenario scenario)
|
|
Flight(Ufp ufp,
Aircraft ac,
SimulationTime startTime,
int complexity,
AcType acType,
java.lang.String routeString,
java.lang.String airline)
Constructor for dead reckoned aircraft. |
|
Flight(Ufp ufp,
Aircraft ac,
SimulationTime startTime,
int complexity,
AcType acType,
java.lang.String routeString,
java.lang.String airline,
Altitude targetAlt,
java.lang.String groundDep,
java.lang.String groundArr)
Constructor. |
|
Flight(Ufp flightPlan,
Scenario scenario,
boolean strictRoute)
Constructs a Flight from a Ufp. |
| Method Summary | |
|---|---|
private void |
configureDatalink()
|
private Altitude |
findAltitudes()
|
private void |
findArrivalAirportAndRunway()
Finds and sets the arrival airport and arrival ruwnay based on filedRoute. |
private void |
findDepartureAirportAndRunway()
Finds and sets the departure airport and departure ruwnay based on filedRoute. |
Acid |
getAcid()
|
AcType |
getAcType()
The type of A/C, i.e. |
Aircraft |
getAircraft()
|
java.lang.String |
getAirLine()
|
Airport |
getArrivalAirport()
Returns the Airport at which the flight is planned to land or null if the Flight is not planned to land in the Simulation. |
Runway |
getArrivalRunway()
Returns the Runway at which the flight is planned to land or null if the Flight is not planned to land in the Simulation. |
int |
getComplexity()
|
Airport |
getDepartureAirport()
Returns the Airport at which the flight is planned to depart or null if the Flight is not planned to depart in the Simulation. |
Runway |
getDepartureRunway()
Returns the Runway at which the flight is planned to depart or null if the Flight is not planned to depart in the Simulation. |
Route |
getFiledRoute()
|
java.lang.String |
getFiledRouteString()
|
SimulationTime |
getFiledStartTime()
Returns the start time filed in the flight plan. |
FlightState |
getFlightState()
Gets the recordable FlightState for this flight. |
GroundFlight |
getGroundInformation()
|
java.lang.String |
getName()
Returns a unique identifier for the Flight to implement HasName. |
java.lang.String |
getNasRouteString()
|
Recordable |
getRecordable()
Get a Recordable (must be Serializable) version of this object. |
SpID |
getSpId()
Gets the ID of the SimPilotStation that this is assigned to |
SimulationTime |
getStartTime()
|
Altitude |
getTargetAltitude()
|
GenericSpeed |
getTargetSpeed()
|
Ufp |
getUfp()
Returns the UFP object for this flight. |
private void |
initializeAircraft(Altitude startAlt,
Route route,
Atmosphere atmosphere)
Initializes the dynamics of the aircraft. |
private static GenericSpeed |
parseStartSpeed(Ufp ufp,
Position position,
Atmosphere atmo)
Parses start speed from ufp |
private static GenericSpeed |
parseTargetSpeed(Ufp ufp,
Position position,
Altitude targetAlt,
Atmosphere atmosphere)
Parses target speed from UFP: if not specified, there are no speed restrictions on the aircraft and null is returned. |
private void |
readObject(java.io.ObjectInputStream stream)
Restores the aircraft object from an ObjectInputStream, with a newly constructed UpdateCompleteListenerList. |
void |
setArrivalAirport(Airport arrivalAirport)
|
void |
setArrivalRunway(Runway arrivalRunway)
|
void |
setDepartureAirport(Airport departureAirport)
|
void |
setDepartureRunway(Runway departureRunway)
|
void |
setFiledRoute(Route route)
|
void |
setSpId(SpID spId)
Sets the ID of the SimPilotStation that this is assigned to |
void |
setStartTime(SimulationTime newStartTime)
This method was put in so that departure manager could update startTime. |
void |
setTargetSpeed(GenericSpeed targetSpeed)
Set target speed to use as a speed restriction (null if unrestricted). |
Flight |
split(Scenario scenario)
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
static final long serialVersionUID
public static final java.lang.String CVS_VERSION_ID
public static final int DEFAULT_COMPLEXITY
private SimulationTime startTime
private final Aircraft aircraft
private int complexity
private AcType acType
private java.lang.String airLine
private java.lang.String filedRouteString
private java.lang.String nasRouteString
private final transient java.lang.String groundDepartureString
private final transient java.lang.String groundArrivalString
private SimulationTime filedStartTime
private transient Route filedRoute
private transient SpID spId
private Ufp ufp
private Airport arrivalAirport
private Airport departureAirport
private Runway arrivalRunway
private Runway departureRunway
private Altitude targetAltitude
private GenericSpeed targetSpeed
private final transient Flight.GroundPart ground
| Constructor Detail |
|---|
public Flight(Ufp ufp,
Aircraft ac,
SimulationTime startTime,
int complexity,
AcType acType,
java.lang.String routeString,
java.lang.String airline,
Altitude targetAlt,
java.lang.String groundDep,
java.lang.String groundArr)
ufp - The Universal Flight Plan fields.ac - The aircraft object.startTime - The aircraft's start time.complexity - Simulation complexity this aircraft is visible at.acType - The aircraft type.routeString - The route of the aircraft.airline - The airline of the aircraft.targetAlt - Target altitude from the flight plan (may be null).groundDep - Ground departure info (null if not ground departure).groundArr - Ground arrival info (null if not ground arrival).
private Flight(Flight other,
Scenario scenario)
throws java.lang.CloneNotSupportedException,
PathNotFoundException
java.lang.CloneNotSupportedException
PathNotFoundException
public Flight(Ufp ufp,
Aircraft ac,
SimulationTime startTime,
int complexity,
AcType acType,
java.lang.String routeString,
java.lang.String airline)
public Flight(Ufp flightPlan,
Scenario scenario,
boolean strictRoute)
throws FlightPlanException
flightPlan - the source of the data for this flight.strictRoute - if true, this constructor will throw a FlightPlanException on
invalid flying routes.
FlightPlanException - if the Fligh cannot be constructed.| Method Detail |
|---|
public void setStartTime(SimulationTime newStartTime)
newStartTime - - The new start timepublic void setTargetSpeed(GenericSpeed targetSpeed)
public SimulationTime getFiledStartTime()
public Acid getAcid()
public SimulationTime getStartTime()
public Aircraft getAircraft()
public int getComplexity()
public java.lang.String getFiledRouteString()
public Altitude getTargetAltitude()
public GenericSpeed getTargetSpeed()
public AcType getAcType()
public java.lang.String getName()
getName in interface ManagedObjectpublic java.lang.String getAirLine()
public void setFiledRoute(Route route)
public Route getFiledRoute()
public void setArrivalAirport(Airport arrivalAirport)
public void setDepartureAirport(Airport departureAirport)
public void setArrivalRunway(Runway arrivalRunway)
public void setDepartureRunway(Runway departureRunway)
public Ufp getUfp()
public Airport getDepartureAirport()
public Airport getArrivalAirport()
public Runway getDepartureRunway()
public Runway getArrivalRunway()
private void readObject(java.io.ObjectInputStream stream)
throws java.io.IOException,
java.lang.ClassNotFoundException
stream - Stream to read the Flight object from.
java.io.IOException
java.lang.ClassNotFoundExceptionpublic java.lang.String toString()
toString in class java.lang.Objectpublic Recordable getRecordable()
RecordableState
getRecordable in interface RecordableStatepublic FlightState getFlightState()
public GroundFlight getGroundInformation()
public SpID getSpId()
public void setSpId(SpID spId)
spId - to assign this to
private void initializeAircraft(Altitude startAlt,
Route route,
Atmosphere atmosphere)
throws FlightPlanException,
UnableToComplyException
startAlt - the aircraft's starting altitude.route - the aircraft's starting route.atmosphere - the global atmospheric conditions.
FlightPlanException - for bad routes, checked in this method.
UnableToComplyException - for bad routes, checked at the Controller level..private void configureDatalink()
private void findArrivalAirportAndRunway()
private void findDepartureAirportAndRunway()
throws FlightPlanException
FlightPlanException
private static GenericSpeed parseTargetSpeed(Ufp ufp,
Position position,
Altitude targetAlt,
Atmosphere atmosphere)
position - Used to convert TAS to indicated airspeed.targetAlt - The target altitude string from the UFP.
private Altitude findAltitudes()
private static GenericSpeed parseStartSpeed(Ufp ufp,
Position position,
Atmosphere atmo)
position - used to find indicatedAirspeed
public Flight split(Scenario scenario)
throws java.lang.CloneNotSupportedException,
PathNotFoundException
java.lang.CloneNotSupportedException
PathNotFoundExceptionpublic java.lang.String getNasRouteString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||