Package repast.simphony.parameter
Class SteppedRange
java.lang.Object
repast.simphony.parameter.SteppedRange
Implements a range with step information for a GUI.
- Author:
- nick
-
Constructor Summary
ConstructorDescriptionSteppedRange
(double min, double max, double step) Creates a SteppedRange with the specified min, max and step values. -
Method Summary
-
Constructor Details
-
SteppedRange
public SteppedRange(double min, double max, double step) Creates a SteppedRange with the specified min, max and step values.- Parameters:
min
-max
-step
-
-
-
Method Details
-
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() -
equals
-
hashCode
public int hashCode()
-