All Packages  Class Hierarchy  This Package  Previous  Next  Index  WEKA's home

Class weka.gui.explorer.PreprocessPanel

java.lang.Object
    |
    +----java.awt.Component
            |
            +----java.awt.Container
                    |
                    +----javax.swing.JComponent
                            |
                            +----javax.swing.JPanel
                                    |
                                    +----weka.gui.explorer.PreprocessPanel

public class PreprocessPanel
extends javax.swing.JPanel
This panel controls simple preprocessing of instances. Attributes may be selected for inclusion/exclusion, summary information on instances and attributes is shown. A sequence of filters may be configured to alter the set of instances. Altered instances may also be saved.

Version:
$Revision: 1.23.2.1 $
Author:
Len Trigg (trigg@cs.waikato.ac.nz)

Constructor Index

 o PreprocessPanel()
Creates the instances panel with no initial instances.

Method Index

 o addPropertyChangeListener(PropertyChangeListener)
Adds a PropertyChangeListener who will be notified of value changes.
 o getWorkingInstances()
Gets the working set of instances.
 o main(String[])
Tests out the instance-preprocessing panel from the command line.
 o removePropertyChangeListener(PropertyChangeListener)
Removes a PropertyChangeListener.
 o saveWorkingInstancesToFileQ()
Queries the user for a file to save instances as, then saves the instances in a background process.
 o setBaseInstances(Instances)
Tells the panel to use a new base set of instances.
 o setBaseInstancesFromDB(InstanceQuery)
Loads instances from a database
 o setBaseInstancesFromDBQ()
Queries the user for a URL to a database to load instances from, then loads the instances in a background process.
 o setBaseInstancesFromFile(File)
Loads results from a set of instances contained in the supplied file.
 o setBaseInstancesFromFileQ()
Queries the user for a file to load instances from, then loads the instances in a background process.
 o setBaseInstancesFromURL(URL)
Loads instances from a URL.
 o setBaseInstancesFromURLQ()
Queries the user for a URL to load instances from, then loads the instances in a background process.
 o setLog(Logger)
Sets the Logger to receive informational messages
 o setWorkingInstances(Instances)
Tells the panel to use a new working set of instances.
 o setWorkingInstancesFromFilters()
Applies the current filters and attribute selection settings and sets the result as the working dataset.

Constructor Detail

 o PreprocessPanel
public PreprocessPanel()
          Creates the instances panel with no initial instances.

Method Detail

 o setLog
public void setLog(Logger newLog)
          Sets the Logger to receive informational messages
Parameters:
newLog - the Logger that will now get info messages
 o setBaseInstances
public void setBaseInstances(Instances inst)
          Tells the panel to use a new base set of instances.
Parameters:
inst - a set of Instances
 o setWorkingInstances
public void setWorkingInstances(Instances inst)
          Tells the panel to use a new working set of instances.
Parameters:
inst - a set of Instances
 o getWorkingInstances
public Instances getWorkingInstances()
          Gets the working set of instances.
Returns:
the working instances
 o addPropertyChangeListener
public void addPropertyChangeListener(java.beans.PropertyChangeListener l)
          Adds a PropertyChangeListener who will be notified of value changes.
Parameters:
l - a value of type 'PropertyChangeListener'
Overrides:
addPropertyChangeListener in class javax.swing.JComponent
 o removePropertyChangeListener
public void removePropertyChangeListener(java.beans.PropertyChangeListener l)
          Removes a PropertyChangeListener.
Parameters:
l - a value of type 'PropertyChangeListener'
Overrides:
removePropertyChangeListener in class javax.swing.JComponent
 o setWorkingInstancesFromFilters
public void setWorkingInstancesFromFilters()
          Applies the current filters and attribute selection settings and sets the result as the working dataset. This is done in the IO thread, and an error message is popped up if the IO thread is busy.
 o saveWorkingInstancesToFileQ
public void saveWorkingInstancesToFileQ()
          Queries the user for a file to save instances as, then saves the instances in a background process. This is done in the IO thread, and an error message is popped up if the IO thread is busy.
 o setBaseInstancesFromFileQ
public void setBaseInstancesFromFileQ()
          Queries the user for a file to load instances from, then loads the instances in a background process. This is done in the IO thread, and an error message is popped up if the IO thread is busy.
 o setBaseInstancesFromDBQ
public void setBaseInstancesFromDBQ()
          Queries the user for a URL to a database to load instances from, then loads the instances in a background process. This is done in the IO thread, and an error message is popped up if the IO thread is busy.
 o setBaseInstancesFromURLQ
public void setBaseInstancesFromURLQ()
          Queries the user for a URL to load instances from, then loads the instances in a background process. This is done in the IO thread, and an error message is popped up if the IO thread is busy.
 o setBaseInstancesFromFile
public void setBaseInstancesFromFile(java.io.File f)
          Loads results from a set of instances contained in the supplied file. This is started in the IO thread, and a dialog is popped up if there's a problem.
Parameters:
f - a value of type 'File'
 o setBaseInstancesFromDB
public void setBaseInstancesFromDB(InstanceQuery iq)
          Loads instances from a database
Parameters:
iq - the InstanceQuery object to load from (this is assumed to have been already connected to a valid database).
 o setBaseInstancesFromURL
public void setBaseInstancesFromURL(java.net.URL u)
          Loads instances from a URL.
Parameters:
u - the URL to load from.
 o main
public static void main(java.lang.String args[])
          Tests out the instance-preprocessing panel from the command line.
Parameters:
args - ignored

All Packages  Class Hierarchy  This Package  Previous  Next  Index  WEKA's home