|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfaa.tg.nas.communication.Frequency
public class Frequency
Frequency is a class to help define frequencies as used for voice communications.See the source: Frequency.java
| Field Summary | |
|---|---|
static java.lang.String |
CVS_VERSION_ID
The CVS Version ID. |
static java.lang.String |
ENROUTE
|
private static java.util.Map<java.lang.String,Frequency> |
existingFreqs
|
private java.lang.Integer |
frequency
|
private java.lang.String |
frequencyAirspaceType
|
(package private) static long |
serialVersionUID
|
static java.lang.String |
TERMINAL
|
static Frequency |
ZERO
|
| Constructor Summary | |
|---|---|
Frequency(java.lang.String frequencyStr)
Constructor for Frequency: adds constructed Frequency to hash list to allow getInstance() to get a previously created Frequency object. |
|
| Method Summary | |
|---|---|
private static java.lang.String |
addZerosToEnd(java.lang.String frequency)
This method adds zeros onto the end of a frequency string without a period. |
Frequency |
clone()
Override protected method clone() in Object. |
boolean |
equals(java.lang.Object otherFrequency)
Determines if the given frequency is equal to this frequency. |
java.lang.String |
getAirspaceType()
Get Airspace Type of a frequency. |
static Frequency |
getInstance(java.lang.String frequencyStr)
Returns the previously constructed Frequency specified by the string, or returns a newly constructed Frequency. |
java.lang.String |
getName()
Returns the frequency with a decimal to use as the Frequency name. |
int |
hashCode()
|
private static java.lang.String |
insertPeriod(java.lang.String frequency)
This method inserts a period into the frequency. |
int |
intValue()
Returns the frequency as an integer. |
static void |
main(java.lang.String[] args)
Main method for testing purposes. |
private static java.lang.String |
removePeriod(java.lang.String frequency)
This method removes a period from the frequency if there is one |
void |
setAirspaceType(java.lang.String frequencyAirspaceType)
This method sets the Airspace Type - Enroute or Terminal. |
static java.lang.String |
standardizeFreqStr(java.lang.String frequencyStr)
Standardizes Frequency string to a six digit, no-decimal format. |
java.lang.String |
toDetailString()
Returns the frequency and detail info (if any) as a string. |
java.lang.String |
toString()
Returns the frequency as a string. |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
static final long serialVersionUID
public static final java.lang.String CVS_VERSION_ID
private java.lang.Integer frequency
private java.lang.String frequencyAirspaceType
public static final java.lang.String TERMINAL
public static final java.lang.String ENROUTE
private static java.util.Map<java.lang.String,Frequency> existingFreqs
public static final Frequency ZERO
| Constructor Detail |
|---|
public Frequency(java.lang.String frequencyStr)
frequencyStr - Frequency as a numerical String.| Method Detail |
|---|
public static Frequency getInstance(java.lang.String frequencyStr)
frequencyStr - Frequency as a String.public Frequency clone()
clone in interface DraStorableclone in class java.lang.Objectpublic boolean equals(java.lang.Object otherFrequency)
equals in class java.lang.ObjectotherFrequency - Frequency to compare to this frequency.
public int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String getName()
getName in interface DraStorablegetName in interface ManagedObjectpublic int intValue()
public static java.lang.String standardizeFreqStr(java.lang.String frequencyStr)
frequencyStr - Frequency as a numerical String in standard format.private static java.lang.String removePeriod(java.lang.String frequency)
frequency - The Frequency as a string to take the period out of.
private static java.lang.String insertPeriod(java.lang.String frequency)
frequency - The Frequency as a string to period into.
private static java.lang.String addZerosToEnd(java.lang.String frequency)
frequency - The Frequency as a string to add zeros to the end of.
public void setAirspaceType(java.lang.String frequencyAirspaceType)
frequencyAirspaceType - Type of airspace.public java.lang.String getAirspaceType()
public java.lang.String toDetailString()
public java.lang.String toString()
toString in class java.lang.Objectpublic static void main(java.lang.String[] args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||