org.nlogo.agent
Class ConstantSliderConstraint

java.lang.Object
  extended by org.nlogo.agent.SliderConstraint
      extended by org.nlogo.agent.ConstantSliderConstraint
All Implemented Interfaces:
ValueConstraint

public class ConstantSliderConstraint
extends SliderConstraint

Constraint suitable for Slider variables. The various limits on the Slider value can be specified using a NetLogo reporter.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.nlogo.agent.SliderConstraint
SliderConstraint.ConstraintCompilerException, SliderConstraint.RuntimeConstraintException
 
Nested classes/interfaces inherited from interface org.nlogo.agent.ValueConstraint
ValueConstraint.Violation
 
Constructor Summary
ConstantSliderConstraint(Double min, Double max, Double inc)
           
 
Method Summary
 Double increment()
           
 void increment(Double val)
           
 Double maximum()
           
 void maximum(Double val)
           
 Double minimum()
           
 void minimum(Double val)
           
 
Methods inherited from class org.nlogo.agent.SliderConstraint
assertConstraint, coerceValue, defaultValue, defaultValue, effectiveMaximum, getPrecision, makeSliderConstraint
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConstantSliderConstraint

public ConstantSliderConstraint(Double min,
                                Double max,
                                Double inc)
Method Detail

minimum

public Double minimum()
Specified by:
minimum in class SliderConstraint

maximum

public Double maximum()
Specified by:
maximum in class SliderConstraint

increment

public Double increment()
Specified by:
increment in class SliderConstraint

minimum

public void minimum(Double val)

maximum

public void maximum(Double val)

increment

public void increment(Double val)