Package repast.simphony.parameter
Class SteppedRange
- java.lang.Object
-
- repast.simphony.parameter.SteppedRange
-
public class SteppedRange extends Object
Implements a range with step information for a GUI.- Author:
- nick
-
-
Constructor Summary
Constructors Constructor Description SteppedRange(double min, double max, double step)
Creates a SteppedRange with the specified min, max and step values.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
contains(double val)
Gets whether or not the specified value is within the range ( >= min && <= max).boolean
equals(Object obj)
double
getMax()
double
getMin()
double
getStep()
int
hashCode()
-
-
-
Method Detail
-
contains
public boolean contains(double val)
Gets whether or not the specified value is within the range ( >= min && <= max).- Parameters:
val
-- Returns:
- true if the specified val is within the range, otherwise false.
-
getMin
public double getMin()
-
getMax
public double getMax()
-
getStep
public double getStep()
-
-