org.omegahat.Simulation.MCMC.Listeners
Class SplittingProxyListener

java.lang.Object
  |
  +--org.omegahat.Simulation.MCMC.Listeners.SplittingProxyListener
All Implemented Interfaces:
MCMCListener, NotifyingObject

public class SplittingProxyListener
extends java.lang.Object
implements NotifyingObject, MCMCListener

This object serves as a proxy MCMCListener that only forwards 1 out of every thinningFactor events to its subscribers


Inner Class Summary
 class SplittingProxyListener.MyHandle
           
 
Field Summary
protected  java.util.Hashtable listeners
           
protected  java.util.Hashtable maxRanges
           
protected  java.util.Hashtable minRanges
           
 
Constructor Summary
SplittingProxyListener()
           
 
Method Summary
 void notify(MCMCEvent event)
          Function to be called for notification
protected  void notifyAll(MCMCEvent e)
           
 MCMCListenerHandle registerListener(MCMCListener listener)
          Register a listener to be notified of events.
 void setRange(MCMCListenerHandle handle, double[] min, double[] max)
           
 void unregisterListener(MCMCListenerHandle handle)
          Unregister a listener to be notified of events.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

listeners

protected java.util.Hashtable listeners

minRanges

protected java.util.Hashtable minRanges

maxRanges

protected java.util.Hashtable maxRanges
Constructor Detail

SplittingProxyListener

public SplittingProxyListener()
Method Detail

registerListener

public MCMCListenerHandle registerListener(MCMCListener listener)
Description copied from interface: NotifyingObject
Register a listener to be notified of events.
Specified by:
registerListener in interface NotifyingObject

unregisterListener

public void unregisterListener(MCMCListenerHandle handle)
Description copied from interface: NotifyingObject
Unregister a listener to be notified of events.
Specified by:
unregisterListener in interface NotifyingObject

notifyAll

protected void notifyAll(MCMCEvent e)

notify

public void notify(MCMCEvent event)
Function to be called for notification
Specified by:
notify in interface MCMCListener

setRange

public void setRange(MCMCListenerHandle handle,
                     double[] min,
                     double[] max)