org.syrup.helpers
Class WorkflowImpl

java.lang.Object
  extended byorg.syrup.helpers.WorkflowImpl
All Implemented Interfaces:
Result, Workflow

public class WorkflowImpl
extends java.lang.Object
implements Workflow

A generic Workflow implementation.

Author:
Robbert van Dalen

Constructor Summary
WorkflowImpl(ResultImpl r, NetworkImpl n)
          Constructor for the WorkflowImpl object
 
Method Summary
 Context context()
          Returns the Context from which the Result is computed.
 InPort in_1_binding()
          Returns the new InPort that the parent's first input will be re-linked to.
 boolean in_1_consumed()
          Returns true if the first input has been consumed.
 InPort in_2_binding()
          Returns the new InPort that the parent's second input will be re-linked to.
 boolean in_2_consumed()
          Returns true if the second input has been consumed.
 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.
 Data out_1_result()
          Returns the first resulting output.
 OutPort out_2_binding()
          Returns the new OutPort that the parent's second output will be re-linked to.
 Data out_2_result()
          Return the second resulting output.
 Task[] tasks()
          Returns all Tasks of this Workflow.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WorkflowImpl

public WorkflowImpl(ResultImpl r,
                    NetworkImpl n)
Constructor for the WorkflowImpl object

Parameters:
r - The ResultImpl that provides the Result implementation.
n - The NetworkImpl that provides the Network implementation.
Method Detail

context

public Context context()
Description copied from interface: Result
Returns the Context from which the Result is computed.

Specified by:
context in interface Result
Returns:
The Context from which the Result is computed.

in_1_consumed

public boolean in_1_consumed()
Description copied from interface: Result
Returns true if the first input has been consumed.

Specified by:
in_1_consumed in interface Result
Returns:
true if the first input has been consumed.

in_2_consumed

public boolean in_2_consumed()
Description copied from interface: Result
Returns true if the second input has been consumed.

Specified by:
in_2_consumed in interface Result
Returns:
true if the second input has been consumed.

out_1_result

public Data out_1_result()
Description copied from interface: Result
Returns the first resulting output.

Specified by:
out_1_result in interface Result
Returns:
The first resulting output.

out_2_result

public Data out_2_result()
Description copied from interface: Result
Return the second resulting output.

Specified by:
out_2_result in interface Result
Returns:
The second resulting output.

in_1_binding

public InPort in_1_binding()
Description copied from interface: Workflow
Returns the new InPort that the parent's first input will be re-linked to.

Specified by:
in_1_binding in interface Workflow
Returns:
The re-linked first InPort.

in_2_binding

public InPort in_2_binding()
Description copied from interface: Workflow
Returns the new InPort that the parent's second input will be re-linked to.

Specified by:
in_2_binding in interface Workflow
Returns:
The re-linked second InPort.

out_1_binding

public OutPort out_1_binding()
Description copied from interface: Workflow
Returns the new OutPort that the parent's first output will be re-linked to.

Specified by:
out_1_binding in interface Workflow
Returns:
The re-linked first OutPort.

out_2_binding

public OutPort out_2_binding()
Description copied from interface: Workflow
Returns the new OutPort that the parent's second output will be re-linked to.

Specified by:
out_2_binding in interface Workflow
Returns:
The re-linked second OutPort.

tasks

public Task[] tasks()
Description copied from interface: Workflow
Returns all Tasks of this Workflow.

Specified by:
tasks in interface Workflow
Returns:
An array of Tasks contained by this Workflow.

links

public Link[] links()
Description copied from interface: Workflow
Returns all Links between Tasks of this Workflow.

Specified by:
links in interface Workflow
Returns:
An array of Links between Tasks contained by this Workflow.