org.omegahat.Simulation.RandomGenerators
Class NotifyingPRNG

java.lang.Object
  |
  +--org.omegahat.Simulation.RandomGenerators.NotifyingPRNG
All Implemented Interfaces:
PRNG, java.lang.Runnable
Direct Known Subclasses:
CollingsPRNG

public abstract class NotifyingPRNG
extends java.lang.Object
implements PRNG, java.lang.Runnable


Field Summary
protected  java.util.Vector listeners
           
 
Constructor Summary
NotifyingPRNG()
           
 
Method Summary
 int addListener(PRNGAdministratorListener l)
           
 java.util.Vector listeners()
           
 java.util.Vector listeners(java.util.Vector v)
           
 boolean removeListener(PRNGAdministratorListener l)
           
 void run()
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 
Methods inherited from interface org.omegahat.Simulation.RandomGenerators.PRNG
getDoubleEpsilon, getIntRange, getState, nextDouble, nextDoubleArray, nextInt, nextIntArray
 

Field Detail

listeners

protected java.util.Vector listeners
Constructor Detail

NotifyingPRNG

public NotifyingPRNG()
Method Detail

addListener

public int addListener(PRNGAdministratorListener l)

removeListener

public boolean removeListener(PRNGAdministratorListener l)

run

public void run()
Specified by:
run in interface java.lang.Runnable

listeners

public java.util.Vector listeners()

listeners

public java.util.Vector listeners(java.util.Vector v)