|
||||||||||
| 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.HoldCmd
public class HoldCmd
The general format for this command is:
"hold ponny 180 T2 LEFT"
or
"hl ponny 180 T2" (right turn).
If this is a published fix, the fix is the only required parameter, and
the published values will be used if not specified.
Command components:
[holding command] -> "hold" or "hl"
[holding fix: must be first parameter] -> "ponny"
[unused: approx. outbound compass dir] -> "N|S|E|W|NW|NE|SW|SE"
[radial from fix (outbound bearing)] -> "180" (degrees)
-- if given as an inbound bearing TO the fix, use reciprocal
[leg length] -> "T2" (minutes) or "D2" (n. miles)
[turn direction] -> "LEFT" for left, right otherwise
See the source: HoldCmd.java
| Field Summary | |
|---|---|
private CompassDirection |
compassDirection
|
static java.lang.String |
CVS_VERSION_ID
The CVS Version ID |
static Distance |
DEFAULT_DISTANCE
|
private Fix |
holdingFix
Deprecated. |
private java.lang.String |
holdingFixName
The name of the fix the aircraft is to hold at. |
private HoldingPattern |
holdingPattern
Deprecated. |
private Distance |
legDistance
|
private Time |
legLength
|
private Radial |
radialFromFix
|
(package private) static long |
serialVersionUID
|
private TurnDirection |
turnDirection
|
private java.lang.String |
voiceResponse
|
| Fields inherited from interface faa.tg.sp.cmd.HasVoiceResponse |
|---|
DEFAULT_VOICE_RESPONSE |
| Constructor Summary | |
|---|---|
HoldCmd(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. |
static CompassDirection |
extractCompassDirection(java.lang.String str)
return the CompassDirection in the str, or return null if not applicable |
static Distance |
extractDistance(java.lang.String str)
Return the Distance in the str, or return null if not applicable. |
static Radial |
extractRadial(java.lang.String str)
return the Radial in the str, or null if not applicable |
static Time |
extractTime(java.lang.String str)
return the Time in the str, or return null if not applicable |
static TurnDirection |
extractTurnDirection(java.lang.String str)
return the TurnDirection in the str, or return null if not applicable |
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 |
java.lang.String |
getVoiceResponse()
Returns the voice response of a command |
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 |
|---|
static final long serialVersionUID
public static final java.lang.String CVS_VERSION_ID
public static final Distance DEFAULT_DISTANCE
private java.lang.String voiceResponse
private final transient HoldingPattern holdingPattern
Deprecated on 05/30/08private Fix holdingFix
private java.lang.String holdingFixName
private Time legLength
private Distance legDistance
private CompassDirection compassDirection
private TurnDirection turnDirection
private Radial radialFromFix
| Constructor Detail |
|---|
public HoldCmd(java.lang.String cmd,
java.util.StringTokenizer st,
CommandLineSource source)
throws InvalidSyntaxException
cmd - the cmd wordst - the rest of the command line in tokenizer formatsource - the object that created the command
InvalidSyntaxException - Syntax for the command is invalid.| Method Detail |
|---|
private void readObject(java.io.ObjectInputStream in)
throws java.io.IOException,
java.lang.ClassNotFoundException
java.io.IOException
java.lang.ClassNotFoundExceptionpublic SpCmdType getSpCmdType()
getSpCmdType in interface HasSpCmd
public SpCommandResult execute(Aircraft ac,
java.util.List<SpCommand> cmdList)
execute in interface HasVoiceResponseexecute in class SpCommandac - The Aircraft the command is for, or null.cmdList - The list of simpilot commands.
public static Radial extractRadial(java.lang.String str)
public static Time extractTime(java.lang.String str)
public static Distance extractDistance(java.lang.String str)
public static TurnDirection extractTurnDirection(java.lang.String str)
public static CompassDirection extractCompassDirection(java.lang.String str)
public static java.lang.String getUsage()
public java.lang.String getVoiceResponse()
getVoiceResponse in interface HasVoiceResponse
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||