org.jscience.util
Class NumberStepper

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

public class NumberStepper
extends java.lang.Object
implements java.util.Iterator

A class representing a way to iterate numbers.


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

Constructor Detail

NumberStepper

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

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

getBeginStep

public double getBeginStep()
DOCUMENT ME!

Returns:
DOCUMENT ME!

setBeginStep

protected void setBeginStep(double beginStep)
DOCUMENT ME!

Parameters:
beginStep - DOCUMENT ME!

getValue

public double getValue()
DOCUMENT ME!

Returns:
DOCUMENT ME!

setValue

protected void setValue(double value)
DOCUMENT ME!

Parameters:
value - DOCUMENT ME!

getStep

public double getStep()
DOCUMENT ME!

Returns:
DOCUMENT ME!

setStep

protected void setStep(double step)
DOCUMENT ME!

Parameters:
step - DOCUMENT ME!

reset

public void reset()
DOCUMENT ME!


hasNext

public boolean hasNext()
DOCUMENT ME!

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

next

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

Specified by:
next in interface java.util.Iterator
Returns:
DOCUMENT ME!

remove

public void remove()
DOCUMENT ME!

Specified by:
remove in interface java.util.Iterator
Throws:
java.lang.UnsupportedOperationException - DOCUMENT ME!