ch.tatool.core.element
Class TemporalListSelector

java.lang.Object
  extended by ch.tatool.core.element.AbstractListSelector
      extended by ch.tatool.core.element.IteratedListSelector
          extended by ch.tatool.core.element.TemporalListSelector
All Implemented Interfaces:
ElementSelector, Initializable

public class TemporalListSelector
extends IteratedListSelector
implements Initializable

Iterates through the list of elements, executing each element in order until timeout.

Author:
Andre Locher

Constructor Summary
TemporalListSelector()
           
 
Method Summary
protected  boolean canCreateIterator()
          Returns true as we we are not iterations bound.
protected  boolean canExecuteNext()
          Can a next element be executed.
 long getTimeout()
           
 void initialize(Element element)
          Initializes this scheduler.
 void setTimeout(long timeout)
           
 
Methods inherited from class ch.tatool.core.element.IteratedListSelector
createIterator, getNumIterations, selectNextElement, setNumIterations
 
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

TemporalListSelector

public TemporalListSelector()
Method Detail

initialize

public void initialize(Element element)
Description copied from class: IteratedListSelector
Initializes this scheduler.

Specified by:
initialize in interface Initializable
Overrides:
initialize in class IteratedListSelector

canCreateIterator

protected boolean canCreateIterator()
Returns true as we we are not iterations bound.

Overrides:
canCreateIterator in class IteratedListSelector

canExecuteNext

protected boolean canExecuteNext()
Can a next element be executed. Checks whether the time is up already

Overrides:
canExecuteNext in class IteratedListSelector

getTimeout

public long getTimeout()

setTimeout

public void setTimeout(long timeout)


Copyright © 2012. All Rights Reserved.