swarm.random
Class UniformIntegerDistImpl

java.lang.Object
  |
  +--swarm.BaseImpl
        |
        +--swarm.random.UniformIntegerDistImpl

public class UniformIntegerDistImpl
extends BaseImpl
implements IntegerDistribution, IntegerDistributionS, UniformIntegerDistS, UniformIntegerDist

Uniform Integer Distribution. A generator of integral values uniformly distributed across a closed interval [min,max]. (The interval includes both its endpoints.) Setting minValue == maxValue is allowed (and returns minValue).


Constructor Summary
UniformIntegerDistImpl()
           
UniformIntegerDistImpl(Zone aZone)
          The createWithDefaults method creates a distribution object with a default set of seeds and parameters, and its own private generator.
UniformIntegerDistImpl(Zone aZone, SimpleRandomGenerator simpleGenerator)
          Use this create message if the generator to be attached is a Simple one:
UniformIntegerDistImpl(Zone aZone, SimpleRandomGenerator simpleGenerator, int minValue, int maxValue)
          Use this create message if the generator to be attached is a Simple one:
UniformIntegerDistImpl(Zone aZone, SplitRandomGenerator splitGenerator, int vGen)
          Use this create message if the generator to be attached is a Split one:
UniformIntegerDistImpl(Zone aZone, SplitRandomGenerator splitGenerator, int vGen, int minValue, int maxValue)
          Use this create message if the generator to be attached is a Split one:
 
Methods implemented by this class for interface swarm.random.IntegerDistribution
getIntegerSample
 
Methods implemented by this class for interface swarm.random.UniformIntegerDistS
setIntegerMin$setMax
 
Methods implemented by this class for interface swarm.random.UniformIntegerDist
getIntegerMax, getIntegerMin, getIntegerWithMin$withMax
 
Methods implemented by this class for interface swarm.random.ProbabilityDistribution
getCurrentCount, getGenerator, getOptionsInitialized, getVirtualGenerator
 
Methods implemented by this class for interface swarm.random.ProbabilityDistributionS
reset, setGenerator, setGenerator$setVirtualGenerator
 
Methods implemented by this class for interface swarm.objectbase.SwarmObject
getCompleteProbeMap, getProbeForMessage, getProbeForVariable, getProbeMap
 
Methods implemented by this class for interface swarm.random.InternalState
getMagic, getStateSize
 
Methods implemented by this class for interface swarm.defobj.Drop
drop
 
Methods implemented by this class for interface swarm.defobj.DefinedObject
compare, describe, describeID, getDisplayName, getTypeName, getZone, perform, perform$with, perform$with$with, perform$with$with$with, respondsTo, setDisplayName, xfprint, xfprintid, xprint, xprintid
 
Methods implemented by this class for interface swarm.defobj.GetName
getName
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UniformIntegerDistImpl

public UniformIntegerDistImpl()

UniformIntegerDistImpl

public UniformIntegerDistImpl(Zone aZone,
                              SplitRandomGenerator splitGenerator,
                              int vGen,
                              int minValue,
                              int maxValue)
Use this create message if the generator to be attached is a Split one:

UniformIntegerDistImpl

public UniformIntegerDistImpl(Zone aZone,
                              SimpleRandomGenerator simpleGenerator,
                              int minValue,
                              int maxValue)
Use this create message if the generator to be attached is a Simple one:

UniformIntegerDistImpl

public UniformIntegerDistImpl(Zone aZone,
                              SimpleRandomGenerator simpleGenerator)
Use this create message if the generator to be attached is a Simple one:

UniformIntegerDistImpl

public UniformIntegerDistImpl(Zone aZone,
                              SplitRandomGenerator splitGenerator,
                              int vGen)
Use this create message if the generator to be attached is a Split one:

UniformIntegerDistImpl

public UniformIntegerDistImpl(Zone aZone)
The createWithDefaults method creates a distribution object with a default set of seeds and parameters, and its own private generator.