public class InstanceJoiner extends Object implements Serializable, InstanceProducer, SerialInstanceListener
Constructor and Description |
---|
InstanceJoiner()
Setup the initial states of the member variables
|
Modifier and Type | Method and Description |
---|---|
void |
addInstanceListener(InstanceListener ipl) |
void |
batchFinished()
Signify that this batch of input to the filter is finished.
|
boolean |
getDebug() |
boolean |
input(Instance instance) |
boolean |
inputFormat(Instances instanceInfo)
Sets the format of the input instances.
|
void |
instanceProduced(InstanceEvent e) |
Instances |
outputFormat()
Gets the format of the output instances.
|
Instance |
outputPeek()
Output an instance after filtering but do not remove from the output
queue.
|
void |
removeInstanceListener(InstanceListener ipl) |
void |
secondInstanceProduced(InstanceEvent e) |
void |
setDebug(boolean debug) |
public InstanceJoiner()
public boolean inputFormat(Instances instanceInfo)
instanceInfo
- an Instances object containing the input instance
structure (any instances contained in the object are ignored - only the
structure is required).public Instances outputFormat() throws Exception
outputFormat
in interface InstanceProducer
Exception
- if no input structure has been defined (or the output
format hasn't been determined yet)public void batchFinished() throws Exception
Exception
- if no input structure has been definedpublic Instance outputPeek() throws Exception
outputPeek
in interface InstanceProducer
Exception
- if no input structure has been definedpublic void setDebug(boolean debug)
public boolean getDebug()
public void addInstanceListener(InstanceListener ipl)
addInstanceListener
in interface InstanceProducer
public void removeInstanceListener(InstanceListener ipl)
removeInstanceListener
in interface InstanceProducer
public void instanceProduced(InstanceEvent e)
public void secondInstanceProduced(InstanceEvent e)
secondInstanceProduced
in interface SerialInstanceListener
Copyright © 2012 University of Waikato, Hamilton, NZ. All Rights Reserved.