ccvisu
Class Minimizer

java.lang.Object
  extended by ccvisu.Minimizer
Direct Known Subclasses:
MinimizerBarnesHut

public abstract class Minimizer
extends java.lang.Object

Minimizer for a given energy model, which is set by the constructor of the concrete minimizer implementation.

Version:
$Revision: 1.8 $; $Date: 2006/11/25 10:41:07 $
Author:
Dirk Beyer

Field Summary
protected  java.util.Vector<GraphEventListener> listener
          when chages occur in the graph
 
Constructor Summary
Minimizer()
           
 
Method Summary
 void addGraphEventListener(GraphEventListener listener)
          Constructor
abstract  void minimizeEnergy(int nrIterations)
          Minimizes iteratively the energy using the Barnes-Hut algorithm.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

listener

protected java.util.Vector<GraphEventListener> listener
when chages occur in the graph

Constructor Detail

Minimizer

public Minimizer()
Method Detail

addGraphEventListener

public void addGraphEventListener(GraphEventListener listener)
Constructor

Parameters:
listener - a GraphEventListener

minimizeEnergy

public abstract void minimizeEnergy(int nrIterations)
Minimizes iteratively the energy using the Barnes-Hut algorithm. Starts from the layout given by the positions in pos, and stores the computed layout as positions in pos.

Parameters:
nrIterations - Number of iterations. Choose appropriate values by observing the convergence of energy.