|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfaa.tg.recording.state.State
faa.tg.recording.state.FlightState
public class FlightState
The recordable state of the Flight object.See the source FlightState.java
Flight,
Recordable,
Serialized Form| Field Summary | |
|---|---|
private Acid |
acid
|
private AcType |
aircraftType
|
private java.lang.String |
airLine
|
private Runway |
arrRunway
|
private int |
complexity
|
static java.lang.String |
CVS_VERSION_ID
The CVS Version ID |
private Airport |
depAirport
|
private AirportID |
depAirportID
|
private Runway |
depRunway
|
private java.lang.String |
filedRouteString
|
private SimulationTime |
filedStartTime
|
private Frequency |
frequency
|
private Position |
pos
|
(package private) static long |
serialVersionUID
|
private SimulationTime |
simTime
The SimulationTime at which this state information was created. |
private SimulationTime |
startTime
|
private Ufp |
ufp
|
| Constructor Summary | |
|---|---|
FlightState(Acid acid,
AcType acType,
SimulationTime startTime,
java.lang.String routeString,
Ufp ufp,
SimulationTime simTime,
Runway arrRwy,
Airport depAirport,
Runway depRwy)
Creates the FlightState with a standard set of initialization fields. |
|
FlightState(Flight flight)
Creates a FlightState from a Flight object. |
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
|
Acid |
getAcid()
Planned change of String ACID to type Acid. |
AcType |
getAcType()
Returns the aircraft type from the flight plan, as an AcType. |
java.lang.String |
getAcTypeString()
Returns the aircraft type from the flight plan, as a String. |
java.lang.String |
getAirLine()
|
Runway |
getArrRunway()
|
AirportRwyID |
getArrRwy()
This will soon be deprecated. |
BeaconCode |
getBeaconCode()
|
int |
getComplexity()
|
Airport |
getDepAirport()
|
AirportID |
getDepAirportID()
|
Runway |
getDepRunway()
|
AirportRwyID |
getDepRwy()
This will soon be deprecated. |
Route |
getFiledRoute()
Getting filed Route currently returns null because Route is not Recordable. |
java.lang.String |
getFiledRouteString()
|
SimulationTime |
getFiledStartTime()
|
Frequency |
getFrequency()
|
java.lang.String |
getName()
Returns ACID; if used as a storage key, old FlightStates will be replaced by the current ones. |
Position |
getPosition()
|
SimulationTime |
getSimTime()
Returns the SimulationTime that this state refers to. |
SimulationTime |
getStartTime()
|
Ufp |
getUfp()
|
private void |
readObject(java.io.ObjectInputStream in)
Set AirportID (and Runway) if it is null and the flight does have a departure airport. |
void |
setFrequency(Frequency frequency)
|
void |
setPosition(Position pos)
|
java.lang.String |
toDraText()
Prints DR&A text information to a String. |
java.lang.String |
toString()
Prints the FlightState information to a String. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
static final long serialVersionUID
public static final java.lang.String CVS_VERSION_ID
private final SimulationTime simTime
private SimulationTime startTime
private SimulationTime filedStartTime
private int complexity
private Acid acid
private AcType aircraftType
private java.lang.String airLine
private Runway arrRunway
private Airport depAirport
private AirportID depAirportID
private Runway depRunway
private java.lang.String filedRouteString
private Frequency frequency
private Position pos
private Ufp ufp
| Constructor Detail |
|---|
public FlightState(Flight flight)
flight - The Flight object to get the recordable state info from.
public FlightState(Acid acid,
AcType acType,
SimulationTime startTime,
java.lang.String routeString,
Ufp ufp,
SimulationTime simTime,
Runway arrRwy,
Airport depAirport,
Runway depRwy)
acid - The aircraft ID for the Flight: necessary.acType - The aircraft type of the Flight: necessary.startTime - The start time of the Flight: necessary.routeString - The route of the Flight: necessary.ufp - The UFP (Universal Flight Plan) of the Flight: necessary.simTime - The simulation time of the Flight: if not set, the
current simTime of the Scenario is used.arrRwy - The arrival runway of the Flight: may be null.depAirport - The departure airport of the Flight: may be null.depRwy - The departure runway of the Flight: may be null.| Method Detail |
|---|
private void readObject(java.io.ObjectInputStream in)
throws java.io.IOException,
java.lang.ClassNotFoundException
java.io.IOException
java.lang.ClassNotFoundExceptionpublic void setFrequency(Frequency frequency)
public void setPosition(Position pos)
public java.lang.String getName()
getName in interface DraStorablegetName in interface ManagedObjectgetName in class Statepublic java.lang.Object clone()
clone in interface DraStorableclone in class java.lang.Objectpublic SimulationTime getSimTime()
getSimTime in interface HasSimTimegetSimTime in class Statepublic SimulationTime getStartTime()
public SimulationTime getFiledStartTime()
public int getComplexity()
public Acid getAcid()
HasAcid
getAcid in interface HasAcidpublic AcType getAcType()
public java.lang.String getAcTypeString()
public java.lang.String getAirLine()
public Runway getArrRunway()
public AirportRwyID getArrRwy()
HasArrRwy
getArrRwy in interface HasArrRwypublic Airport getDepAirport()
public AirportID getDepAirportID()
public Runway getDepRunway()
public AirportRwyID getDepRwy()
HasDepRwy
getDepRwy in interface HasDepRwypublic java.lang.String getFiledRouteString()
public Route getFiledRoute()
public Frequency getFrequency()
public Position getPosition()
getPosition in interface HasPositionpublic Ufp getUfp()
public BeaconCode getBeaconCode()
getBeaconCode in interface HasBeaconCodepublic java.lang.String toDraText()
toDraText in interface TextWritablepublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||