|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectch.tatool.core.element.AbstractListSelector
ch.tatool.core.element.IteratedListSelector
public class IteratedListSelector
Iterates through the list of elements, executing each them in order. By default each element is executed once, but this behavior can be overridden restart the iteration as many times as requested.
| Constructor Summary | |
|---|---|
IteratedListSelector()
|
|
IteratedListSelector(int numberOfIterations)
|
|
| Method Summary | |
|---|---|
protected boolean |
canCreateIterator()
Returns whether a new iterator can be created. |
protected boolean |
canExecuteNext()
Can a next element be executed. |
protected Iterator<Element> |
createIterator(ExecutionContext context)
Get the iterator to use for the iteration. |
int |
getNumIterations()
|
void |
initialize(Element element)
Initializes this scheduler. |
boolean |
selectNextElement(ExecutionContext context)
|
void |
setNumIterations(int numIterations)
|
| Methods inherited from class ch.tatool.core.element.AbstractListSelector |
|---|
getExecutionElement |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IteratedListSelector()
public IteratedListSelector(int numberOfIterations)
| Method Detail |
|---|
public void initialize(Element element)
initialize in interface Initializableinitialize in class AbstractListSelectorpublic boolean selectNextElement(ExecutionContext context)
protected boolean canCreateIterator()
protected boolean canExecuteNext()
protected Iterator<Element> createIterator(ExecutionContext context)
public int getNumIterations()
public void setNumIterations(int numIterations)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||