Class AlgorithmVisualizationWindow

  • All Implemented Interfaces:
    java.lang.Runnable

    public class AlgorithmVisualizationWindow
    extends java.lang.Object
    implements java.lang.Runnable
    An AlgorithmVisualizationWindow can be created to have a visualization of the behavior of an algorithm. We generally differentiate between a live version of an IAlgorithm run for which an instance of that algorithm and a list of AlgorithmEventPropertyComputers is required and an offline run, for which only an AlgorithmEventHistory is required. In the first case, the property computers are used to extract relevant information which is required by the IGUIPlugins (to be displayed) from the underlying AlgorithmEvents which are provided by the actual algorithm. When playing a recording, these computers are not required as the data was already computed as is stored as part of the replay in the AlgorithmEventHistory. Furthermore it requires a main IGUIPlugin which will be displayed as the main element and optionally an unbounded amount of additional IGUIPlugin which will be displayed in order to provide additional information.
    • Method Detail

      • run

        public void run()
        Specified by:
        run in interface java.lang.Runnable
      • setTitle

        public void setTitle​(java.lang.String title)
        Sets the title of this window to the given String.
        Parameters:
        title - The new title of this window.