faa.tg.sp.cmd
Class RequestScaStatusCmd

java.lang.Object
  extended by faa.tg.sp.SpCommand
      extended by faa.tg.sp.SpAlphaCommand
          extended by faa.tg.sp.cmd.RequestScaStatusCmd
All Implemented Interfaces:
HasSpCmd, java.io.Serializable

public class RequestScaStatusCmd
extends SpAlphaCommand

 Sends a message to an Airport Management Module (AMM), via the
 AmmMessageCenter, requesting the status of the Self-Controlled Area (SCA)
 the AMM controls. This is provided for studies involving the Small
 Aircraft Transportation System (SATS).
 The general format for this command is "aal1123 scastat dan".
 
See the source: RequestScaStatusCmd.java

Version:
$Id: RequestScaStatusCmd.java,v 3.6 2008/12/05 22:57:11 lykensj Exp $
Author:
Dana N. Whicker, TGF/Titan Corp, Aug 10 2004
See Also:
SimEventActionState, Serialized Form

Field Summary
private  java.lang.String airportName
          The name of the airport for the SCA the flight wishes the status of.
static java.lang.String CVS_VERSION_ID
          The CVS Version ID
private  ScaAirport scaAirport
          Deprecated.  
(package private) static long serialVersionUID
           
 
Constructor Summary
RequestScaStatusCmd(java.lang.String cmd, java.util.StringTokenizer st, CommandLineSource source)
          Constructs a RequestScaStatusCmd for the Flight.
 
Method Summary
 SpCommandResult execute(Aircraft ac, java.util.List<SpCommand> cmdList)
          Executes the transmission of a request for entry to an SCA.
 SpCmdType getSpCmdType()
          This provides the type of this command as an SpCmdType.
static java.lang.String getUsage()
          This method provides the proper usage of this command as a String.
private  void readObject(java.io.ObjectInputStream in)
          Takes old commands and extracts the String information from the non-String deprecated fields.
 
Methods inherited from class faa.tg.sp.SpCommand
getCmd, getCmdLine, getSource, setCmdLine, 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

scaAirport

private ScaAirport scaAirport
Deprecated. 
The airport for the SCA the flight wishes the status of. Deprecated on 05/28/08


airportName

private java.lang.String airportName
The name of the airport for the SCA the flight wishes the status of.

Constructor Detail

RequestScaStatusCmd

public RequestScaStatusCmd(java.lang.String cmd,
                           java.util.StringTokenizer st,
                           CommandLineSource source)
                    throws InvalidSyntaxException
Constructs a RequestScaStatusCmd for the Flight.

Parameters:
cmd - The String identifying the command.
st - The StringTokenizer containing the command's parameters.
source - The object that created the command.
Throws:
InvalidSyntaxException
Method Detail

readObject

private void readObject(java.io.ObjectInputStream in)
                 throws java.io.IOException,
                        java.lang.ClassNotFoundException
Takes old commands and extracts the String information from the non-String deprecated fields. Can be removed when those fields are removed. (Added 05/28/08)

Throws:
java.io.IOException
java.lang.ClassNotFoundException

execute

public SpCommandResult execute(Aircraft ac,
                               java.util.List<SpCommand> cmdList)
Executes the transmission of a request for entry to an SCA.

Specified by:
execute in class SpCommand

getSpCmdType

public SpCmdType getSpCmdType()
This provides the type of this command as an SpCmdType.

Returns:
The type of simpilot command as an SpCmdType.

getUsage

public static java.lang.String getUsage()
This method provides the proper usage of this command as a String.

Returns:
The proper usage of this command as a String.