net.sourceforge.jabm.distribution
Class AbstractDelegatedDistribution
java.lang.Object
cern.colt.PersistentObject
cern.jet.random.AbstractDistribution
cern.jet.random.AbstractContinousDistribution
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 |
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 |
prng
protected cern.jet.random.engine.RandomEngine prng
delegate
protected cern.jet.random.AbstractContinousDistribution delegate
initialised
protected boolean initialised
AbstractDelegatedDistribution
public AbstractDelegatedDistribution()
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()