Class DiagnosticTool

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, EventListener, Accessible, ListSelectionListener, RootPaneContainer, WindowConstants, ControllerListener

public class DiagnosticTool extends JFrame implements ListSelectionListener, ControllerListener
The main window of the diagnostic tool.
See Also:
  • Constructor Details

    • DiagnosticTool

      public DiagnosticTool()
      Constructs a new diagnostic tool window.
  • Method Details

    • initialize

      protected void initialize()
      Initializes this window. This method is invoked by the constructor, and should not be invoked again.
    • layoutMenu

      protected void layoutMenu()
      Lays out the menu on this window. This method is invoked by the constructor, and should not be invoked again.
    • layoutComponents

      protected void layoutComponents()
      Lays out the components on this window. This method is invoked by the constructor, and should not be invoked again.
    • updateModel

      protected void updateModel()
      Updates the models underlying the GUI components as a result of model changes. This method must only be invoked on the event dispatch thread.
    • getController

      public Controller getController()
      Returns the controller used by this diagnostic tool instance. This controller provides access to the underlying data model displayed in this window.
      Returns:
      the controller used by this diagnostic tool instance
    • getPaintHelper

      public PaintHelper getPaintHelper()
      Returns the paint helper used by this diagnostic tool instance. This paint helper contains the mapping from series to paints displayed in this window.
      Returns:
      the paint helper used by this diagnostic tool instance
    • valueChanged

      public void valueChanged(ListSelectionEvent e)
      Specified by:
      valueChanged in interface ListSelectionListener
    • clear

      protected void clear()
      Invoked when the underlying data model is cleared, resulting in the GUI removing and resetting all components. This method must only be invoked on the event dispatch thread.
    • updateChartLayout

      protected void updateChartLayout()
      Updates the chart layout when the user changes which metrics to plot. This method must only be invoked on the event dispatch thread.
    • getSelectedMetrics

      protected List<String> getSelectedMetrics()
      Returns a list of the selected metrics.
      Returns:
      a list of the selected metrics
    • getSelectedResults

      protected List<ResultKey> getSelectedResults()
      Returns a list of the selected results.
      Returns:
      a list of the selected results
    • getAlgorithm

      protected String getAlgorithm()
      Returns the algorithm selected in the run control pane.
      Returns:
      the algorithm selected for the next evaluation job
    • getProblem

      protected String getProblem()
      Returns the problem selected in the run control pane.
      Returns:
      the problem selected in the run control pane
    • getNumberOfEvaluations

      protected int getNumberOfEvaluations()
      Returns the number of evaluations set in the run control pane.
      Returns:
      the number of evaluations set in the run control pane
    • getNumberOfSeeds

      protected int getNumberOfSeeds()
      Returns the number of seeds set in the run control pane.
      Returns:
      the number of seeds set in the run control pane
    • createChart

      protected ResultPlot createChart(String metric)
      Creates and returns the GUI component for plotting the specified metric.
      Parameters:
      metric - the metric to plot
      Returns:
      the GUI component for plotting the specified metric
    • controllerStateChanged

      public void controllerStateChanged(ControllerEvent event)
      Description copied from interface: ControllerListener
      Invoked by the controller to indicate its state changed. The ControllerEvent indicates the type of event which has occurred.
      Specified by:
      controllerStateChanged in interface ControllerListener
      Parameters:
      event - details of the controller event
    • dispose

      public void dispose()
      Overrides:
      dispose in class Window