org.datamixer.functions
Class FunctionIterator

java.lang.Object
  extended byorg.datamixer.collections.DatamixerIterator
      extended byorg.datamixer.containers.CollectionContainerIterator
          extended byorg.datamixer.functions.FunctionIterator
All Implemented Interfaces:
DatamixerEventGenerator, java.util.Iterator

public class FunctionIterator
extends CollectionContainerIterator


Field Summary
protected  FunctionStrategy strategy_
          strategy
 
Fields inherited from class org.datamixer.containers.CollectionContainerIterator
ALL_DONE, ALL_DONE_STRING, ANY_DONE, ANY_DONE_STRING, current_, dataType_, dataTypeSet_, DONE_UNDEFINED, DONE_UNDEFINED_STRING, donePolicy_, elements_, iterators_, repeatAll_
 
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
FunctionIterator()
           
FunctionIterator(FunctionStrategy strategy)
           
 
Method Summary
protected  void doGenerate()
          Generates the next value.
protected  void doInitialize()
          Initialization.
 Value getArguments()
          Returns the current arguments.
 java.text.Format getFormat(java.lang.String pattern)
          Returns an appropriate Format object.
 FunctionStrategy getStrategy()
          Returns the current strategy.
 void setStrategy(FunctionStrategy value)
          Sets the current strategy.
 
Methods inherited from class org.datamixer.containers.CollectionContainerIterator
addElement, addElement, allDone, anyDone, checkCompatibility, dataTypeWeight, doContainerGenerate, doDone, doGetCurrentValue, doReset, findDataType, getDataType, getDonePolicy, getDonePolicyString, getDonePolicyString, getElement, getElements, getIterator, getIterators, getRepeatAll, maxDataType, setDataType, setDonePolicy, setDonePolicyString, setRepeatAll
 
Methods inherited from class org.datamixer.collections.DatamixerIterator
addDatamixerListener, doFireDatamixerEvent, fireDatamixerEvent, generate, getCollection, getContainer, getCurrent, getCurrentValue, getFormatPattern, getHasNext, getId, getListeners, getName, getNext, getNextValue, getPath, getRepeat, hasNext, initialize, next, remove, removeDatamixerListener, reset, setCollection, setContainer, setCurrentValue, setFormatPattern, setId, setName, setRepeat, toString, updateCurrentValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

strategy_

protected FunctionStrategy strategy_
strategy

Constructor Detail

FunctionIterator

public FunctionIterator()

FunctionIterator

public FunctionIterator(FunctionStrategy strategy)
Method Detail

getFormat

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

Overrides:
getFormat in class CollectionContainerIterator

doInitialize

protected void doInitialize()
                     throws DatamixerException
Description copied from class: CollectionContainerIterator
Initialization.

Overrides:
doInitialize in class CollectionContainerIterator
Throws:
DatamixerException

doGenerate

protected void doGenerate()
                   throws DatamixerException
Generates the next value.

Overrides:
doGenerate in class CollectionContainerIterator
Throws:
DatamixerException

getStrategy

public FunctionStrategy getStrategy()
                             throws DatamixerException
Returns the current strategy.

Returns:
the current strategy.
Throws:
DatamixerException

setStrategy

public void setStrategy(FunctionStrategy value)
Sets the current strategy.

Parameters:
value - the current strategy.

getArguments

public Value getArguments()
                   throws DatamixerException
Returns the current arguments.

Returns:
the current arguments.
Throws:
DatamixerException


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