faa.tg.simevent.action
Class AcNewSpeedAction

java.lang.Object
  extended by faa.tg.simevent.action.AcNewSpeedAction
All Implemented Interfaces:
RecordableConditionalState<SimulationTime>, SimEventAction, SimEventActionOnAircraft, java.lang.Cloneable

public class AcNewSpeedAction
extends java.lang.Object
implements SimEventActionOnAircraft

 AcNewSpeedAction executes newSpeed(TrueAirspeed) commands on the
 given Aircraft.
 
See the source: AcNewSpeedAction.java

Version:
$Id: AcNewSpeedAction.java,v 3.11 2008/08/04 18:15:54 lykensj Exp $
Author:
Dan Warburton, FAA/ACT-510
See Also:
AcNewSpeedActionState

Field Summary
private  Aircraft aircraft
          The aircraft to execute upon.
static java.lang.String CVS_VERSION_ID
          The CVS Version ID
private  IndicatedAirspeed targetIAS
          The value of the target speed as an indicated airspeed.
 
Constructor Summary
AcNewSpeedAction(Aircraft aircraft, IndicatedAirspeed targetIAS)
           
AcNewSpeedAction(Aircraft aircraft, TrueAirspeed targetTAS)
          Construct a AcNewSpeedAction with the Aircraft and true airspeed target.
 
Method Summary
 AcNewSpeedAction clone()
          Provide a clone implementation
 void execute(Aircraft aircraft)
          Execute the Action by executing the commandLine on the given aircraft.
 void execute(Scenario scenario)
          Execute the Action by ...
 SimEventActionState getRecordable(SimulationTime timeStamp)
          This is to satisfy the implementation of RecordableConditionalState (from SimEventAction).
 java.lang.String toShortString()
          Returns a shorter version of toString
 java.lang.String toString()
          Returns the AcNewSpeedAction information as a String.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CVS_VERSION_ID

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

See Also:
Constant Field Values

aircraft

private Aircraft aircraft
The aircraft to execute upon.


targetIAS

private IndicatedAirspeed targetIAS
The value of the target speed as an indicated airspeed.

Constructor Detail

AcNewSpeedAction

public AcNewSpeedAction(Aircraft aircraft,
                        TrueAirspeed targetTAS)
Construct a AcNewSpeedAction with the Aircraft and true airspeed target.

Parameters:
aircraft - The aircraft that receives the speed command.
targetTAS - The true airspeed target for the aircraft.

AcNewSpeedAction

public AcNewSpeedAction(Aircraft aircraft,
                        IndicatedAirspeed targetIAS)
Method Detail

execute

public void execute(Scenario scenario)
             throws ExecutionException
Execute the Action by ...

Specified by:
execute in interface SimEventAction
Throws:
ExecutionException - If a problem in execution.

execute

public void execute(Aircraft aircraft)
Execute the Action by executing the commandLine on the given aircraft.

Specified by:
execute in interface SimEventActionOnAircraft
Parameters:
aircraft - The aircraft to execute the command on.

getRecordable

public SimEventActionState getRecordable(SimulationTime timeStamp)
This is to satisfy the implementation of RecordableConditionalState (from SimEventAction).

Specified by:
getRecordable in interface RecordableConditionalState<SimulationTime>
Specified by:
getRecordable in interface SimEventAction
Parameters:
timeStamp - the current time of the Scenario.
Returns:
SimEventActionState with State information for this Class.

toString

public java.lang.String toString()
Returns the AcNewSpeedAction information as a String.

Specified by:
toString in interface SimEventActionOnAircraft
Overrides:
toString in class java.lang.Object
Returns:
AcNewSpeedAction information as a String.

toShortString

public java.lang.String toShortString()
Returns a shorter version of toString

Specified by:
toShortString in interface SimEventActionOnAircraft

clone

public AcNewSpeedAction clone()
Provide a clone implementation

Specified by:
clone in interface SimEventActionOnAircraft
Overrides:
clone in class java.lang.Object