gishur.core.algorithms
Interface TraceExecutor

All Known Implementing Classes:
Skeleton

public interface TraceExecutor

Interface for the execution of traceable algorithms. The execute(gishur.core.algorithms.Tracer) method will be called, when the algorithm should be executed and debugging data for visualization should be collected. For this task, a Tracer will be used. The getMaxUsedLevel() should give the maximal used level depth without execution of the algorithm. The interface is e.g. used by TraceBar.

Version:
1.0
Author:
Thomas Wolf

Method Summary
 void execute(Tracer tracer)
          Execute the algorithm using the given Tracer.
 int getMaxUsedLevel()
          Returns the maximum level depth of traced algorithm steps.
 

Method Detail

execute

public void execute(Tracer tracer)
Execute the algorithm using the given Tracer.
Parameters:
tracer - the Tracer to use for algorithm recording

getMaxUsedLevel

public int getMaxUsedLevel()
Returns the maximum level depth of traced algorithm steps.
Returns:
the maximum level depth of traced algorithm steps.