uk.org.ogsadai.activity.workflow
Class ParallelWorkflow

java.lang.Object
  extended by uk.org.ogsadai.activity.workflow.CompositeWorkflow
      extended by uk.org.ogsadai.activity.workflow.ParallelWorkflow
All Implemented Interfaces:
Workflow
Direct Known Subclasses:
ParallelWorkflow

public class ParallelWorkflow
extends CompositeWorkflow

A composite element that processes its children concurrently using a task processing service.

Author:
The OGSA-DAI Project Team

Constructor Summary
ParallelWorkflow()
          Creates a new flow request component with an auto-generated name.
ParallelWorkflow(java.lang.String name)
          Creates a new flow request component.
 
Method Summary
 void accept(WorkflowVisitor visitor)
          Accepts a visitor and calls the appropriate visit method for the concrete class.
 boolean allowsChildren()
          Indicates whether or not the workflow element allows children.
 java.lang.String toString()
           
 
Methods inherited from class uk.org.ogsadai.activity.workflow.CompositeWorkflow
addChild, getChildren, getInstanceName, removeChild
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ParallelWorkflow

public ParallelWorkflow()
Creates a new flow request component with an auto-generated name.


ParallelWorkflow

public ParallelWorkflow(java.lang.String name)
Creates a new flow request component.

Parameters:
name - instance name for the flow request component
Method Detail

allowsChildren

public boolean allowsChildren()
Description copied from interface: Workflow
Indicates whether or not the workflow element allows children.

Returns:
true if children are allowed, false otherwise

accept

public void accept(WorkflowVisitor visitor)
            throws VisitorException
Description copied from interface: Workflow
Accepts a visitor and calls the appropriate visit method for the concrete class.

Parameters:
visitor - visitor to accept and all a method on.
Throws:
VisitorException - if the visitor throws an exception. The recommended pattern is that the visitor provides a method that takes the VisitorException and throws exceptions applicable to the operation being performed by the visitor.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object