de.torstennahm.integrate.sparse.visualize
Class ContributionVisualizer

java.lang.Object
  extended by de.torstennahm.integrate.sparse.visualize.ContributionVisualizer
All Implemented Interfaces:
Visualizer

public class ContributionVisualizer
extends java.lang.Object
implements Visualizer

This visualizer displays two sets of indices. The head set is displayed in the upper panel and shows the integral contributions for all indices that have been evaluated by the integrator. The tail set consists of all those indices that have not been evaluated, and is displayed in the lower panel. It is generated by a background thread after integration finishes. The logarithms of the absolute values are displayed, with black marking positive and red marking negative values.

Author:
Torsten Nahm

Nested Class Summary
static class ContributionVisualizer.IndexEntry
           
 
Constructor Summary
ContributionVisualizer(javax.swing.JFrame frame)
           
 
Method Summary
 void destroy()
          Fully turn off the visualizer.
 double[] getRatings(long numPoints)
           
 void init()
          Initializes the visualizer for use.
 void start()
          Signals the visualizer that integration is now being started.
 void stop()
          Signals the visualizer that integration has now ended and no further VisualizerData will be sent.
 void submit(VisualizerData data)
          Send a data object to the visualizer.
 void updateDisplay()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContributionVisualizer

public ContributionVisualizer(javax.swing.JFrame frame)
Method Detail

init

public void init()
Description copied from interface: Visualizer
Initializes the visualizer for use. Must be called before any other method.

Specified by:
init in interface Visualizer

start

public void start()
Description copied from interface: Visualizer
Signals the visualizer that integration is now being started. This resets the visualizer for this integration process.

Specified by:
start in interface Visualizer

submit

public void submit(VisualizerData data)
Description copied from interface: Visualizer
Send a data object to the visualizer. The visualizer may extract any data relevant to its taks.

Specified by:
submit in interface Visualizer
Parameters:
data - object containing data about the current state of the integration process

stop

public void stop()
Description copied from interface: Visualizer
Signals the visualizer that integration has now ended and no further VisualizerData will be sent. The Visualizer may use this signal to present a final display for this integration process.

Specified by:
stop in interface Visualizer

destroy

public void destroy()
Description copied from interface: Visualizer
Fully turn off the visualizer. This should include closing all open windows if any have been opened.

Specified by:
destroy in interface Visualizer

updateDisplay

public void updateDisplay()

getRatings

public double[] getRatings(long numPoints)