org.embl.ebi.escience.scuflui.results
Class ResultSource

java.lang.Object
  extended by 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

Constructor Summary
ResultSource(Port sourcePort, DataThing thing)
           
 
Method Summary
 void addInput(ResultSource thing)
           
 void addOutput(ResultSource thing)
           
 void addOutputProcessor(Processor processor)
           
 int getDepth()
           
 Processor getProcessor()
           
 ResultThing getResultThing(java.lang.String lsid)
           
 java.util.Iterator results()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ResultSource

public ResultSource(Port sourcePort,
                    DataThing thing)
Parameters:
sourcePort - the bound output port of a processor
thing - the DataThing which encapsulates all of the results from this output port
Method Detail

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