Package weka.gui.beans
Class IncrementalClassifierEvent
java.lang.Object
java.util.EventObject
weka.gui.beans.IncrementalClassifierEvent
- All Implemented Interfaces:
Serializable
Class encapsulating an incrementally built classifier and current instance
- Since:
- 1.0
- Version:
- $Revision: 8034 $
- Author:
- Mark Hall
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
-
Constructor Summary
ConstructorDescriptionIncrementalClassifierEvent
(Object source) IncrementalClassifierEvent
(Object source, Classifier scheme, Instance currentI, int status) Creates a newIncrementalClassifierEvent
instance.IncrementalClassifierEvent
(Object source, Classifier scheme, Instances structure) Creates a new incremental classifier event that encapsulates header information and classifier. -
Method Summary
Modifier and TypeMethodDescriptionGet the classifierGet the current instanceint
Get the statusGet the instances structure (may be null if this is not a NEW_BATCH event)void
void
Set the current instance for this eventvoid
setStatus
(int s) Set the statusvoid
setStructure
(Instances structure) Set the instances structureMethods inherited from class java.util.EventObject
getSource, toString
-
Field Details
-
NEW_BATCH
public static final int NEW_BATCH- See Also:
-
WITHIN_BATCH
public static final int WITHIN_BATCH- See Also:
-
BATCH_FINISHED
public static final int BATCH_FINISHED- See Also:
-
-
Constructor Details
-
IncrementalClassifierEvent
Creates a newIncrementalClassifierEvent
instance.- Parameters:
source
- the source of the eventscheme
- the classifiercurrentI
- the current instancestatus
- the status
-
IncrementalClassifierEvent
Creates a new incremental classifier event that encapsulates header information and classifier.- Parameters:
source
- anObject
valuescheme
- aClassifier
valuestructure
- anInstances
value
-
IncrementalClassifierEvent
-
-
Method Details
-
getClassifier
Get the classifier- Returns:
- the classifier
-
setClassifier
-
getCurrentInstance
Get the current instance- Returns:
- the current instance
-
setCurrentInstance
Set the current instance for this event- Parameters:
i
- anInstance
value
-
getStatus
public int getStatus()Get the status- Returns:
- an
int
value
-
setStatus
public void setStatus(int s) Set the status- Parameters:
s
- anint
value
-
setStructure
Set the instances structure- Parameters:
structure
- anInstances
value
-
getStructure
Get the instances structure (may be null if this is not a NEW_BATCH event)- Returns:
- an
Instances
value
-