net.sf.xaj.support
Class RandomSetParametersResolver

java.lang.Object
  extended by net.sf.xaj.support.AbstractSimpleParametersResolver
      extended by net.sf.xaj.support.RandomSetParametersResolver
All Implemented Interfaces:
XAttack.IterationParametersResolver

public class RandomSetParametersResolver
extends AbstractSimpleParametersResolver

Resolve a random value from a pre-defined set of values.

This can be used to populate some random values from a list of acceptable values.

The configurable properties of this class are:

valueList
The sequence number to start from. Defaults to zero.

Version:
$Revision$ $Date$
Author:
matt

Field Summary
static java.lang.String DEFAULT_PARAM_NAME
          The default value for the paramName property.
 
Constructor Summary
RandomSetParametersResolver()
          Default constructor.
 
Method Summary
 java.util.List<?> getValueList()
           
 java.util.Map<java.lang.String,?> resolveParameters(int iteration)
          Resolve the parameters for a given iteration.
 void setValueList(java.util.List<?> valueList)
           
 
Methods inherited from class net.sf.xaj.support.AbstractSimpleParametersResolver
getParamName, resolveSimpleMap, resolveSimpleMap, setParamName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_PARAM_NAME

public static final java.lang.String DEFAULT_PARAM_NAME
The default value for the paramName property.

See Also:
Constant Field Values
Constructor Detail

RandomSetParametersResolver

public RandomSetParametersResolver()
Default constructor.

Method Detail

resolveParameters

public java.util.Map<java.lang.String,?> resolveParameters(int iteration)
Description copied from interface: XAttack.IterationParametersResolver
Resolve the parameters for a given iteration.

Parameters:
iteration - the iteration count
Returns:
Map of parameter values

getValueList

public java.util.List<?> getValueList()
Returns:
the valueList

setValueList

public void setValueList(java.util.List<?> valueList)
Parameters:
valueList - the valueList to set