faa.tg.simevent.action
Class AcTerminateAction

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

public class AcTerminateAction
extends java.lang.Object
implements SimEventActionOnAircraft, java.lang.Cloneable, java.io.Serializable

 AcTerminateAction executes a termination command on the given Aircraft.
 
See the source: AcTerminateAction.java

Version:
$Id: AcTerminateAction.java,v 3.9 2008/08/04 18:15:54 lykensj Exp $
Author:
Stanley W. Rimdzius, Titan Systems
See Also:
AcNewSpeedActionState, Serialized Form

Field Summary
private  Aircraft aircraft
          The aircraft to execute upon
static java.lang.String CVS_VERSION_ID
          The CVS Version ID
(package private) static long serialVersionUID
           
 
Constructor Summary
AcTerminateAction(Aircraft aircraft)
          Construct an AcTerminateAction with the Aircraft
 
Method Summary
 AcTerminateAction 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 ...
 java.lang.String getName()
          This method will return a unique name for this object.
 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 AcTerminateAction information as a String.
 
Methods inherited from class java.lang.Object
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

aircraft

private Aircraft aircraft
The aircraft to execute upon

Constructor Detail

AcTerminateAction

public AcTerminateAction(Aircraft aircraft)
Construct an AcTerminateAction with the Aircraft

Parameters:
aircraft -
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.

getName

public java.lang.String getName()
This method will return a unique name for this object.

Returns:
String describing a unique name for this object.

toString

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

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

toShortString

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

Specified by:
toShortString in interface SimEventActionOnAircraft

clone

public AcTerminateAction clone()
Provide a clone implementation

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