de.kumpe.hadooptimizer
Interface NeedsRandomGenerator

All Superinterfaces:
Serializable
All Known Implementing Classes:
DuplicatingRecombiner, EsEvaluatorWrapper, EsHalterWrapper, EsMutatorWrapper, EsPopulationReaderWrapper, EsPopulationWriterWrapper, GaussianMutator, GaussianMutator, GaussionMutatorBase, NeedsRandomWrapperBase, ReportingHalterWrapper

public interface NeedsRandomGenerator
extends Serializable

Implementing this interfaces enables injection of seeded RandomGenerator -instances.

In distributed environments it's important to have the random-generators seeded correctly (differently) to avoid correlations between the generated random numbers on different machines. The Framework injects correctly seeded RandomGenerator objects in all components of an OptimizerConfiguration.

Author:
Christian Kumpe
See Also:
OptimizerConfiguration.injectRandomGenerator(RandomGenerator)

Method Summary
 void setRandomGenerator(org.apache.commons.math.random.RandomGenerator randomGenerator)
          Injects a RandomGenerator instance.
 

Method Detail

setRandomGenerator

void setRandomGenerator(org.apache.commons.math.random.RandomGenerator randomGenerator)
Injects a RandomGenerator instance.

Parameters:
randomGenerator - the new RandomGenerator instance


Copyright © 2011 Christian Kumpe. All Rights Reserved.