faa.tg.sp.cmd
Class RequestScaEntryCmd

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

public class RequestScaEntryCmd
extends SpAlphaCommand

 Sends a message to an Airport Management Module (AMM), via the
 AmmMessageCenter, requesting entry into the Self-Controlled Area (SCA)
 the AMM controls, in preparation for landing at the SCA's airport.
 This is provided for studies involving the Small Aircraft Transportation
 System (SATS).
 The general format for this command is "aal1123 reqsca sbv dan".
 
See the source: RequestScaEntryCmd.java

Version:
$Id: RequestScaEntryCmd.java,v 3.7 2008/12/05 22:56:50 lykensj Exp $
Author:
Dana N. Whicker, TGF/Titan Corp, Feb 27 2004
See Also:
SimEventActionState, Serialized Form

Field Summary
private  java.lang.String airportName
          The name of the airport for the SCA the flight wishes to enter.
private  java.lang.String approachFixName
          The name of the IAF (Initial Approach Fix) requested by the flight.
static java.lang.String CVS_VERSION_ID
          The CVS Version ID
private  Fix initApproachFix
          Deprecated.  
private  ScaAirport scaAirport
          Deprecated.  
(package private) static long serialVersionUID
           
 
Constructor Summary
RequestScaEntryCmd(java.lang.String cmd, java.util.StringTokenizer st, CommandLineSource source)
          Constructs a RequestScaEntryCmd 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

initApproachFix

private Fix initApproachFix
Deprecated. 
The IAF (Initial Approach Fix) requested by the flight. Deprecated on 05/28/08


approachFixName

private java.lang.String approachFixName
The name of the IAF (Initial Approach Fix) requested by the flight.


scaAirport

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


airportName

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

Constructor Detail

RequestScaEntryCmd

public RequestScaEntryCmd(java.lang.String cmd,
                          java.util.StringTokenizer st,
                          CommandLineSource source)
                   throws InvalidSyntaxException
Constructs a RequestScaEntryCmd 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 - Syntax for the command is invalid.
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.