sir.util
Class BurninProxyListener
java.lang.Object
sir.util.BurninProxyListener
- All Implemented Interfaces:
- org.omegahat.Simulation.MCMC.MCMCListener, org.omegahat.Simulation.MCMC.NotifyingObject
- public class BurninProxyListener
- extends java.lang.Object
- implements org.omegahat.Simulation.MCMC.NotifyingObject, org.omegahat.Simulation.MCMC.MCMCListener
This object serves as a proxy MCMCListener
that discards
the first burnin
events but then truthfully forwards to its
subscribers
Method Summary |
int |
getBurninNumber()
|
int |
getTotalEvents()
|
void |
notify(org.omegahat.Simulation.MCMC.MCMCEvent event)
Function to be called for notification |
protected void |
notifyAll(org.omegahat.Simulation.MCMC.MCMCEvent e)
|
org.omegahat.Simulation.MCMC.MCMCListenerHandle |
registerListener(org.omegahat.Simulation.MCMC.MCMCListener listener)
Register a listener to be notified of events. |
void |
resetTotalEvents()
|
int |
setBurninNumber(int number)
|
void |
unregisterListener(org.omegahat.Simulation.MCMC.MCMCListenerHandle handle)
Unregister a listener to be notified of events. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
listeners
protected java.util.Hashtable listeners
burninNumber
protected int burninNumber
totalEvents
protected int totalEvents
BurninProxyListener
public BurninProxyListener()
BurninProxyListener
public BurninProxyListener(int number)
getTotalEvents
public int getTotalEvents()
resetTotalEvents
public void resetTotalEvents()
getBurninNumber
public int getBurninNumber()
setBurninNumber
public int setBurninNumber(int number)
registerListener
public org.omegahat.Simulation.MCMC.MCMCListenerHandle registerListener(org.omegahat.Simulation.MCMC.MCMCListener listener)
- Description copied from interface:
org.omegahat.Simulation.MCMC.NotifyingObject
- Register a listener to be notified of events.
- Specified by:
registerListener
in interface org.omegahat.Simulation.MCMC.NotifyingObject
unregisterListener
public void unregisterListener(org.omegahat.Simulation.MCMC.MCMCListenerHandle handle)
- Description copied from interface:
org.omegahat.Simulation.MCMC.NotifyingObject
- Unregister a listener to be notified of events.
- Specified by:
unregisterListener
in interface org.omegahat.Simulation.MCMC.NotifyingObject
notifyAll
protected void notifyAll(org.omegahat.Simulation.MCMC.MCMCEvent e)
notify
public void notify(org.omegahat.Simulation.MCMC.MCMCEvent event)
- Function to be called for notification
- Specified by:
notify
in interface org.omegahat.Simulation.MCMC.MCMCListener