All Packages Class Hierarchy This Package Previous Next Index
Class parameter.IntegerParameterType
java.lang.Object
|
+----parameter.ParameterType
|
+----parameter.IntegerParameterType
- public class IntegerParameterType
- extends ParameterType
IntegerParameterType is used to store information describing
an integer parameter.
It contains the default value, the minimum value and the maximum
value of a parameter. These values are read from the Module
Description File and can not be changed within the framework.
-
defaultValue
- The default value of a parameter.
-
maxValue
- The maximum value of a parameter.
-
minValue
- The minimum value of a parameter.
-
IntegerParameterType()
-
-
getDefaultValue()
-
-
getMaxValue()
-
-
getMinValue()
-
-
getRange()
- Get the range of this integer parameter.
-
inRange(String)
- Check whether valueString is within the range of the parameter.
-
string2Parameter(String[])
- Convert the parameter strings of a Module Description File to
its integer parameter values.
defaultValue
private int defaultValue
- The default value of a parameter.
minValue
private int minValue
- The minimum value of a parameter.
maxValue
private int maxValue
- The maximum value of a parameter.
IntegerParameterType
public IntegerParameterType()
getDefaultValue
String getDefaultValue()
- Overrides:
- getDefaultValue in class ParameterType
getMinValue
String getMinValue()
- Overrides:
- getMinValue in class ParameterType
getMaxValue
String getMaxValue()
- Overrides:
- getMaxValue in class ParameterType
getRange
String getRange()
- Get the range of this integer parameter. If no upper xor lower value is
defined in the MDF then the maximum value is considered (either
positive or negative.
- Overrides:
- getRange in class ParameterType
string2Parameter
public void string2Parameter(String cleanLines[])
- Convert the parameter strings of a Module Description File to
its integer parameter values.
The parameter name is converted in its super class
ParameterType. The other values (default, min. & max.) are
converted in this method.
All these values are optional but all values must be integers.
Errors will occur when the default value is not within range,
or when the minimum value is bigger than the maximum value.
- Overrides:
- string2Parameter in class ParameterType
inRange
boolean inRange(String valueString)
- Check whether valueString is within the range of the parameter.
If the minimum and/or maximum value of a parameter are specified
and the valueString is within the range inRange returns 'true'.
- Overrides:
- inRange in class ParameterType
All Packages Class Hierarchy This Package Previous Next Index