faa.tg.aircraft.adm.controllogic.latcontrol
Class ContinuousHeadingStrategist

java.lang.Object
  extended by faa.tg.aircraft.adm.controllogic.latcontrol.ContinuousHeadingStrategist
All Implemented Interfaces:
HeadingStrategist, java.io.Serializable, java.lang.Cloneable

Deprecated. Needs to be fixed before use.

public class ContinuousHeadingStrategist
extends java.lang.Object
implements HeadingStrategist, java.io.Serializable

 Classes used to maintain a continuous heading specified by the sim pilot.
 
See the source: ContinuousHeadingStrategist.java

Version:
$Id: ContinuousHeadingStrategist.java,v 3.3 2008/08/07 19:03:46 lykensj Exp $
Author:
Tim Kimmet
See Also:
Serialized Form

Field Summary
static java.lang.String CVS_VERSION_ID
          Deprecated. The CVS Version ID
private  TrueHeading desiredHeading
          Deprecated. The continuous heading to maintain.
(package private) static long serialVersionUID
          Deprecated.  
 
Constructor Summary
ContinuousHeadingStrategist(TrueHeading desiredHeading)
          Deprecated. Constructor for the continuous heading class.
 
Method Summary
 ContinuousHeadingStrategist clone()
          Deprecated.  
 RollAngle control(TrueHeading currentHeading, RollAngle rollAngle)
          Deprecated. In this case, override the control method and do nothing, since we want to maintain a constant true heading.
 TrueHeading getDesiredHeading()
          Deprecated. Returns the user-specified heading.
 RollAngle getRollAngle()
          Deprecated. This is what everyone is interested in :-) Since we are in continuous mode, simply return the desired value and we'll continue to maintain a heading of such magnitude
 boolean isHeadingCaptured()
          Deprecated. always return false here, since the LateralControlLogic will use this and continue to load the GenericHeadingStrategist, which is not what we want here!
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

static final long serialVersionUID
Deprecated. 
See Also:
Constant Field Values

CVS_VERSION_ID

public static final java.lang.String CVS_VERSION_ID
Deprecated. 
The CVS Version ID

See Also:
Constant Field Values

desiredHeading

private TrueHeading desiredHeading
Deprecated. 
The continuous heading to maintain.

Constructor Detail

ContinuousHeadingStrategist

public ContinuousHeadingStrategist(TrueHeading desiredHeading)
Deprecated. 
Constructor for the continuous heading class.

Parameters:
desiredHeading - the desired heading to maintain.
Method Detail

control

public RollAngle control(TrueHeading currentHeading,
                         RollAngle rollAngle)
Deprecated. 
In this case, override the control method and do nothing, since we want to maintain a constant true heading. An adapter class could be made to simplify things even more, but what for? There aren't any more classes that could make good use of the adapter class!

Specified by:
control in interface HeadingStrategist
Parameters:
currentHeading - The current heading of the aircraft.
rollAngle - The current roll angle.

isHeadingCaptured

public boolean isHeadingCaptured()
Deprecated. 
always return false here, since the LateralControlLogic will use this and continue to load the GenericHeadingStrategist, which is not what we want here!

Specified by:
isHeadingCaptured in interface HeadingStrategist

getRollAngle

public RollAngle getRollAngle()
Deprecated. 
This is what everyone is interested in :-) Since we are in continuous mode, simply return the desired value and we'll continue to maintain a heading of such magnitude

Specified by:
getRollAngle in interface HeadingStrategist

getDesiredHeading

public TrueHeading getDesiredHeading()
Deprecated. 
Returns the user-specified heading.

Specified by:
getDesiredHeading in interface HeadingStrategist

clone

public ContinuousHeadingStrategist clone()
                                  throws java.lang.CloneNotSupportedException
Deprecated. 
Specified by:
clone in interface HeadingStrategist
Overrides:
clone in class java.lang.Object
Throws:
java.lang.CloneNotSupportedException