Class DoubleSteppedSetter

java.lang.Object
repast.simphony.parameter.DoubleSteppedSetter
All Implemented Interfaces:
OptimizableParameterSetter, ParameterSetter

public class DoubleSteppedSetter extends Object implements OptimizableParameterSetter
This ParameterSetter will run through a space of numbers. The space is from the given base value through the given maximum value (including both: [base, max]). This space is traversed using the given step value.
Author:
Jerry Vos
  • Constructor Details

    • DoubleSteppedSetter

      public DoubleSteppedSetter(String parameterName, double base, double max, double step)
      Constructs this with the given base value, step size, and maximum value. This is guaranteed to produce Math.rint((max - base) / step) number of steps.
      Parameters:
      parameterName - the name of the parameter
      base - the beginning value
      max - the maximum value (inclusive)
      step - the step size
  • Method Details