org.syrup
Interface Workflow

All Superinterfaces:
Result
All Known Implementing Classes:
WorkflowImpl

public interface Workflow
extends Result

Defines a network of new Tasks and Links between them.
The only way to create new Tasks is for a PTask's Function to return a Workflow as a Result. This PTask will then become the parent of the newly defined Tasks. Additionally, the network bindings specify how new Tasks are re-linked to their parent's inputs and outputs.
After the Workflow is committed to the WorkSpace, all Tasks contained by this Workflow will be turned into PTasks. After committing, the inputs and outputs of the parent PTask are set to the new PTasks - as defined by the bindings.

Author:
Robbert van Dalen

Field Summary
static java.lang.String COPYRIGHT
           
 
Method Summary
 InPort in_1_binding()
          Returns the new InPort that the parent's first input will be re-linked to.
 InPort in_2_binding()
          Returns the new InPort that the parent's second input will be re-linked to.
 Link[] links()
          Returns all Links between Tasks of this Workflow.
 OutPort out_1_binding()
          Returns the new OutPort that the parent's first output will be re-linked to.
 OutPort out_2_binding()
          Returns the new OutPort that the parent's second output will be re-linked to.
 Task[] tasks()
          Returns all Tasks of this Workflow.
 
Methods inherited from interface org.syrup.Result
context, in_1_consumed, in_2_consumed, out_1_result, out_2_result
 

Field Detail

COPYRIGHT

public static final java.lang.String COPYRIGHT
See Also:
Constant Field Values
Method Detail

in_1_binding

public InPort in_1_binding()
Returns the new InPort that the parent's first input will be re-linked to.

Returns:
The re-linked first InPort.

in_2_binding

public InPort in_2_binding()
Returns the new InPort that the parent's second input will be re-linked to.

Returns:
The re-linked second InPort.

out_1_binding

public OutPort out_1_binding()
Returns the new OutPort that the parent's first output will be re-linked to.

Returns:
The re-linked first OutPort.

out_2_binding

public OutPort out_2_binding()
Returns the new OutPort that the parent's second output will be re-linked to.

Returns:
The re-linked second OutPort.

tasks

public Task[] tasks()
Returns all Tasks of this Workflow.

Returns:
An array of Tasks contained by this Workflow.

links

public Link[] links()
Returns all Links between Tasks of this Workflow.

Returns:
An array of Links between Tasks contained by this Workflow.