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.


Variable Index

 o defaultValue
The default value of a parameter.
 o maxValue
The maximum value of a parameter.
 o minValue
The minimum value of a parameter.

Constructor Index

 o IntegerParameterType()

Method Index

 o getDefaultValue()
 o getMaxValue()
 o getMinValue()
 o getRange()
Get the range of this integer parameter.
 o inRange(String)
Check whether valueString is within the range of the parameter.
 o string2Parameter(String[])
Convert the parameter strings of a Module Description File to its integer parameter values.

Variables

 o defaultValue
 private int defaultValue
The default value of a parameter.

 o minValue
 private int minValue
The minimum value of a parameter.

 o maxValue
 private int maxValue
The maximum value of a parameter.

Constructors

 o IntegerParameterType
 public IntegerParameterType()

Methods

 o getDefaultValue
 String getDefaultValue()
Overrides:
getDefaultValue in class ParameterType
 o getMinValue
 String getMinValue()
Overrides:
getMinValue in class ParameterType
 o getMaxValue
 String getMaxValue()
Overrides:
getMaxValue in class ParameterType
 o 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
 o 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
 o 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