|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfaa.tg.aircraft.Dynamics
public abstract class Dynamics
Defines the methods needed by the aircraft dynamics interface.See the source: Dynamics.java
| Nested Class Summary | |
|---|---|
static interface |
Dynamics.GroundPredictor
|
| Field Summary | |
|---|---|
protected Aircraft |
aircraft
|
protected AircraftDynamicsResult |
aircraftDynamicsResult
|
protected AircraftEventBus |
aircraftEventBus
|
protected Airframe |
airframe
|
static java.lang.String |
CVS_VERSION_ID
|
protected IndicatedAirspeed |
desiredIas
|
protected Mach |
desiredMach
|
protected Engine |
engine
|
protected Position |
estimatedPos
|
protected FlyingStatus |
flyingStatus
The flying state of the aircraft: defaults to ON_ROUTE if not set. |
protected GroundTrackHeading |
groundTrackHeading
|
protected GroundTrackSpeed |
groundTrackSpeed
|
protected IndicatedAirspeed |
indicatedAirspeed
|
protected Mach |
mach
|
protected MagneticHeading |
magneticHeading
|
protected AircraftProperties |
props
|
private java.lang.String |
typeName
|
| Constructor Summary | |
|---|---|
protected |
Dynamics(Aircraft aircraft,
Dynamics other)
Copy ctor for split. |
protected |
Dynamics(java.lang.String dynamicsType,
Aircraft aircraft,
Position position,
java.lang.String acType)
|
protected |
Dynamics(java.lang.String dynamicsType,
Dynamics previousDyn)
Constructor for the Dynamics object that initializes the dynamics using the dynamics type of the previous epoch. |
protected |
Dynamics(java.lang.String dynamicsType,
Position estimatedPosition,
Aircraft aircraft,
AircraftTypeProfile profile)
Constructor for the Dynamics object that initializes the dynamics using the aircraft type profile and a specified AircraftEventBus (which is also used as the source of the estimated position information). |
private |
Dynamics(java.lang.String dynamicsType,
Position estimatedPos,
Aircraft aircraft,
Engine engine,
Airframe airframe,
AircraftProperties props)
Constructor for the Dynamics object with information for initializing the aircraft dynamics. |
| Method Summary | |
|---|---|
LocalAtm |
calculateLocalAtm(Position pos)
Calculates the atmospheric conditions at this position. |
LocalWind |
calculateLocalWind(Position pos)
Calculates the wind at this position. |
protected MagneticHeading |
calculateMagneticHeading(Position position,
TrueHeading heading)
|
abstract boolean |
changeFlyingStatusIfValid(FlyingStatus newFlyingStatus)
Change flying status of aircraft to the given status if change is valid, and return whether the flying status was changed. |
SimulationTime |
currentTime()
Returns the current simulation time. |
AircraftDynamicsResult |
getAircraftDynamicsResult()
|
AircraftProperties |
getAircraftProperties()
this method is useless and if it is used it will may cause a nasty bug! --lls |
Distance |
getAircraftTurnRadius()
Return aircraft's turn radius. |
AircraftWeight |
getAircraftWeight()
return current aircraft weight |
Airframe |
getAirframe()
return a reference to the Airframe object |
AltitudeRate |
getAltRate()
|
protected abstract Controller |
getController()
Return the controller for this dynamics type. |
abstract java.lang.String |
getCurrentManeuver()
|
abstract Altitude |
getDesiredAltitude()
return current desired altitude |
abstract TrueHeading |
getDesiredHeading()
return current desired true heading |
IndicatedAirspeed |
getDesiredIndicatedAirspeed()
|
Mach |
getDesiredMach()
Return current desired mach speed |
abstract MagneticHeading |
getDesiredMagneticHeading()
return current desired magnetic heading |
abstract GenericSpeed |
getDesiredSpeed()
|
Drag |
getDrag()
|
AirframeDragDeviceSettings |
getDragDeviceSettings()
|
Engine |
getEngine()
|
Position |
getEstimatedPosition()
|
FlightPathRelAirAngle |
getFlightPathAngle()
return current flight path angle |
FlyingStatus |
getFlyingStatus()
Returns the flying (maneuver) status of the aircraft. |
GroundTrackHeading |
getGroundTrackHeading()
|
GroundTrackSpeed |
getGroundTrackSpeed()
Return current airspeed relative to the ground. |
abstract GuidanceResult |
getGuidanceResult()
Returns GuidanceResult or null. |
IndicatedAirspeed |
getIndicatedAirspeed()
Return current indicated airspeed (IAS). |
LatitudeRate |
getLatRate()
|
LocalAtm |
getLocalAtm()
|
LocalWind |
getLocalWind()
|
LongitudeRate |
getLongRate()
|
Mach |
getMach()
Return current mach speed. |
MagneticHeading |
getMagneticHeading()
return current magnetic heading |
java.lang.String |
getName()
Return a text string describing this dynamics type. |
NED_VelocityVector |
getNEDVelocityVector()
Returns the velocity vector of the object in the North-East-Down rectangular coordinate frame. |
Position |
getPosition()
|
Distance |
getRemainingDistance()
ZERO if unknown or unreliable |
RollAngle |
getRollAngle()
return current roll angle |
RollRate |
getRollRate()
|
SpdAltManeuver |
getSpdAltManeuver()
Returns the current speed/altitude maneuver or null if this is not appropriate to this type of dynamics. |
abstract TransmittedSimData |
getTransferMedium()
|
TrueAirspeed |
getTrueAirspeed()
Return current true airspeed. |
TrueHeading |
getTrueHeading()
return current true heading |
TurnRate |
getTurnRate()
Return aircraft's turn rate. |
Dynamics.GroundPredictor |
groundPredictor()
|
protected void |
initDynamicsFields(AircraftState acState)
Initializes the given AircraftState for diagnosis; adds information that only ADMDynamics has access to. |
boolean |
isClearedForTakeOff()
|
void |
sendMessage(java.lang.String message)
|
protected abstract Dynamics |
split(Aircraft aircraft,
Scenario scenario)
Creates a copy of this dynamics, but attached to the given Scenario and Aircraft. |
java.lang.String |
toString()
Return a text string describing this dynamics type. |
protected void |
updateAircraftState(AircraftState state)
Override this method to make additional, dynamics specific, changes to aircraft state modified by initDynamicsFields. |
abstract void |
updateState(SimulationTime timeStep)
Advances the state of the Aircraft by one time step. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String CVS_VERSION_ID
protected final AircraftEventBus aircraftEventBus
protected Engine engine
private java.lang.String typeName
protected FlyingStatus flyingStatus
protected AircraftDynamicsResult aircraftDynamicsResult
protected IndicatedAirspeed indicatedAirspeed
protected Mach mach
protected GroundTrackSpeed groundTrackSpeed
protected MagneticHeading magneticHeading
protected GroundTrackHeading groundTrackHeading
protected Mach desiredMach
protected IndicatedAirspeed desiredIas
protected Airframe airframe
protected Position estimatedPos
protected final Aircraft aircraft
protected transient AircraftProperties props
| Constructor Detail |
|---|
protected Dynamics(java.lang.String dynamicsType,
Position estimatedPosition,
Aircraft aircraft,
AircraftTypeProfile profile)
dynamicsType - The name of the subtype of this dynamics.estimatedPosition - If null, must be set by subclass.aircraft - Aircraft object; if null, must set this.aircraft value
& call this.aircraftEventBus.setAircraft() in subclass.profile - The aircraft type profile for this aircraft.
protected Dynamics(java.lang.String dynamicsType,
Dynamics previousDyn)
dynamicsType - The name of the subtype of this dynamics.previousDyn - Aircraft's dynamics during the previous epoch.
protected Dynamics(Aircraft aircraft,
Dynamics other)
throws java.lang.CloneNotSupportedException
java.lang.CloneNotSupportedException
private Dynamics(java.lang.String dynamicsType,
Position estimatedPos,
Aircraft aircraft,
Engine engine,
Airframe airframe,
AircraftProperties props)
protected Dynamics(java.lang.String dynamicsType,
Aircraft aircraft,
Position position,
java.lang.String acType)
| Method Detail |
|---|
public abstract TransmittedSimData getTransferMedium()
throws ConstructionException
ConstructionException
protected abstract Dynamics split(Aircraft aircraft,
Scenario scenario)
throws java.lang.CloneNotSupportedException
aircraft, - the aircraft the new dynamics works for.scenario, - the new scenario the new aircraft is in.
java.lang.CloneNotSupportedException - if a class cannot be cloned inside the object graph.public java.lang.String getName()
public java.lang.String toString()
toString in class java.lang.Objectprotected abstract Controller getController()
public abstract GuidanceResult getGuidanceResult()
public AircraftDynamicsResult getAircraftDynamicsResult()
public abstract void updateState(SimulationTime timeStep)
Executive.getTimeStep()public Distance getAircraftTurnRadius()
public RollAngle getRollAngle()
public FlightPathRelAirAngle getFlightPathAngle()
public AircraftWeight getAircraftWeight()
public NED_VelocityVector getNEDVelocityVector()
public RollRate getRollRate()
public TurnRate getTurnRate()
public LocalWind getLocalWind()
public LocalAtm getLocalAtm()
public Position getPosition()
public LatitudeRate getLatRate()
public LongitudeRate getLongRate()
protected MagneticHeading calculateMagneticHeading(Position position,
TrueHeading heading)
public MagneticHeading getMagneticHeading()
public GroundTrackHeading getGroundTrackHeading()
public IndicatedAirspeed getDesiredIndicatedAirspeed()
public TrueAirspeed getTrueAirspeed()
public AltitudeRate getAltRate()
public GroundTrackSpeed getGroundTrackSpeed()
public IndicatedAirspeed getIndicatedAirspeed()
public Mach getMach()
public Mach getDesiredMach()
public FlyingStatus getFlyingStatus()
public TrueHeading getTrueHeading()
public abstract TrueHeading getDesiredHeading()
public abstract GenericSpeed getDesiredSpeed()
public abstract MagneticHeading getDesiredMagneticHeading()
public abstract Altitude getDesiredAltitude()
public Distance getRemainingDistance()
public SpdAltManeuver getSpdAltManeuver()
public abstract boolean changeFlyingStatusIfValid(FlyingStatus newFlyingStatus)
protected final void initDynamicsFields(AircraftState acState)
acState - The AircraftState to initialize the dynamics fields of.protected void updateAircraftState(AircraftState state)
state, - the struct to alter.public Engine getEngine()
public boolean isClearedForTakeOff()
public Drag getDrag()
public AirframeDragDeviceSettings getDragDeviceSettings()
public Airframe getAirframe()
public Position getEstimatedPosition()
public AircraftProperties getAircraftProperties()
public LocalWind calculateLocalWind(Position pos)
pos - the Position to check.
public LocalAtm calculateLocalAtm(Position pos)
pos - the Position to check.
public SimulationTime currentTime()
public void sendMessage(java.lang.String message)
public Dynamics.GroundPredictor groundPredictor()
public abstract java.lang.String getCurrentManeuver()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||