Package 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.EventObjectClass encapsulating an incrementally built classifier and current instance- Since:
- 1.0
- Version:
- $Revision: 1.9 $
- Author:
- Mark Hall
- See Also:
EventObject, Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static intBATCH_FINISHEDstatic intNEW_BATCHstatic intWITHIN_BATCH
-
Constructor Summary
Constructors Constructor Description IncrementalClassifierEvent(java.lang.Object source)IncrementalClassifierEvent(java.lang.Object source, Classifier scheme, Instance currentI, int status)Creates a newIncrementalClassifierEventinstance.IncrementalClassifierEvent(java.lang.Object source, Classifier scheme, Instances structure)Creates a new incremental classifier event that encapsulates header information and classifier.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClassifiergetClassifier()Get the classifierInstancegetCurrentInstance()Get the current instanceintgetStatus()Get the statusInstancesgetStructure()Get the instances structure (may be null if this is not a NEW_BATCH event)voidsetClassifier(Classifier c)voidsetCurrentInstance(Instance i)Set the current instance for this eventvoidsetStatus(int s)Set the statusvoidsetStructure(Instances structure)Set the instances structure
-
-
-
Field Detail
-
NEW_BATCH
public static final int NEW_BATCH
- See Also:
- Constant Field Values
-
WITHIN_BATCH
public static final int WITHIN_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 newIncrementalClassifierEventinstance.- Parameters:
source- the source of the eventscheme- the classifiercurrentI- the current instancestatus- the status
-
IncrementalClassifierEvent
public IncrementalClassifierEvent(java.lang.Object source, Classifier scheme, Instances structure)Creates a new incremental classifier event that encapsulates header information and classifier.- Parameters:
source- anObjectvaluescheme- aClassifiervaluestructure- anInstancesvalue
-
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- anInstancevalue
-
getStatus
public int getStatus()
Get the status- Returns:
- an
intvalue
-
setStatus
public void setStatus(int s)
Set the status- Parameters:
s- anintvalue
-
setStructure
public void setStructure(Instances structure)
Set the instances structure- Parameters:
structure- anInstancesvalue
-
getStructure
public Instances getStructure()
Get the instances structure (may be null if this is not a NEW_BATCH event)- Returns:
- an
Instancesvalue
-
-