Last update: 2011-06-23

org.proteios.core
Class DoubleParameterType

java.lang.Object
  extended by org.proteios.core.ParameterType<Double>
      extended by org.proteios.core.DoubleParameterType

public class DoubleParameterType
extends ParameterType<Double>

This class represent a parameter type that is a double. This type defines a lower limit and an upper limit for the range of allowed values.

Version:
2.0
Author:
Nicklas
Last modified
$Date: 2009-04-09 08:48:11 +0200 (Thu, 09 Apr 2009) $

Constructor Summary
DoubleParameterType()
          Create a new double parameter type, without any limits and allowing null values.
DoubleParameterType(Double lowerLimit, Double upperLimit, Double defaultValue, boolean notNull)
          Create a new double parameter type.
DoubleParameterType(Double lowerLimit, Double upperLimit, Double defaultValue, boolean notNull, int multiplicity, int width, int height, List<Double> items)
           
 
Method Summary
 Double getLowerLimit()
          Get the lowst valid value of the parameter.
 Double getUpperLimit()
          Get the highest valid value of the parameter.
 String toString()
           
 
Methods inherited from class org.proteios.core.ParameterType
getDefaultValue, getHeight, getItems, getMultiplicity, getNotNull, getParameterClass, getWidth, isEnumeration, validate, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DoubleParameterType

public DoubleParameterType()
Create a new double parameter type, without any limits and allowing null values.


DoubleParameterType

public DoubleParameterType(Double lowerLimit,
                           Double upperLimit,
                           Double defaultValue,
                           boolean notNull)
Create a new double parameter type.

Parameters:
lowerLimit - The lowest allowed value, or null to have no limit
upperLimit - The highest allowed value, or null to have no limit
notNull - FALSE if nulls values are allowed, TRUE otherwise

DoubleParameterType

public DoubleParameterType(Double lowerLimit,
                           Double upperLimit,
                           Double defaultValue,
                           boolean notNull,
                           int multiplicity,
                           int width,
                           int height,
                           List<Double> items)
Method Detail

toString

public String toString()
Overrides:
toString in class Object

getLowerLimit

public Double getLowerLimit()
Get the lowst valid value of the parameter.

Returns:
Lowst valid value or null if none is set.

getUpperLimit

public Double getUpperLimit()
Get the highest valid value of the parameter.

Returns:
Highest valid value or null if none is set.

Last update: 2011-06-23