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

Class weka.gui.beans.Filter

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

public class Filter
extends javax.swing.JPanel
implements BeanCommon, Visible, WekaWrapper, java.io.Serializable, UserRequestAcceptor, TrainingSetListener, TestSetListener, TrainingSetProducer, TestSetProducer, DataSource, DataSourceListener, InstanceListener, EventConstraints
A wrapper bean for Weka filters

Version:
$Revision: 1.5 $
Author:
Mark Hall

Constructor Index

 o Filter()
 

Method Index

 o acceptDataSet(DataSetEvent)
Accept a data set
 o acceptInstance(InstanceEvent)
Accept an instance for processing by StreamableFilters only
 o acceptTestSet(TestSetEvent)
Accept a test set
 o acceptTrainingSet(TrainingSetEvent)
Accept a training set
 o addDataSourceListener(DataSourceListener)
Add a data source listener
 o addInstanceListener(InstanceListener)
Add an instance listener
 o addTestSetListener(TestSetListener)
Add a test set listener
 o addTrainingSetListener(TrainingSetListener)
Add a training set listener
 o connectionAllowed(String)
Returns true if, at this time, the object will accept a connection with respect to the supplied event name
 o connectionNotification(String, Object)
Notify this object that it has been registered as a listener with a source with respect to the supplied event name
 o disconnectionNotification(String, Object)
Notify this object that it has been deregistered as a listener with a source with respect to the supplied event name
 o enumerateRequests()
Return an enumeration of user requests
 o eventGeneratable(String)
Returns true, if at the current time, the named event could be generated.
 o getFilter()
 
 o getVisual()
Get the visual appearance of this bean
 o getWrappedAlgorithm()
Get the filter wrapped by this bean
 o performRequest(String)
Perform the named request
 o removeDataSourceListener(DataSourceListener)
Remove a data source listener
 o removeInstanceListener(InstanceListener)
Remove an instance listener
 o removeTestSetListener(TestSetListener)
Remove a test set listener
 o removeTrainingSetListener(TrainingSetListener)
Remove a training set listener
 o setFilter(Filter)
Set the filter to be wrapped by this bean
 o setLog(Logger)
Set a logger
 o setVisual(BeanVisual)
Set the visual appearance of this bean
 o setWrappedAlgorithm(Object)
Set the filter to be wrapped by this bean
 o stop()
Stop all action if possible
 o useDefaultVisual()
Use the default visual appearance

Constructor Detail

 o Filter
public Filter()

Method Detail

 o setFilter
public void setFilter(Filter c)
          Set the filter to be wrapped by this bean
Parameters:
c - a weka.filters.Filter value
 o getFilter
public Filter getFilter()
 o setWrappedAlgorithm
public void setWrappedAlgorithm(java.lang.Object algorithm)
          Set the filter to be wrapped by this bean
Parameters:
algorithm - a weka.filters.Filter
Throws:
java.lang.IllegalArgumentException - if an error occurs
 o getWrappedAlgorithm
public java.lang.Object getWrappedAlgorithm()
          Get the filter wrapped by this bean
Returns:
an Object value
 o acceptTrainingSet
public void acceptTrainingSet(TrainingSetEvent e)
          Accept a training set
Parameters:
e - a TrainingSetEvent value
 o acceptInstance
public void acceptInstance(InstanceEvent e)
          Accept an instance for processing by StreamableFilters only
Parameters:
e - an InstanceEvent value
 o acceptTestSet
public void acceptTestSet(TestSetEvent e)
          Accept a test set
Parameters:
e - a TestSetEvent value
 o acceptDataSet
public void acceptDataSet(DataSetEvent e)
          Accept a data set
Parameters:
e - a DataSetEvent value
 o setVisual
public void setVisual(BeanVisual newVisual)
          Set the visual appearance of this bean
Parameters:
newVisual - a BeanVisual value
 o getVisual
public BeanVisual getVisual()
          Get the visual appearance of this bean
Returns:
a BeanVisual value
 o useDefaultVisual
public void useDefaultVisual()
          Use the default visual appearance
 o addTrainingSetListener
public void addTrainingSetListener(TrainingSetListener tsl)
          Add a training set listener
Parameters:
tsl - a TrainingSetListener value
 o removeTrainingSetListener
public void removeTrainingSetListener(TrainingSetListener tsl)
          Remove a training set listener
Parameters:
tsl - a TrainingSetListener value
 o addTestSetListener
public void addTestSetListener(TestSetListener tsl)
          Add a test set listener
Parameters:
tsl - a TestSetListener value
 o removeTestSetListener
public void removeTestSetListener(TestSetListener tsl)
          Remove a test set listener
Parameters:
tsl - a TestSetListener value
 o addDataSourceListener
public void addDataSourceListener(DataSourceListener dsl)
          Add a data source listener
Parameters:
dsl - a DataSourceListener value
 o removeDataSourceListener
public void removeDataSourceListener(DataSourceListener dsl)
          Remove a data source listener
Parameters:
dsl - a DataSourceListener value
 o addInstanceListener
public void addInstanceListener(InstanceListener tsl)
          Add an instance listener
Parameters:
tsl - an InstanceListener value
 o removeInstanceListener
public void removeInstanceListener(InstanceListener tsl)
          Remove an instance listener
Parameters:
tsl - an InstanceListener value
 o connectionAllowed
public boolean connectionAllowed(java.lang.String eventName)
          Returns true if, at this time, the object will accept a connection with respect to the supplied event name
Parameters:
eventName - the event
Returns:
true if the object will accept a connection
 o connectionNotification
public void connectionNotification(java.lang.String eventName,
                                   java.lang.Object source)
          Notify this object that it has been registered as a listener with a source with respect to the supplied event name
Parameters:
eventName -
source - the source with which this object has been registered as a listener
 o disconnectionNotification
public void disconnectionNotification(java.lang.String eventName,
                                      java.lang.Object source)
          Notify this object that it has been deregistered as a listener with a source with respect to the supplied event name
Parameters:
eventName - the event
source - the source with which this object has been registered as a listener
 o stop
public void stop()
          Stop all action if possible
 o setLog
public void setLog(Logger logger)
          Set a logger
Parameters:
logger - a Logger value
 o enumerateRequests
public java.util.Enumeration enumerateRequests()
          Return an enumeration of user requests
Returns:
an Enumeration value
 o performRequest
public void performRequest(java.lang.String request)
          Perform the named request
Parameters:
request - a String value
Throws:
java.lang.IllegalArgumentException - if an error occurs
 o eventGeneratable
public boolean eventGeneratable(java.lang.String eventName)
          Returns true, if at the current time, the named event could be generated. Assumes that supplied event names are names of events that could be generated by this bean.
Parameters:
eventName - the name of the event in question
Returns:
true if the named event could be generated at this point in time

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