程序包 weka.gui.streams
类 InstanceJoiner
java.lang.Object
weka.gui.streams.InstanceJoiner
- 所有已实现的接口:
Serializable
,EventListener
,InstanceProducer
,SerialInstanceListener
public class InstanceJoiner
extends Object
implements Serializable, InstanceProducer, SerialInstanceListener
A bean that joins two streams of instances into one.
- 版本:
- $Revision: 7059 $
- 作者:
- Len Trigg (trigg@cs.waikato.ac.nz)
- 另请参阅:
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明void
void
Signify that this batch of input to the filter is finished.boolean
getDebug()
boolean
boolean
inputFormat
(Instances instanceInfo) Sets the format of the input instances.void
Gets the format of the output instances.Output an instance after filtering but do not remove from the output queue.void
void
void
setDebug
(boolean debug)
-
构造器详细资料
-
InstanceJoiner
public InstanceJoiner()Setup the initial states of the member variables
-
-
方法详细资料
-
inputFormat
Sets the format of the input instances. If the filter is able to determine the output format before seeing any input instances, it does so here. This default implementation assumes the output format is determined when batchFinished() is called.- 参数:
instanceInfo
- an Instances object containing the input instance structure (any instances contained in the object are ignored - only the structure is required).- 返回:
- true if the outputFormat may be collected immediately
-
outputFormat
Gets the format of the output instances. This should only be called after input() or batchFinished() has returned true.- 指定者:
outputFormat
在接口中InstanceProducer
- 返回:
- an Instances object containing the output instance structure only.
- 抛出:
Exception
- if no input structure has been defined (or the output format hasn't been determined yet)
-
input
- 抛出:
Exception
-
batchFinished
Signify that this batch of input to the filter is finished. If the filter requires all instances prior to filtering, output() may now be called to retrieve the filtered instances. Any subsequent instances filtered should be filtered based on setting obtained from the first batch (unless the inputFormat has been re-assigned or new options have been set). This default implementation assumes all instance processing occurs during inputFormat() and input().- 抛出:
Exception
- if no input structure has been defined
-
outputPeek
Output an instance after filtering but do not remove from the output queue.- 指定者:
outputPeek
在接口中InstanceProducer
- 返回:
- the instance that has most recently been filtered (or null if the queue is empty).
- 抛出:
Exception
- if no input structure has been defined
-
setDebug
public void setDebug(boolean debug) -
getDebug
public boolean getDebug() -
addInstanceListener
- 指定者:
addInstanceListener
在接口中InstanceProducer
-
removeInstanceListener
- 指定者:
removeInstanceListener
在接口中InstanceProducer
-
instanceProduced
-
secondInstanceProduced
- 指定者:
secondInstanceProduced
在接口中SerialInstanceListener
-