|
||||||||||
| 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.TimerListSelector
public class TimerListSelector
Iterates through the list of elements, executing each them in order. A general timer cancels the execution of the current element.
| Constructor Summary | |
|---|---|
TimerListSelector()
|
|
TimerListSelector(int timeoutSeconds)
|
|
| 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. |
long |
getTimeout()
|
void |
initialize(Element element)
Initializes this scheduler. |
boolean |
selectNextElement(ExecutionContext context)
|
void |
setTimeout(long timeout)
|
void |
startExecution(ExecutionContext context)
|
void |
stopExecution(ExecutionContext context)
|
void |
stopTimer()
|
| 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 TimerListSelector()
public TimerListSelector(int timeoutSeconds)
| Method Detail |
|---|
public void initialize(Element element)
initialize in interface Initializableinitialize in class AbstractListSelectorpublic boolean selectNextElement(ExecutionContext context)
selectNextElement in interface ElementSelectorprotected boolean canCreateIterator()
protected boolean canExecuteNext()
protected Iterator<Element> createIterator(ExecutionContext context)
public long getTimeout()
public void setTimeout(long timeout)
public void startExecution(ExecutionContext context)
startExecution in interface ExecutionStartHandlerpublic void stopExecution(ExecutionContext context)
stopExecution in interface ExecutionStartHandlerpublic void stopTimer()
stopTimer in interface ExecutionStartHandler
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||