net.sourceforge.jabm.spring
Class RandomDoubleFactoryBean

java.lang.Object
  extended by net.sourceforge.jabm.spring.AbstractRandomVariateFactoryBean
      extended by net.sourceforge.jabm.spring.RandomDoubleFactoryBean
All Implemented Interfaces:
org.springframework.beans.factory.FactoryBean<java.lang.Double>

public class RandomDoubleFactoryBean
extends AbstractRandomVariateFactoryBean
implements org.springframework.beans.factory.FactoryBean<java.lang.Double>

A Spring factory bean which generates random Double values from the specified probability distribution. This can be used to auto-magically configure properties as random variates in a Monte-Carlo simulation.

 

Field Summary
 
Fields inherited from class net.sourceforge.jabm.spring.AbstractRandomVariateFactoryBean
distribution
 
Constructor Summary
RandomDoubleFactoryBean()
           
 
Method Summary
 java.lang.Double getObject()
           
 java.lang.Class<?> getObjectType()
           
 
Methods inherited from class net.sourceforge.jabm.spring.AbstractRandomVariateFactoryBean
getDistribution, isSingleton, setDistribution
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.springframework.beans.factory.FactoryBean
isSingleton
 

Constructor Detail

RandomDoubleFactoryBean

public RandomDoubleFactoryBean()
Method Detail

getObject

public java.lang.Double getObject()
Specified by:
getObject in interface org.springframework.beans.factory.FactoryBean<java.lang.Double>

getObjectType

public java.lang.Class<?> getObjectType()
Specified by:
getObjectType in interface org.springframework.beans.factory.FactoryBean<java.lang.Double>