Class DataGeneratorPanel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class DataGeneratorPanel extends JPanel
A panel for generating artificial data via DataGenerators.
Version:
$Revision: 15437 $
Author:
FracPete (fracpete at waikato dot ac dot nz)
See Also:
  • Constructor Details

    • DataGeneratorPanel

      public DataGeneratorPanel()
      creates the panel
  • Method Details

    • setLog

      public void setLog(Logger value)
      Sets the Logger to receive informational messages
      Parameters:
      value - the Logger that will now get info messages
    • getInstances

      public Instances getInstances()
      returns the generated instances, null if the process was cancelled.
      Returns:
      the generated Instances
    • getOutput

      public String getOutput()
      returns the generated output as text
      Returns:
      the generated output
    • setGenerator

      public void setGenerator(DataGenerator value)
      sets the generator to use initially
      Parameters:
      value - the data generator to use
    • getGenerator

      public DataGenerator getGenerator()
      returns the currently selected DataGenerator
      Returns:
      the current data generator
    • execute

      public boolean execute()
      generates the instances, returns TRUE if successful stores output as a string
      Returns:
      TRUE if successful
      See Also:
    • execute

      public boolean execute(boolean storeOutput)
      generates the instances, returns TRUE if successful
      Parameters:
      storeOutput - whether to store output as string
      Returns:
      TRUE if successful
      See Also: