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

    Modifier and Type
    Method
    Description
    boolean
    contains(double val)
    Gets whether or not the specified value is within the range ( >= min && <= max).
    boolean
     
    double
     
    double
     
    double
     
    int
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • 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

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object