es.unex.sextante.additionalInfo
Class AdditionalInfoNumericalValue

java.lang.Object
  extended by es.unex.sextante.additionalInfo.AdditionalInfoNumericalValue
All Implemented Interfaces:
AdditionalInfo

public class AdditionalInfoNumericalValue
extends java.lang.Object
implements AdditionalInfo

Additional information for a parameter representing a numerical value

Author:
volaya

Field Summary
static int NUMERICAL_VALUE_DOUBLE
           
static int NUMERICAL_VALUE_INTEGER
           
 
Constructor Summary
AdditionalInfoNumericalValue(int iType, double dDefaultValue, double dMinValue, double dMaxValue)
          Constructor
 
Method Summary
 double getDefaultValue()
          Returns the default value
 double getMaxValue()
          Returns the maximum value allowed for this parameter
 double getMinValue()
          Returns the maximum value allowed for this parameter
 java.lang.String getTextDescription()
           
 int getType()
          Returns the type of numerical value (integer or double)
 void setDefaultValue(double defaultValue)
          Sets the default value
 void setMaxValue(double dMaxValue)
          Sets the maximum value allowed for this parameter
 void setMinValue(double dMinValue)
          Sets the minimum value allowed for this parameter
 void setType(int iType)
          Sets the type of numerical value (integer or double)
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NUMERICAL_VALUE_INTEGER

public static final int NUMERICAL_VALUE_INTEGER
See Also:
Constant Field Values

NUMERICAL_VALUE_DOUBLE

public static final int NUMERICAL_VALUE_DOUBLE
See Also:
Constant Field Values
Constructor Detail

AdditionalInfoNumericalValue

public AdditionalInfoNumericalValue(int iType,
                                    double dDefaultValue,
                                    double dMinValue,
                                    double dMaxValue)
Constructor

Parameters:
iType - the type of numerical value(integer or double)
dDefaultValue - the default value
dMinValue - the minimum value allowed for this parameter
dMaxValue - the maximum value allowed for this parameter
Method Detail

getMaxValue

public double getMaxValue()
Returns the maximum value allowed for this parameter

Returns:
the maximum value allowed for this parameter

setMaxValue

public void setMaxValue(double dMaxValue)
Sets the maximum value allowed for this parameter

Parameters:
dMaxValue - the maximum value allowed for this parameter

getMinValue

public double getMinValue()
Returns the maximum value allowed for this parameter

Returns:
the maximum value allowed for this parameter

setMinValue

public void setMinValue(double dMinValue)
Sets the minimum value allowed for this parameter

Parameters:
dMinValue - the minimum value allowed for this parameter

getType

public int getType()
Returns the type of numerical value (integer or double)

Returns:
the type of numerical value (integer or double)

setType

public void setType(int iType)
Sets the type of numerical value (integer or double)

Parameters:
iType - the type of numerical value (integer or double)

getDefaultValue

public double getDefaultValue()
Returns the default value

Returns:
the default value

setDefaultValue

public void setDefaultValue(double defaultValue)
Sets the default value

Parameters:
defaultValue - the default value

getTextDescription

public java.lang.String getTextDescription()
Specified by:
getTextDescription in interface AdditionalInfo