程序包 weka.gui.beans
类 InstanceEvent
java.lang.Object
java.util.EventObject
weka.gui.beans.InstanceEvent
- 所有已实现的接口:
Serializable
Event that encapsulates a single instance or header information only
- 版本:
- $Revision: 1.5 $
- 作者:
- Mark Hall
- 另请参阅:
-
字段概要
字段修饰符和类型字段说明static final int
static final int
static final int
-
构造器概要
构造器构造器说明InstanceEvent
(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. -
方法概要
修饰符和类型方法说明Get 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 structure从类继承的方法 java.util.EventObject
getSource, toString
-
字段详细资料
-
构造器详细资料
-
InstanceEvent
Creates a newInstanceEvent
instance that encapsulates a single instance only.- 参数:
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.- 参数:
source
- anObject
valuestructure
- anInstances
value
-
InstanceEvent
-
-
方法详细资料
-
getInstance
Get the instance- 返回:
- an
Instance
value
-
setInstance
Set the instance- 参数:
i
- anInstance
value
-
getStatus
public int getStatus()Get the status- 返回:
- an
int
value
-
setStatus
public void setStatus(int s) Set the status- 参数:
s
- anint
value
-
setStructure
Set the instances structure- 参数:
structure
- anInstances
value
-
getStructure
Get the instances structure (may be null if this is not a FORMAT_AVAILABLE event)- 返回:
- an
Instances
value
-