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)
PreprocessPanel()
- Creates the instances panel with no initial instances.
addPropertyChangeListener(PropertyChangeListener)
- Adds a PropertyChangeListener who will be notified of value changes.
getWorkingInstances()
- Gets the working set of instances.
main(String[])
- Tests out the instance-preprocessing panel from the command line.
removePropertyChangeListener(PropertyChangeListener)
- Removes a PropertyChangeListener.
saveWorkingInstancesToFileQ()
- Queries the user for a file to save instances as, then saves the
instances in a background process.
setBaseInstances(Instances)
- Tells the panel to use a new base set of instances.
setBaseInstancesFromDB(InstanceQuery)
- Loads instances from a database
setBaseInstancesFromDBQ()
- Queries the user for a URL to a database to load instances from,
then loads the instances in a background process.
setBaseInstancesFromFile(File)
- Loads results from a set of instances contained in the supplied
file.
setBaseInstancesFromFileQ()
- Queries the user for a file to load instances from, then loads the
instances in a background process.
setBaseInstancesFromURL(URL)
- Loads instances from a URL.
setBaseInstancesFromURLQ()
- Queries the user for a URL to load instances from, then loads the
instances in a background process.
setLog(Logger)
- Sets the Logger to receive informational messages
setWorkingInstances(Instances)
- Tells the panel to use a new working set of instances.
setWorkingInstancesFromFilters()
- Applies the current filters and attribute selection settings and
sets the result as the working dataset.
PreprocessPanel
public PreprocessPanel()
Creates the instances panel with no initial instances.
setLog
public void setLog(Logger newLog)
Sets the Logger to receive informational messages
- Parameters:
newLog
- the Logger that will now get info messages
setBaseInstances
public void setBaseInstances(Instances inst)
Tells the panel to use a new base set of instances.
- Parameters:
inst
- a set of Instances
setWorkingInstances
public void setWorkingInstances(Instances inst)
Tells the panel to use a new working set of instances.
- Parameters:
inst
- a set of Instances
getWorkingInstances
public Instances getWorkingInstances()
Gets the working set of instances.
- Returns:
- the working instances
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
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
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.
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.
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.
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.
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.
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'
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).
setBaseInstancesFromURL
public void setBaseInstancesFromURL(java.net.URL u)
Loads instances from a URL.
- Parameters:
u
- the URL to load from.
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