public class ControllerParameter
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
PARAM_CLASS_ARRAY
An array of values, can be 1 dimension or 2
|
static java.lang.String |
PARAM_CLASS_BITS
Parameter to be set from a discrete set of provided options
|
static java.lang.String |
PARAM_CLASS_ODD_ARRAY |
static java.lang.String |
PARAM_CLASS_SCALAR
a numeric value that can be set to anything between min and max
|
static java.lang.String |
PARAM_CLASS_STRING
A String parameter held as an array of byte in ascii
|
| Constructor and Description |
|---|
ControllerParameter()
Creates a new instance of ControllerParameter
|
| Modifier and Type | Method and Description |
|---|---|
double[][] |
getArrayValues()
returns the values of this Parameter.
|
int |
getDecimalPlaces()
The number of digits to the right of the decimal point for this
Parameter.
|
double |
getMax()
Maximum allowed value for this parameter to element of this Parameter.
|
double |
getMin()
minimum allowed value for this parameter to element of this Parameter.
|
java.util.ArrayList<java.lang.String> |
getOptionDescriptions()
All valid String Options for a bit selection.
|
java.lang.String |
getParamClass()
returns the parameter class for this Parameter as defined in the
ecu configuration or ini file.
|
double |
getScalarValue()
the value for a scalar parameter.
|
java.awt.Dimension |
getShape()
returns the shape of an array.
|
java.lang.String |
getStringValue()
Gets the correct bit value to this String.
|
java.lang.String |
getUnits()
Units this number is represented in.
|
void |
setArrayValues(double[][] arrayValues)
returns the values of this Parameter.
|
void |
setDecimalPlaces(int decimalPlaces)
The number of digits to the right of the decimal point for this
Parameter.
|
void |
setMax(double max)
Maximum allowed value for this parameter to element of this Parameter.
|
void |
setMin(double min)
minimum allowed value for this parameter to element of this Parameter.
|
void |
setOptionDescriptions(java.util.ArrayList optionDescriptions)
Sets valid String Options for a bit selection.
|
void |
setParamClass(java.lang.String paramClass)
the parameter class for this Parameter as defined in the
ecu configuration or ini file.
|
void |
setScalarValue(double scalar)
the value for a scalar parameter.
|
void |
setShape(java.awt.Dimension shape)
The shape of an array.
|
void |
setStringValue(java.lang.String stringValue)
Sets the correct bit value to this String.
|
void |
setUnits(java.lang.String units)
Units this number is represented in.
|
public static final java.lang.String PARAM_CLASS_BITS
public static final java.lang.String PARAM_CLASS_SCALAR
public static final java.lang.String PARAM_CLASS_ARRAY
public static final java.lang.String PARAM_CLASS_STRING
public static final java.lang.String PARAM_CLASS_ODD_ARRAY
public ControllerParameter()
public java.lang.String getParamClass()
public void setParamClass(java.lang.String paramClass)
paramClass - - One of the above optionspublic int getDecimalPlaces()
public void setDecimalPlaces(int decimalPlaces)
decimalPlaces - public java.awt.Dimension getShape()
public void setShape(java.awt.Dimension shape)
shape - public java.lang.String getUnits()
public void setUnits(java.lang.String units)
public double getMin()
public void setMin(double min)
public double getMax()
public void setMax(double max)
public java.util.ArrayList<java.lang.String> getOptionDescriptions()
public void setOptionDescriptions(java.util.ArrayList optionDescriptions)
getOptionDescriptions() ControllerParameterServer in the Application public double[][] getArrayValues()
public void setScalarValue(double scalar)
public double getScalarValue()
public void setArrayValues(double[][] arrayValues)
getShape() public java.lang.String getStringValue()
getOptionDescriptions() public void setStringValue(java.lang.String stringValue)
getOptionDescriptions()