org.datamixer.collections
Class DoublesIterator

java.lang.Object
  extended byorg.datamixer.collections.DatamixerIterator
      extended byorg.datamixer.collections.SyntheticIterator
          extended byorg.datamixer.collections.DoublesIterator
All Implemented Interfaces:
DatamixerEventGenerator, java.util.Iterator

public class DoublesIterator
extends SyntheticIterator

Iterate through doubles starting at first_, generating by increment_, until the current value is greater than or equal to last_.


Field Summary
protected  double current_
           
protected  Doubles doubles_
           
protected  double last_
           
 
Fields inherited from class org.datamixer.collections.SyntheticIterator
firstClosed_, lastClosed_, wasReset_
 
Fields inherited from class org.datamixer.collections.DatamixerIterator
collection_, debugEnabled_, done_, doneChecked_, doneListeners_, format_, formatPattern_, id_, infoEnabled_, initialized_, logger_, name_, nextListeners_, path_, repeat_, repeatSet_
 
Constructor Summary
DoublesIterator()
           
 
Method Summary
protected  boolean doDone()
          Returns false, always.
protected  void doGenerate()
          Generate the next element in the collection.
protected  Value doGetCurrentValue()
          Returns the current value.
protected  void doInitialize()
          Initialization.
protected  void doReset()
          Resets the iterator to an initial state.
 java.text.Format getFormat(java.lang.String pattern)
          Returns an appropriate Format object.
 
Methods inherited from class org.datamixer.collections.SyntheticIterator
toString
 
Methods inherited from class org.datamixer.collections.DatamixerIterator
addDatamixerListener, doFireDatamixerEvent, fireDatamixerEvent, generate, getCollection, getContainer, getCurrent, getCurrentValue, getDataType, getFormatPattern, getHasNext, getId, getListeners, getName, getNext, getNextValue, getPath, getRepeat, hasNext, initialize, next, remove, removeDatamixerListener, reset, setCollection, setContainer, setCurrentValue, setDataType, setFormatPattern, setId, setName, setRepeat, updateCurrentValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

doubles_

protected Doubles doubles_

current_

protected double current_

last_

protected double last_
Constructor Detail

DoublesIterator

public DoublesIterator()
Method Detail

doGetCurrentValue

protected Value doGetCurrentValue()
Returns the current value.

Specified by:
doGetCurrentValue in class DatamixerIterator
Returns:
the current value.

getFormat

public java.text.Format getFormat(java.lang.String pattern)
Returns an appropriate Format object.

Overrides:
getFormat in class DatamixerIterator

doInitialize

protected void doInitialize()
                     throws DatamixerException
Initialization.

Overrides:
doInitialize in class SyntheticIterator
Throws:
DatamixerException

doDone

protected boolean doDone()
                  throws DatamixerException
Description copied from class: DatamixerIterator
Returns false, always.

Overrides:
doDone in class DatamixerIterator
Throws:
DatamixerException

doGenerate

protected void doGenerate()
                   throws DatamixerException
Description copied from class: DatamixerIterator
Generate the next element in the collection.

Overrides:
doGenerate in class DatamixerIterator
Throws:
DatamixerException

doReset

protected void doReset()
                throws DatamixerException
Resets the iterator to an initial state.

Overrides:
doReset in class SyntheticIterator
Throws:
DatamixerException


Copyright © 2004-2006 datamixer.org. All Rights Reserved.