org.embl.ebi.escience.scuflui.results
Class ResultSource
java.lang.Object
org.embl.ebi.escience.scuflui.results.ResultSource
public class ResultSource
- extends java.lang.Object
A source of results from a workflow. It specifically maps to either a bound
output port of a processor, or an input to thr workflow.
- Version:
- $Revision: 1.3 $
- Author:
- Kevin Glover
- See Also:
ResultThing
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ResultSource
public ResultSource(Port sourcePort,
DataThing thing)
- Parameters:
sourcePort - the bound output port of a processorthing - the DataThing which encapsulates all of the
results from this output port
addInput
public void addInput(ResultSource thing)
- Parameters:
thing -
addOutput
public void addOutput(ResultSource thing)
- Parameters:
thing -
getProcessor
public Processor getProcessor()
- Returns:
- the processor that this ResultSource is part of
addOutputProcessor
public void addOutputProcessor(Processor processor)
- Parameters:
processor -
getDepth
public int getDepth()
- Returns:
- the depth of the processor in the graph
getResultThing
public ResultThing getResultThing(java.lang.String lsid)
- Parameters:
lsid -
- Returns:
- a
ResultThingwith the given lsid
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
results
public java.util.Iterator results()
- Returns:
- an Iterator over all the results produced from this source