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