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