ch.tatool.core.element
Class RandomOrderIteratedListSelector

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

public class RandomOrderIteratedListSelector
extends IteratedListSelector

Serves randomly a new element from the group. The amount of elements served can be specified.

Author:
Michael Ruflin

Constructor Summary
RandomOrderIteratedListSelector()
           
 
Method Summary
protected  Iterator<Element> createIterator(ExecutionContext context)
          Creates an iterator that returns the elements in the group in a random order compared to the standard order the elements have been added to the list
 
Methods inherited from class ch.tatool.core.element.IteratedListSelector
canCreateIterator, canExecuteNext, getNumIterations, initialize, 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

RandomOrderIteratedListSelector

public RandomOrderIteratedListSelector()
Method Detail

createIterator

protected Iterator<Element> createIterator(ExecutionContext context)
Creates an iterator that returns the elements in the group in a random order compared to the standard order the elements have been added to the list

Overrides:
createIterator in class IteratedListSelector


Copyright © 2012. All Rights Reserved.