faa.tg.recording.state
Class AcNewSpeedActionState

java.lang.Object
  extended by faa.tg.recording.state.State
      extended by faa.tg.recording.state.SimEventActionState
          extended by faa.tg.recording.state.AcNewSpeedActionState
All Implemented Interfaces:
TextWritable, HasName, HasSimTime, Filterable, Recordable, ManagedObject, java.io.Serializable

public class AcNewSpeedActionState
extends SimEventActionState
implements TextWritable

 Contains the state of a AcNewSpeedAction SimEvent object.
 
See the source: AcNewSpeedActionState.java

Version:
$Id: AcNewSpeedActionState.java,v 3.2 2008/05/16 15:46:16 lykensj Exp $
Author:
Dan Warburton, FAA/ACT-510
See Also:
Serialized Form

Field Summary
private  java.lang.String aircraftID
          The name of the aircraft ID as a String.
static java.lang.String CVS_VERSION_ID
          The CVS Version ID
(package private) static long serialVersionUID
           
private  IndicatedAirspeed targetIAS
          The commanded speed as an indicated airspeed.
 
Constructor Summary
AcNewSpeedActionState(java.lang.String aircraftID, IndicatedAirspeed targetIAS, SimulationTime timeStamp)
          Constructs the AcNewSpeedActionState; needs the CommandLineState.
 
Method Summary
 java.lang.String getAircraftID()
          Returns the ACID as a String.
 java.lang.String getName()
          Returns SP_CMD_ and the aircraft ID (if there is one) as a name.
 void setAircraftID(java.lang.String aircraftID)
          Sets the aircraft ID String.
 java.lang.String toDraText()
          Prints DR&A text information to a String.
 
Methods inherited from class faa.tg.recording.state.SimEventActionState
getSimTime, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

static final long serialVersionUID
See Also:
Constant Field Values

CVS_VERSION_ID

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

See Also:
Constant Field Values

aircraftID

private java.lang.String aircraftID
The name of the aircraft ID as a String.


targetIAS

private IndicatedAirspeed targetIAS
The commanded speed as an indicated airspeed.

Constructor Detail

AcNewSpeedActionState

public AcNewSpeedActionState(java.lang.String aircraftID,
                             IndicatedAirspeed targetIAS,
                             SimulationTime timeStamp)
Constructs the AcNewSpeedActionState; needs the CommandLineState.

Parameters:
aircraftID - the ID of the target aircraft.
targetIAS - the airspeed to capture.
timeStamp - the current time of the Scenario.
Method Detail

getAircraftID

public java.lang.String getAircraftID()
Returns the ACID as a String.

Returns:
Returns the ACID as a String.

setAircraftID

public void setAircraftID(java.lang.String aircraftID)
Sets the aircraft ID String.

Parameters:
aircraftID - The ACID as a String.

getName

public java.lang.String getName()
Returns SP_CMD_ and the aircraft ID (if there is one) as a name.

Specified by:
getName in interface ManagedObject
Overrides:
getName in class SimEventActionState
Returns:
Returns name unique to the class (or replacement of old object).

toDraText

public java.lang.String toDraText()
Prints DR&A text information to a String.

Specified by:
toDraText in interface TextWritable
Overrides:
toDraText in class SimEventActionState
Returns:
Returns the DR&A information in string format.