public class IncrementalClassifierEvent
extends java.util.EventObject
EventObject
,
Serialized FormModifier and Type | Field and Description |
---|---|
static int |
BATCH_FINISHED |
static int |
NEW_BATCH |
static int |
WITHIN_BATCH |
Constructor and Description |
---|
IncrementalClassifierEvent(java.lang.Object source) |
IncrementalClassifierEvent(java.lang.Object source,
Classifier scheme,
Instance currentI,
int status)
Creates a new
IncrementalClassifierEvent instance. |
IncrementalClassifierEvent(java.lang.Object source,
Classifier scheme,
Instances structure)
Creates a new incremental classifier event that encapsulates
header information and classifier.
|
Modifier and Type | Method and Description |
---|---|
Classifier |
getClassifier()
Get the classifier
|
Instance |
getCurrentInstance()
Get the current instance
|
int |
getStatus()
Get the status
|
Instances |
getStructure()
Get the instances structure (may be null if this is not
a NEW_BATCH event)
|
void |
setClassifier(Classifier c) |
void |
setCurrentInstance(Instance i)
Set the current instance for this event
|
void |
setStatus(int s)
Set the status
|
void |
setStructure(Instances structure)
Set the instances structure
|
public static final int NEW_BATCH
public static final int WITHIN_BATCH
public static final int BATCH_FINISHED
public IncrementalClassifierEvent(java.lang.Object source, Classifier scheme, Instance currentI, int status)
IncrementalClassifierEvent
instance.source
- the source of the eventscheme
- the classifiercurrentI
- the current instancestatus
- the statuspublic IncrementalClassifierEvent(java.lang.Object source, Classifier scheme, Instances structure)
source
- an Object
valuescheme
- a Classifier
valuestructure
- an Instances
valuepublic IncrementalClassifierEvent(java.lang.Object source)
public Classifier getClassifier()
public void setClassifier(Classifier c)
public Instance getCurrentInstance()
public void setCurrentInstance(Instance i)
i
- an Instance
valuepublic int getStatus()
int
valuepublic void setStatus(int s)
s
- an int
valuepublic void setStructure(Instances structure)
structure
- an Instances
valuepublic Instances getStructure()
Instances
value