|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectweka.gui.streams.InstanceJoiner
A bean that joins two streams of instances into one.
Field Summary | |
private boolean |
b_Debug
Debugging mode |
private boolean |
b_FirstInputFinished
Whether the first input batch has finished |
private boolean |
b_SecondInputFinished
|
private java.util.Vector |
listeners
The listeners |
protected Instances |
m_InputFormat
The input format for instances |
private Instance |
m_OutputInstance
The current output instance |
Constructor Summary | |
InstanceJoiner()
Setup the initial states of the member variables |
Method Summary | |
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)
|
protected void |
notifyInstanceProduced(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)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private java.util.Vector listeners
private boolean b_Debug
protected Instances m_InputFormat
private Instance m_OutputInstance
private boolean b_FirstInputFinished
private boolean b_SecondInputFinished
Constructor Detail |
public InstanceJoiner()
Method Detail |
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 java.lang.Exception
outputFormat
in interface InstanceProducer
java.lang.Exception
- if no input structure has been defined (or the output
format hasn't been determined yet)public boolean input(Instance instance) throws java.lang.Exception
java.lang.Exception
public void batchFinished() throws java.lang.Exception
java.lang.Exception
- if no input structure has been definedpublic Instance outputPeek() throws java.lang.Exception
outputPeek
in interface InstanceProducer
java.lang.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
protected void notifyInstanceProduced(InstanceEvent e)
public void instanceProduced(InstanceEvent e)
public void secondInstanceProduced(InstanceEvent e)
secondInstanceProduced
in interface SerialInstanceListener
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |