weka.gui.beans
Class IncrementalClassifierEvent

java.lang.Object
  |
  +--java.util.EventObject
        |
        +--weka.gui.beans.IncrementalClassifierEvent
All Implemented Interfaces:
java.io.Serializable

public class IncrementalClassifierEvent
extends java.util.EventObject

Class encapsulating an incrementally built classifier and current instance

Since:
1.0
Version:
1.0
Author:
Mark Hall
See Also:
EventObject, Serialized Form

Field Summary
static int BATCH_FINISHED
           
static int NEW_BATCH
           
static int WITHIN_BATCH
           
 
Constructor Summary
IncrementalClassifierEvent(java.lang.Object source)
           
IncrementalClassifierEvent(java.lang.Object source, Classifier scheme, Instance currentI, int status)
          Creates a new IncrementalClassifierEvent instance.
 
Method Summary
 Classifier getClassifier()
          Get the classifier
 Instance getCurrentInstance()
          Get the current instance
 int getStatus()
          Get the status
 void setClassifier(Classifier c)
           
 void setCurrentInstance(Instance i)
          Set the current instance for this event
 void setStatus(int s)
          Set the status
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

WITHIN_BATCH

public static final int WITHIN_BATCH
See Also:
Constant Field Values

NEW_BATCH

public static final int NEW_BATCH
See Also:
Constant Field Values

BATCH_FINISHED

public static final int BATCH_FINISHED
See Also:
Constant Field Values
Constructor Detail

IncrementalClassifierEvent

public IncrementalClassifierEvent(java.lang.Object source,
                                  Classifier scheme,
                                  Instance currentI,
                                  int status)
Creates a new IncrementalClassifierEvent instance.

Parameters:
source - the source of the event
scheme - the classifier

IncrementalClassifierEvent

public IncrementalClassifierEvent(java.lang.Object source)
Method Detail

getClassifier

public Classifier getClassifier()
Get the classifier

Returns:
the classifier

setClassifier

public void setClassifier(Classifier c)

getCurrentInstance

public Instance getCurrentInstance()
Get the current instance

Returns:
the current instance

setCurrentInstance

public void setCurrentInstance(Instance i)
Set the current instance for this event

Parameters:
i - an Instance value

getStatus

public int getStatus()
Get the status

Returns:
an int value

setStatus

public void setStatus(int s)
Set the status

Parameters:
s - an int value


Copyright (c) 2003 David Lindsay, Computer Learning Research Centre, Dept. Computer Science, Royal Holloway, University of London