net.sourceforge.jabm.distribution
Class AbstractDelegatedDistribution

java.lang.Object
  extended by cern.colt.PersistentObject
      extended by cern.jet.random.AbstractDistribution
          extended by cern.jet.random.AbstractContinousDistribution
              extended by net.sourceforge.jabm.distribution.AbstractDelegatedDistribution
All Implemented Interfaces:
cern.colt.function.DoubleFunction, cern.colt.function.IntFunction, java.io.Serializable, java.lang.Cloneable, org.springframework.beans.factory.InitializingBean
Direct Known Subclasses:
NormalDistribution, UniformDistribution

public abstract class AbstractDelegatedDistribution
extends cern.jet.random.AbstractContinousDistribution
implements org.springframework.beans.factory.InitializingBean

See Also:
Serialized Form
 

Field Summary
protected  cern.jet.random.AbstractContinousDistribution delegate
           
protected  boolean initialised
           
protected  cern.jet.random.engine.RandomEngine prng
           
 
Fields inherited from class cern.jet.random.AbstractDistribution
randomGenerator
 
Fields inherited from class cern.colt.PersistentObject
serialVersionUID
 
Constructor Summary
AbstractDelegatedDistribution()
           
 
Method Summary
 void afterPropertiesSet()
           
 cern.jet.random.engine.RandomEngine getPrng()
           
abstract  void initialise()
           
 double nextDouble()
           
 void reinitialise()
          Initialise the delegate provided that the bean has already been configured.
 void setPrng(cern.jet.random.engine.RandomEngine prng)
           
 
Methods inherited from class cern.jet.random.AbstractDistribution
apply, apply, clone, getRandomGenerator, makeDefaultGenerator, nextInt, setRandomGenerator
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

prng

protected cern.jet.random.engine.RandomEngine prng

delegate

protected cern.jet.random.AbstractContinousDistribution delegate

initialised

protected boolean initialised
Constructor Detail

AbstractDelegatedDistribution

public AbstractDelegatedDistribution()
Method Detail

nextDouble

public double nextDouble()
Specified by:
nextDouble in class cern.jet.random.AbstractDistribution

getPrng

public cern.jet.random.engine.RandomEngine getPrng()

setPrng

public void setPrng(cern.jet.random.engine.RandomEngine prng)

afterPropertiesSet

public void afterPropertiesSet()
                        throws java.lang.Exception
Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
Throws:
java.lang.Exception

reinitialise

public void reinitialise()
Initialise the delegate provided that the bean has already been configured. This should be called by setters after any moments are changed in case we are being configured by a PropertyOverrideConfigurator.


initialise

public abstract void initialise()