net.sf.xaj.support
Class RandomSetParametersResolver
java.lang.Object
net.sf.xaj.support.AbstractSimpleParametersResolver
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. |
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_PARAM_NAME
public static final java.lang.String DEFAULT_PARAM_NAME
- The default value for the
paramName
property.
- See Also:
- Constant Field Values
RandomSetParametersResolver
public RandomSetParametersResolver()
- Default constructor.
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