|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.datamixer.collections.DatamixerIterator
org.datamixer.containers.SequenceIterator
org.datamixer.functions.FunctionIterator
public class FunctionIterator
| Field Summary | |
|---|---|
protected Value[] |
params_
for each generation, function parameters are iterator values |
protected FunctionStrategy |
strategy_
strategy |
| Fields inherited from class org.datamixer.containers.SequenceIterator |
|---|
current_, currentIterator_, currentIteratorIndex_, elements_, iterators_, repeatAll_, TRAVERSAL_BREADTH, TRAVERSAL_BREADTH_STRING, TRAVERSAL_DEPTH, TRAVERSAL_DEPTH_STRING, TRAVERSAL_UNDEFINED, TRAVERSAL_UNDEFINED_STRING, traversalOrder_, wasReset_ |
| Fields inherited from class org.datamixer.collections.DatamixerIterator |
|---|
collection_, dataType_, dataTypeSet_, debugEnabled_, done_, doneChecked_, format_, formatPattern_, id_, infoEnabled_, initialized_, iterations_, limit_, limitSet_, logger_, repeat_, repeatSet_ |
| Constructor Summary | |
|---|---|
FunctionIterator()
|
|
FunctionIterator(FunctionStrategy strategy)
|
|
| Method Summary | |
|---|---|
static void |
checkCompatibility(int type1,
int type2)
Checks compatibility between two datatypes. |
static int |
dataTypeWeight(int type)
Returns the datatype with maximum precision for type1 and
type2. |
protected boolean |
doDone()
Gets the next value from each iterator, returns true if any are done. |
protected void |
doGenerate()
Generates the next value. |
protected void |
doInitialize()
Initialization. |
protected int |
findDataType()
Returns the datatype. |
java.text.Format |
getFormat(java.lang.String pattern)
Returns an appropriate Format object. |
Value[] |
getParams()
Sets the current strategy. |
FunctionStrategy |
getStrategy()
Returns the current strategy. |
static int |
maxDataType(int type1,
int type2)
Returns the datatype with maximum precision for type1 and
type2. |
void |
setStrategy(FunctionStrategy value)
Sets the current strategy. |
| Methods inherited from class org.datamixer.containers.SequenceIterator |
|---|
addElement, addElement, doGetCurrentValue, doReset, getElement, getElements, getIterator, getIterators, getRepeatAll, getTraversalOrder, setRepeatAll, setTraversalOrder, traversalOrderFromString, traversalOrderToString |
| Methods inherited from class org.datamixer.collections.DatamixerIterator |
|---|
generate, getCollection, getCurrent, getCurrentValue, getDataType, getFormatPattern, getHasNext, getId, getIterations, getLimit, getNext, getNextValue, getRepeat, hasNext, initialize, next, remove, reset, setCollection, setCurrentValue, setDataType, setFormatPattern, setId, setLimit, setRepeat, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected FunctionStrategy strategy_
protected Value[] params_
| Constructor Detail |
|---|
public FunctionIterator()
public FunctionIterator(FunctionStrategy strategy)
| Method Detail |
|---|
public java.text.Format getFormat(java.lang.String pattern)
getFormat in class SequenceIterator
protected void doInitialize()
throws DatamixerException
SequenceIterator
doInitialize in class SequenceIteratorDatamixerException
protected boolean doDone()
throws DatamixerException
doDone in class SequenceIteratorDatamixerException
protected void doGenerate()
throws DatamixerException
doGenerate in class SequenceIteratorDatamixerException
public FunctionStrategy getStrategy()
throws DatamixerException
DatamixerExceptionpublic void setStrategy(FunctionStrategy value)
value - the current strategy.public Value[] getParams()
value - the current strategy.
protected int findDataType()
throws DatamixerException
DatamixerException - if children have incompatible types.
public static int maxDataType(int type1,
int type2)
throws DatamixerException
type1 and
type2.
DatamixerException - if types are not supported or incompatible.
public static void checkCompatibility(int type1,
int type2)
throws DatamixerException
DatamixerException - if types are incompatible.
public static int dataTypeWeight(int type)
throws DatamixerException
type1 and
type2.
DatamixerException - if type is not supported.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||