Class RunPanel

All Implemented Interfaces:
ActionListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible

public class RunPanel extends JPanel implements ActionListener
This panel controls the running of an experiment.
Version:
$Revision: 15301 $
Author:
Len Trigg (trigg@cs.waikato.ac.nz)
See Also:
  • Constructor Details

    • RunPanel

      public RunPanel()
      Creates the run panel with no initial experiment.
    • RunPanel

      public RunPanel(Experiment exp)
      Creates the panel with the supplied initial experiment.
      Parameters:
      exp - a value of type 'Experiment'
  • Method Details

    • setResultsPanel

      public void setResultsPanel(ResultsPanel rp)
      Sets the pointer to the results panel.
    • setExperiment

      public void setExperiment(Experiment exp)
      Sets the experiment the panel operates on.
      Parameters:
      exp - a value of type 'Experiment'
    • actionPerformed

      public void actionPerformed(ActionEvent e)
      Controls starting and stopping the experiment.
      Specified by:
      actionPerformed in interface ActionListener
      Parameters:
      e - a value of type 'ActionEvent'
    • main

      public static void main(String[] args)
      Tests out the run panel from the command line.
      Parameters:
      args - may contain options specifying an experiment to run.