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
    • getActionFactory

      protected ActionFactory getActionFactory()
      Returns the action factory which creates the actions triggered by menu items and buttons.
      Returns:
      the action factory 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
    • selectAllMetrics

      public void selectAllMetrics()
      Selects all available metrics for display.
    • getSelectedResults

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

      public void selectAllResults()
      Selects all available results for display.
    • getAlgorithm

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

      protected void setAlgorithm(String algorithm)
      Sets the algorithm selected in the run control pane.
      Parameters:
      algorithm - the algorithm selected in the run control pane
    • getProblem

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

      protected void setProblem(String problem)
      Sets the problem selected in the run control pane.
      Parameters:
      problem - 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
    • setNumberOfEvaluations

      protected void setNumberOfEvaluations(int numberOfEvaluations)
      Sets the number of evaluations in the run control pane.
      Parameters:
      numberOfEvaluations - the number of function evaluations
    • 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
    • setNumberOfSeeds

      protected void setNumberOfSeeds(int numberOfSeeds)
      Sets the number of seeds in the run control pane.
      Parameters:
      numberOfSeeds - the number of seeds
    • 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
    • showAbout

      protected org.jfree.ui.about.AboutDialog showAbout()
      Creates and displays a dialog containing about / license information.
      Returns:
      the dialog, or null if unable to display
    • 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