org.jscience.util
Class BoundedNumberStepper

java.lang.Object
  extended by org.jscience.util.NumberStepper
      extended by org.jscience.util.BoundedNumberStepper
All Implemented Interfaces:
java.util.Iterator
Direct Known Subclasses:
CircularNumberStepper

public class BoundedNumberStepper
extends NumberStepper

A class representing a way to iterate numbers.


Constructor Summary
BoundedNumberStepper(double beginStep, double endStep, double step)
          Creates a new BoundedNumberStepper object.
 
Method Summary
 double getEndStep()
          DOCUMENT ME!
 boolean hasNext()
          DOCUMENT ME!
 java.lang.Object next()
          DOCUMENT ME!
 void setEndStep(double endStep)
          DOCUMENT ME!
 
Methods inherited from class org.jscience.util.NumberStepper
getBeginStep, getStep, getValue, remove, reset, setBeginStep, setStep, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BoundedNumberStepper

public BoundedNumberStepper(double beginStep,
                            double endStep,
                            double step)
Creates a new BoundedNumberStepper object.

Parameters:
beginStep - DOCUMENT ME!
endStep - DOCUMENT ME!
step - DOCUMENT ME!
Method Detail

getEndStep

public double getEndStep()
DOCUMENT ME!

Returns:
DOCUMENT ME!

setEndStep

public void setEndStep(double endStep)
DOCUMENT ME!

Parameters:
endStep - DOCUMENT ME!

hasNext

public boolean hasNext()
DOCUMENT ME!

Specified by:
hasNext in interface java.util.Iterator
Overrides:
hasNext in class NumberStepper
Returns:
DOCUMENT ME!

next

public java.lang.Object next()
DOCUMENT ME!

Specified by:
next in interface java.util.Iterator
Overrides:
next in class NumberStepper
Returns:
DOCUMENT ME!
Throws:
java.util.NoSuchElementException - DOCUMENT ME!