fr.jussieu.gla.wasa.core
Class RandomConfigurator
java.lang.Object
|
+--fr.jussieu.gla.wasa.core.ProblemItem
|
+--fr.jussieu.gla.wasa.core.RandomConfigurator
- Direct Known Subclasses:
- AutomaticRandomConfigurator
- public abstract class RandomConfigurator
- extends ProblemItem
The base class for a Configurator which assigns random values to
Buisness Objects states.
- Version:
- $Revision: 1.5 $ $Date: 2002/04/17 15:24:05 $
- Author:
- Laurent Caillette
Method Summary |
abstract void |
configure(float randomRatio)
This method is aimed at configuring buisness objects with
a certain randomRatio rate. |
protected java.util.Random |
getRandom()
Returns the Engine randomizer. |
boolean |
shouldConfigure(float randomRatio)
Returns true with a rate equal to randomRatio. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RandomConfigurator
public RandomConfigurator(Problem problem)
- Adds automatically the newly created instance to the given Problem.
getRandom
protected final java.util.Random getRandom()
- Returns the Engine randomizer. Enables the RandomConfigurator to use
the Engine randomizer.
shouldConfigure
public final boolean shouldConfigure(float randomRatio)
- Returns true with a rate equal to randomRatio.
- Returns:
- True with a rate equal to randomRatio.
configure
public abstract void configure(float randomRatio)
- This method is aimed at configuring buisness objects with
a certain randomRatio rate.