org.omegahat.Simulation.MCMC.Listeners
Class ArrayListener

java.lang.Object
  |
  +--org.omegahat.Simulation.MCMC.Listeners.ListenerPrinter
        |
        +--org.omegahat.Simulation.MCMC.Listeners.ArrayListener
All Implemented Interfaces:
MCMCListener
Direct Known Subclasses:
PlottingListener

public class ArrayListener
extends ListenerPrinter

Stores contents of RecordingIndexEvents in an array when one is recieved.


Field Summary
protected  double[][] data
           
protected  boolean debug
           
protected  int index
           
(package private)  double[] time
           
(package private)  java.lang.String[] varNames
           
 
Constructor Summary
ArrayListener(java.lang.String[] varNames)
           
ArrayListener(java.lang.String[] varNames, int size)
           
 
Method Summary
 double[][] data()
           
 double[] data(int which)
           
 boolean debug()
           
 boolean debug(boolean debug)
           
 void notify(MCMCEvent e)
          Function to be called for notification
 double[] time()
           
 java.lang.String[] varNames()
           
 
Methods inherited from class org.omegahat.Simulation.MCMC.Listeners.ListenerPrinter
reset
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

index

protected int index

debug

protected boolean debug

varNames

java.lang.String[] varNames

data

protected double[][] data

time

double[] time
Constructor Detail

ArrayListener

public ArrayListener(java.lang.String[] varNames)

ArrayListener

public ArrayListener(java.lang.String[] varNames,
                     int size)
Method Detail

data

public double[][] data()

data

public double[] data(int which)

varNames

public java.lang.String[] varNames()

time

public double[] time()

debug

public boolean debug()

debug

public boolean debug(boolean debug)

notify

public void notify(MCMCEvent e)
Description copied from interface: MCMCListener
Function to be called for notification
Overrides:
notify in class ListenerPrinter