public enum Parameters extends java.lang.Enum<Parameters>
Enum Constant and Description |
---|
ATAN_MATH |
ENABLE_OPTION |
FIR_SIZE |
FREQUENCY |
MODULATION_MODE |
OVERSAMPLING |
PPM_ERROR |
RESAMPLE_RATE |
SAMPLE_RATE |
SCANNABLE_FREQUENCY |
SQUELCH_DELAY |
SQUELCH_LEVEL |
TUNER_GAIN |
VOLUME |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_SPECIFIER
This parameter to a command indicates that the default action is to be used
|
private java.lang.String |
FUNCTION
Each enum
|
private java.lang.Object |
uiElement
Associated ui element with parameter
|
private java.lang.Class |
uiElementSpecificType
The ui elements type
|
private java.util.List<java.lang.String> |
values
Array of Strings for each enum to hold their params
|
Modifier and Type | Method and Description |
---|---|
void |
append(java.lang.String val)
Appends the value to that enums list
|
java.lang.String |
getByIndex(int idx)
Return the value at this index
|
java.util.List<java.lang.String> |
getDameonCallableStrings()
Makes a new list of daemon formatted strings to send to the server
|
java.lang.String |
getFunction()
Returns the current parameter
|
protected int |
getIndex(android.widget.Spinner spinner,
java.lang.String toLookUp)
Gets the index of the string in the spinner if it exists
|
java.lang.Object |
getUiElement()
Get uiElement for Parameter
|
java.util.List<java.lang.String> |
getValues()
Get all values of arraylist
|
boolean |
isIndexValid(int idx)
Checks if the index is valid
|
boolean |
remove(java.lang.String val)
Removes val from list of values for Parameter
|
boolean |
replaceIndex(int idx,
java.lang.String val)
Replaces current index with val
|
void |
resetValues()
Clear all values for this parameter
|
void |
setUiMembers(java.lang.Object uiElement,
java.lang.Class uiElementSpecificType)
Associates ui member with this parameter
|
void |
updateField(android.app.Activity mainActivity,
java.lang.String newVal)
Updates the associated parameter uo field on the UI thread, used in ResponseListener.
|
static Parameters |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Parameters[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Parameters FREQUENCY
public static final Parameters SQUELCH_LEVEL
public static final Parameters SQUELCH_DELAY
public static final Parameters TUNER_GAIN
public static final Parameters MODULATION_MODE
public static final Parameters OVERSAMPLING
public static final Parameters ENABLE_OPTION
public static final Parameters SCANNABLE_FREQUENCY
public static final Parameters PPM_ERROR
public static final Parameters SAMPLE_RATE
public static final Parameters RESAMPLE_RATE
public static final Parameters ATAN_MATH
public static final Parameters FIR_SIZE
public static final Parameters VOLUME
public static final java.lang.String DEFAULT_SPECIFIER
private final java.lang.String FUNCTION
private java.util.List<java.lang.String> values
private java.lang.Object uiElement
private java.lang.Class uiElementSpecificType
public static Parameters[] values()
for (Parameters c : Parameters.values()) System.out.println(c);
public static Parameters valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic void append(java.lang.String val)
val
- public void setUiMembers(java.lang.Object uiElement, java.lang.Class uiElementSpecificType)
uiElement
- uiElementSpecificType
- protected int getIndex(android.widget.Spinner spinner, java.lang.String toLookUp)
spinner
- - the spinner to checktoLookUp
- - the string to look for in the spinnerpublic void updateField(android.app.Activity mainActivity, java.lang.String newVal)
mainActivity
- - main activitynewVal
- - the new value of the ui thread to be set to.public java.lang.Object getUiElement()
public boolean remove(java.lang.String val)
val
- - value to be removedpublic void resetValues()
public java.lang.String getByIndex(int idx)
idx
- - index to lookup value atpublic boolean isIndexValid(int idx)
idx
- - index to checkpublic boolean replaceIndex(int idx, java.lang.String val)
idx
- - index to replaceval
- - value to replace in indexpublic java.util.List<java.lang.String> getValues()
public java.util.List<java.lang.String> getDameonCallableStrings()
public java.lang.String getFunction()