net.sourceforge.jabm.spring
Class RandomIntegerFactoryBean

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

public class RandomIntegerFactoryBean
extends AbstractRandomVariateFactoryBean
implements org.springframework.beans.factory.FactoryBean<java.lang.Integer>

A Spring factory bean which generates random Integer 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
RandomIntegerFactoryBean()
           
 
Method Summary
 java.lang.Integer 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

RandomIntegerFactoryBean

public RandomIntegerFactoryBean()
Method Detail

getObject

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

getObjectType

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