net.kwfgrid.gwes.workflowgenerator
Class WorkflowGenerator

java.lang.Object
  extended by net.kwfgrid.gwes.workflowgenerator.WorkflowGenerator
Direct Known Subclasses:
SingleJob

public abstract class WorkflowGenerator
extends Object

Abstract class to be extended to implement workflow generators.

Version:
$Id: WorkflowGenerator.java 1532 2011-06-23 15:57:53Z hoheisel $
Author:
Andreas Hoheisel (www.andreas-hoheisel.de)

Field Summary
protected  net.kwfgrid.gworkflowdl.structure.Workflow workflow
          The workflow object.
protected  String workflowType
          The type of the workflow, e.g., "GWorkflowDL version 2.1".
 
Constructor Summary
protected WorkflowGenerator(String description)
          Constructor that generates an empty workflow with a specific description.
 
Method Summary
 net.kwfgrid.gworkflowdl.structure.Workflow getWorkflow()
          Get the workflow object.
 String getWorkflowID()
          Get the workflow identifier.
 String getWorkflowType()
          Get the type of the workflow, e.g., "GWorkflowDL version 2.1".
 String getXML()
          Convert the generated workflow to XML.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

workflow

protected final net.kwfgrid.gworkflowdl.structure.Workflow workflow
The workflow object. Will be created by the constructor of this abstract class and filled by the constructors of implementing classes.


workflowType

protected final String workflowType
The type of the workflow, e.g., "GWorkflowDL version 2.1".

Constructor Detail

WorkflowGenerator

protected WorkflowGenerator(String description)
Constructor that generates an empty workflow with a specific description. Use super(description) in all constructors that extend this abstract class.

Parameters:
description - The human-readable workflow description.
Method Detail

getWorkflow

public net.kwfgrid.gworkflowdl.structure.Workflow getWorkflow()
Get the workflow object.

Returns:
The workflow.

getWorkflowType

public String getWorkflowType()
Get the type of the workflow, e.g., "GWorkflowDL version 2.1".

Returns:
The type of the workflow as String.

getWorkflowID

public String getWorkflowID()
Get the workflow identifier.

Returns:
The workflow identifier.

getXML

public String getXML()
              throws IOException
Convert the generated workflow to XML.

Returns:
A string with the XML of the workflow.
Throws:
IOException


Copyright © 2005-2011 Fraunhofer FIRST. All Rights Reserved.