|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--weka.gui.streams.InstanceJoiner
A bean that joins two streams of instances into one.
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)
|
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 |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
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 |
Copyright (c) 2003 David Lindsay, Computer Learning Research Centre, Dept. Computer Science, Royal Holloway, University of London