gishur.core
Interface DebugListener


public interface DebugListener

A listener to debug algorithms.

Version:
1.0
Author:
Thomas Wolf

Method Summary
 void finish(java.lang.Object source, java.lang.Object[] data)
          Is called when the algorithm is completed.
 void reset(java.lang.Object source, java.lang.Object[] data)
          Is called when the algorithm is started.
 void step(java.lang.Object source, int depth, int stepcount, java.lang.String name, java.lang.Object[] data)
          Is called in a step of the algorithm.
 

Method Detail

reset

public void reset(java.lang.Object source,
                  java.lang.Object[] data)
Is called when the algorithm is started.
Parameters:
source - the object performing the algorithm
data - the data to be used in the algorithm

finish

public void finish(java.lang.Object source,
                   java.lang.Object[] data)
Is called when the algorithm is completed.
Parameters:
source - the object performing the algorithm
data - the data to be used in the algorithm

step

public void step(java.lang.Object source,
                 int depth,
                 int stepcount,
                 java.lang.String name,
                 java.lang.Object[] data)
Is called in a step of the algorithm.
Parameters:
the - object performing the algorithm
depth - depth of processing
stepcount - number of steps
name - the name of the step
data - the data to be used in the algorithm