de.kumpe.hadooptimizer.impl
Class NeedsRandomWrapperBase<T>

java.lang.Object
  extended by de.kumpe.hadooptimizer.impl.NeedsRandomWrapperBase<T>
All Implemented Interfaces:
NeedsRandomGenerator, Wrapper<T>, Serializable
Direct Known Subclasses:
EsEvaluatorWrapper, EsHalterWrapper, EsMutatorWrapper, EsPopulationReaderWrapper, EsPopulationWriterWrapper, ReportingHalterWrapper

public abstract class NeedsRandomWrapperBase<T>
extends Object
implements Wrapper<T>, NeedsRandomGenerator

See Also:
Serialized Form

Field Summary
protected  T delegate
           
 
Constructor Summary
NeedsRandomWrapperBase(T delegate)
           
 
Method Summary
 boolean equals(Object obj)
           
 T getDelegate()
          Returns the wrapped delegate.
 int hashCode()
           
 void setRandomGenerator(org.apache.commons.math.random.RandomGenerator randomGenerator)
          Injects a RandomGenerator instance.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

delegate

protected final T delegate
Constructor Detail

NeedsRandomWrapperBase

public NeedsRandomWrapperBase(T delegate)
Method Detail

getDelegate

public final T getDelegate()
Description copied from interface: Wrapper
Returns the wrapped delegate.

Specified by:
getDelegate in interface Wrapper<T>
Returns:
the delegate

setRandomGenerator

public void setRandomGenerator(org.apache.commons.math.random.RandomGenerator randomGenerator)
Description copied from interface: NeedsRandomGenerator
Injects a RandomGenerator instance.

Specified by:
setRandomGenerator in interface NeedsRandomGenerator
Parameters:
randomGenerator - the new RandomGenerator instance

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2011 Christian Kumpe. All Rights Reserved.