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

Class weka.gui.beans.Classifier

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

public class Classifier
extends javax.swing.JPanel
implements BeanCommon, Visible, WekaWrapper, EventConstraints, java.io.Serializable, UserRequestAcceptor, TrainingSetListener, TestSetListener, InstanceListener
Bean that wraps around weka.classifiers

Since:
1.0
Version:
$Revision: 1.5 $
Author:
Mark Hall
See Also:
javax.swing.JPanel, BeanCommon, Visible, WekaWrapper, java.io.Serializable, UserRequestAcceptor, TrainingSetListener, TestSetListener

Constructor Index

 o Classifier()
Creates a new Classifier instance.

Method Index

 o acceptInstance(InstanceEvent)
Accepts an instance for incremental processing.
 o acceptTestSet(TestSetEvent)
Accepts a test set for a batch trained classifier
 o acceptTrainingSet(TrainingSetEvent)
Accepts a training set and builds batch classifier
 o addBatchClassifierListener(BatchClassifierListener)
Add a batch classifier listener
 o addGraphListener(GraphListener)
Add a graph listener
 o addIncrementalClassifierListener(IncrementalClassifierListener)
Add an incremental classifier listener
 o addTextListener(TextListener)
Add a text listener
 o connectionAllowed(String)
Returns true if, at this time, the object will accept a connection with respect to the named event
 o connectionNotification(String, Object)
Notify this object that it has been registered as a listener with a source with respect to the named event
 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 requests that can be made by the user
 o eventGeneratable(EventSetDescriptor)
Returns true, if at the current time, the event described by the supplied event descriptor could be generated.
 o eventGeneratable(String)
Returns true, if at the current time, the named event could be generated.
 o getClassifier()
Get the classifier currently set for this wrapper
 o getUpdateIncrementalClassifier()
 
 o getVisual()
Gets the visual appearance of this wrapper bean
 o getWrappedAlgorithm()
Returns the wrapped classifier
 o performRequest(String)
Perform a particular request
 o removeBatchClassifierListener(BatchClassifierListener)
Remove a batch classifier listener
 o removeGraphListener(GraphListener)
Remove a graph listener
 o removeIncrementalClassifierListener(IncrementalClassifierListener)
Remove an incremental classifier listener
 o removeTextListener(TextListener)
Remove a text listener
 o setClassifier(Classifier)
Set the classifier for this wrapper
 o setLog(Logger)
Set a logger
 o setUpdateIncrementalClassifier(boolean)
 
 o setVisual(BeanVisual)
Sets the visual appearance of this wrapper bean
 o setWrappedAlgorithm(Object)
Sets the algorithm (classifier) for this bean
 o stop()
Stop any classifier action
 o useDefaultVisual()
Use the default visual appearance for this bean

Constructor Detail

 o Classifier
public Classifier()
          Creates a new Classifier instance.

Method Detail

 o setClassifier
public void setClassifier(Classifier c)
          Set the classifier for this wrapper
Parameters:
c - a weka.classifiers.Classifier value
 o getClassifier
public Classifier getClassifier()
          Get the classifier currently set for this wrapper
Returns:
a weka.classifiers.Classifier value
 o setWrappedAlgorithm
public void setWrappedAlgorithm(java.lang.Object algorithm)
          Sets the algorithm (classifier) for this bean
Parameters:
algorithm - an Object value
Throws:
java.lang.IllegalArgumentException - if an error occurs
 o getWrappedAlgorithm
public java.lang.Object getWrappedAlgorithm()
          Returns the wrapped classifier
Returns:
an Object value
 o getUpdateIncrementalClassifier
public boolean getUpdateIncrementalClassifier()
 o setUpdateIncrementalClassifier
public void setUpdateIncrementalClassifier(boolean update)
 o acceptInstance
public void acceptInstance(InstanceEvent e)
          Accepts an instance for incremental processing.
Parameters:
e - an InstanceEvent value
 o acceptTrainingSet
public void acceptTrainingSet(TrainingSetEvent e)
          Accepts a training set and builds batch classifier
Parameters:
e - a TrainingSetEvent value
 o acceptTestSet
public void acceptTestSet(TestSetEvent e)
          Accepts a test set for a batch trained classifier
Parameters:
e - a TestSetEvent value
 o setVisual
public void setVisual(BeanVisual newVisual)
          Sets the visual appearance of this wrapper bean
Parameters:
newVisual - a BeanVisual value
 o getVisual
public BeanVisual getVisual()
          Gets the visual appearance of this wrapper bean
 o useDefaultVisual
public void useDefaultVisual()
          Use the default visual appearance for this bean
 o addBatchClassifierListener
public void addBatchClassifierListener(BatchClassifierListener cl)
          Add a batch classifier listener
Parameters:
cl - a BatchClassifierListener value
 o removeBatchClassifierListener
public void removeBatchClassifierListener(BatchClassifierListener cl)
          Remove a batch classifier listener
Parameters:
cl - a BatchClassifierListener value
 o addGraphListener
public void addGraphListener(GraphListener cl)
          Add a graph listener
Parameters:
cl - a GraphListener value
 o removeGraphListener
public void removeGraphListener(GraphListener cl)
          Remove a graph listener
Parameters:
cl - a GraphListener value
 o addTextListener
public void addTextListener(TextListener cl)
          Add a text listener
Parameters:
cl - a TextListener value
 o removeTextListener
public void removeTextListener(TextListener cl)
          Remove a text listener
Parameters:
cl - a TextListener value
 o addIncrementalClassifierListener
public void addIncrementalClassifierListener(IncrementalClassifierListener cl)
          Add an incremental classifier listener
Parameters:
cl - an IncrementalClassifierListener value
 o removeIncrementalClassifierListener
public void removeIncrementalClassifierListener(IncrementalClassifierListener cl)
          Remove an incremental classifier listener
Parameters:
cl - an IncrementalClassifierListener 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 named event
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 named event
Parameters:
eventName - the event
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 any classifier action
 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 requests that can be made by the user
Returns:
an Enumeration value
 o performRequest
public void performRequest(java.lang.String request)
          Perform a particular request
Parameters:
request - the request to perform
Throws:
java.lang.IllegalArgumentException - if an error occurs
 o eventGeneratable
public boolean eventGeneratable(java.beans.EventSetDescriptor esd)
          Returns true, if at the current time, the event described by the supplied event descriptor could be generated.
Parameters:
esd - an EventSetDescriptor value
Returns:
a boolean value
 o eventGeneratable
public boolean eventGeneratable(java.lang.String eventName)
          Returns true, if at the current time, the named event could be generated. Assumes that the supplied event name is an event 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