All Packages Class Hierarchy This Package Previous Next Index WEKA's home
Class weka.gui.beans.AbstractTrainAndTestSetProducer
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----javax.swing.JComponent
|
+----javax.swing.JPanel
|
+----weka.gui.beans.AbstractTrainAndTestSetProducer
- public abstract class AbstractTrainAndTestSetProducer
- extends javax.swing.JPanel
- implements Visible, TrainingSetProducer, TestSetProducer, BeanCommon, java.io.Serializable, DataSourceListener
Abstract base class for TrainAndTestSetProducers that contains default
implementations of add/remove listener methods and defualt
visual representation.
- Version:
- $Revision: 1.2 $
- Author:
- Mark Hall
AbstractTrainAndTestSetProducer()
- Creates a new
AbstractTrainAndTestSetProducer instance.
acceptDataSet(DataSetEvent)
- Subclass must implement
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 according 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
getVisual()
- Get the visual for this bean
removeTestSetListener(TestSetListener)
- Remove a test set listener
removeTrainingSetListener(TrainingSetListener)
- Remove a training set listener
setLog(Logger)
- Set a log for this bean
setVisual(BeanVisual)
- Set the visual for this bean
stop()
- Stop any processing that the bean might be doing.
useDefaultVisual()
- Use the default visual for this bean
AbstractTrainAndTestSetProducer
public AbstractTrainAndTestSetProducer()
Creates a new AbstractTrainAndTestSetProducer instance.
acceptDataSet
public abstract void acceptDataSet(DataSetEvent e)
Subclass must implement
- Parameters:
e - a DataSetEvent value
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
setVisual
public void setVisual(BeanVisual newVisual)
Set the visual for this bean
- Parameters:
newVisual - a BeanVisual value
getVisual
public BeanVisual getVisual()
Get the visual for this bean
- Returns:
- a
BeanVisual value
useDefaultVisual
public void useDefaultVisual()
Use the default visual for this bean
connectionAllowed
public boolean connectionAllowed(java.lang.String eventName)
Returns true if, at this time,
the object will accept a connection according 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 - the event
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
setLog
public void setLog(Logger logger)
Set a log for this bean
- Parameters:
logger - a weka.gui.Logger value
stop
public abstract void stop()
Stop any processing that the bean might be doing.
Subclass must implement
All Packages Class Hierarchy This Package Previous Next Index WEKA's home