Package weka.gui.beans
Class InstanceEvent
java.lang.Object
java.util.EventObject
weka.gui.beans.InstanceEvent
- All Implemented Interfaces:
Serializable
Event that encapsulates a single instance or header information only
- Version:
- $Revision: 9205 $
- Author:
- Mark Hall
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
-
Constructor Summary
ConstructorDescriptionInstanceEvent
(Object source) InstanceEvent
(Object source, Instance instance, int status) Creates a newInstanceEvent
instance that encapsulates a single instance only.InstanceEvent
(Object source, Instances structure) Creates a newInstanceEvent
instance which encapsulates header information only. -
Method Summary
Modifier and TypeMethodDescriptionGet the instanceint
Get the statusGet the instances structure (may be null if this is not a FORMAT_AVAILABLE event)void
Set the instancevoid
setStatus
(int s) Set the statusvoid
setStructure
(Instances structure) Set the instances structureMethods inherited from class java.util.EventObject
getSource, toString
-
Field Details
-
FORMAT_AVAILABLE
public static final int FORMAT_AVAILABLE- See Also:
-
INSTANCE_AVAILABLE
public static final int INSTANCE_AVAILABLE- See Also:
-
BATCH_FINISHED
public static final int BATCH_FINISHED- See Also:
-
-
Constructor Details
-
InstanceEvent
Creates a newInstanceEvent
instance that encapsulates a single instance only.- Parameters:
source
- the source of the eventinstance
- the instancestatus
- status code (either INSTANCE_AVAILABLE or BATCH_FINISHED)
-
InstanceEvent
Creates a newInstanceEvent
instance which encapsulates header information only.- Parameters:
source
- anObject
valuestructure
- anInstances
value
-
InstanceEvent
-
-
Method Details
-
getInstance
Get the instance- Returns:
- an
Instance
value
-
setInstance
Set the instance- 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 FORMAT_AVAILABLE event)- Returns:
- an
Instances
value
-