|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfaa.tg.sp.SpCommand
faa.tg.sp.SpAlphaCommand
faa.tg.sp.cmd.AirportCmd
public class AirportCmd
Assigns a new airport as the aircraft's destination. A default runway for the specified airport is also assigned to the aircraft. The general format of the aircraft command is: "AAL1123 apt den".See the source: AirportCmd.java
| Field Summary | |
|---|---|
private Airport |
apt
Deprecated. |
static java.lang.String |
CVS_VERSION_ID
The CVS Version ID |
private java.lang.String |
desiredAptName
|
(package private) static long |
serialVersionUID
|
| Constructor Summary | |
|---|---|
AirportCmd(java.lang.String cmd,
java.util.StringTokenizer st,
CommandLineSource source)
Constructor for the command. |
|
| Method Summary | |
|---|---|
SpCommandResult |
execute(Aircraft ac,
java.util.List<SpCommand> cmdList)
Executes the constructed command. |
java.lang.String |
getAirport()
|
SpCmdType |
getSpCmdType()
Returns the type of this simpilot command as an SpCmdType. |
static java.lang.String |
getUsage()
Returns the proper usage of this command as a String. |
| 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 |
|---|
static final long serialVersionUID
public static final java.lang.String CVS_VERSION_ID
private final transient Airport apt
private java.lang.String desiredAptName
| Constructor Detail |
|---|
public AirportCmd(java.lang.String cmd,
java.util.StringTokenizer st,
CommandLineSource source)
cmd - The cmd word.st - The rest of the command line in tokenizer format.source - The object that created the command.| Method Detail |
|---|
public SpCmdType getSpCmdType()
public static java.lang.String getUsage()
public SpCommandResult execute(Aircraft ac,
java.util.List<SpCommand> cmdList)
execute in class SpCommandac - The Aircraft the command is for, or null.cmdList - The list of simpilot commands.
public java.lang.String getAirport()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||