fr.jussieu.gla.wasa.util
Class AutomaticRandomConfigurator

java.lang.Object
  |
  +--fr.jussieu.gla.wasa.core.ProblemItem
        |
        +--fr.jussieu.gla.wasa.core.RandomConfigurator
              |
              +--fr.jussieu.gla.wasa.util.AutomaticRandomConfigurator

public class AutomaticRandomConfigurator
extends RandomConfigurator

RandomConfigurator implementation setting Var's values to a random value, without knowing about Buisness Object's types. The RandomConfigurator is only useful if all Problem's Vars are of the same type.

The RandomConfigurator supported those types are :

Version:
$Revision: 1.3 $ $Date: 2002/04/10 17:24:01 $
Author:
Laurent Caillette

Constructor Summary
AutomaticRandomConfigurator(Problem problem, java.lang.Class valueClass)
          Constructor.
 
Method Summary
 void configure(float randomRatio)
          This method is aimed at configuring buisness objects with a certain randomRatio rate.
 
Methods inherited from class fr.jussieu.gla.wasa.core.RandomConfigurator
getRandom, shouldConfigure
 
Methods inherited from class fr.jussieu.gla.wasa.core.ProblemItem
getName, getProblem, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AutomaticRandomConfigurator

public AutomaticRandomConfigurator(Problem problem,
                                   java.lang.Class valueClass)
Constructor.
Parameters:
problem - The Problem to get Vars from.
valueClass - The name of the class of the Var's values.
Method Detail

configure

public void configure(float randomRatio)
Description copied from class: RandomConfigurator
This method is aimed at configuring buisness objects with a certain randomRatio rate.
Overrides:
configure in class RandomConfigurator