|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectuavsim.datatypes.A_Frequency<NDBFrequency>
uavsim.datatypes.NDBFrequency
public class NDBFrequency
Defines an NDB frequency in terms of major (KHz) components between 190 and 535 with a step of 1.
| Field Summary | |
|---|---|
private static int |
FREQUENCY_MAJOR_MAX
the largest major frequency |
private static int |
FREQUENCY_MAJOR_MIN
the smallest major frequency |
private static int |
FREQUENCY_MAJOR_STEP
the change step in major frequency |
private static int |
FREQUENCY_MINOR_MAX
the largest minor frequency |
private static int |
FREQUENCY_MINOR_MIN
the smallest minor frequency |
private static int |
FREQUENCY_MINOR_STEP
the change step in minor frequency |
| Fields inherited from class uavsim.datatypes.A_Frequency |
|---|
_frequencyMajor, _frequencyMinor |
| Constructor Summary | |
|---|---|
NDBFrequency()
Creates an absolute frequency object with the default 190. |
|
NDBFrequency(int valueMajor)
Creates an absolute frequency object. |
|
NDBFrequency(int valueMajor,
boolean isRelative)
Creates a relative frequency object. |
|
| Method Summary | |
|---|---|
NDBFrequency |
add_(NDBFrequency value)
Adds another unit to this one. |
NDBFrequency |
subtract_(NDBFrequency value)
Subtract another unit from this one. |
| Methods inherited from class uavsim.datatypes.A_Frequency |
|---|
compareTo, formatString, getFrequencyMajor, getFrequencyMinor, getValue_, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private static final int FREQUENCY_MAJOR_MAX
private static final int FREQUENCY_MAJOR_MIN
private static final int FREQUENCY_MAJOR_STEP
private static final int FREQUENCY_MINOR_MAX
private static final int FREQUENCY_MINOR_MIN
private static final int FREQUENCY_MINOR_STEP
| Constructor Detail |
|---|
public NDBFrequency()
public NDBFrequency(int valueMajor)
valueMajor - - the major value (KHz)
public NDBFrequency(int valueMajor,
boolean isRelative)
valueMajor - - the major value (KHz)isRelative - - ignored; assumed always true| Method Detail |
|---|
public NDBFrequency add_(NDBFrequency value)
value - - the unit
public NDBFrequency subtract_(NDBFrequency value)
value - - the unit
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||