net.kwfgrid.gwes.workflowgenerator
Class SingleJob

java.lang.Object
  extended by net.kwfgrid.gwes.workflowgenerator.WorkflowGenerator
      extended by net.kwfgrid.gwes.workflowgenerator.SingleJob

public class SingleJob
extends WorkflowGenerator

This class can be used as helper class to automatically generate workflows that invoke single jobs.

Version:
$Id: SingleJob.java 1422 2010-11-01 14:15:25Z hoheisel $
Author:
Andreas Hoheisel (www.andreas-hoheisel.de)

Field Summary
 
Fields inherited from class net.kwfgrid.gwes.workflowgenerator.WorkflowGenerator
workflow, workflowType
 
Constructor Summary
SingleJob(String operationClass, Map<String,String> inputs, List<String> outputs)
          Generate a workflow with one single job that invokes a specified operation class with a set of input and output parameters.
SingleJob(String operationClass, String operationType, String operationName, String resourceName, Map<String,String> inputs, List<String> outputs)
          Generate a workflow with one single job that invokes a specified operation with a set of input and output parameters.
 
Method Summary
 net.kwfgrid.gworkflowdl.structure.OperationCandidate getOperationCandidate()
          Get the operation candidate or null if there is no operation candidate.
 net.kwfgrid.gworkflowdl.structure.OperationClass getOperationClass()
          Get the operation class.
 net.kwfgrid.gworkflowdl.structure.Transition getTransition()
          Get the transition.
 
Methods inherited from class net.kwfgrid.gwes.workflowgenerator.WorkflowGenerator
getWorkflow, getWorkflowID, getWorkflowType, getXML
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SingleJob

public SingleJob(String operationClass,
                 Map<String,String> inputs,
                 List<String> outputs)
          throws net.kwfgrid.gworkflowdl.structure.WorkflowFormatException,
                 net.kwfgrid.gworkflowdl.structure.CapacityException
Generate a workflow with one single job that invokes a specified operation class with a set of input and output parameters.

Parameters:
operationClass - The operation class to invoke. This will also be used as transition identifier.
inputs - A Map that contains the input parameter names as keys and the input parameter values (without any parent elements) as values. If input map is null, then only a control token is introduced. Please use a LinkedHashMap if you want to preserve the order of the inputs.
outputs - A List that contains the output parameter names. If outputs are null, then a control output place is generated.
Throws:
net.kwfgrid.gworkflowdl.structure.WorkflowFormatException
net.kwfgrid.gworkflowdl.structure.CapacityException

SingleJob

public SingleJob(String operationClass,
                 String operationType,
                 String operationName,
                 String resourceName,
                 Map<String,String> inputs,
                 List<String> outputs)
          throws net.kwfgrid.gworkflowdl.structure.WorkflowFormatException,
                 net.kwfgrid.gworkflowdl.structure.CapacityException
Generate a workflow with one single job that invokes a specified operation with a set of input and output parameters.

Parameters:
operationClass - The operation class to invoke. This will also be used as transition identifier.
operationName - The concrete operation to invoke.
resourceName - The concrete resource to use to invoke the operation.
inputs - A Map that contains the input parameter names as keys and the input parameter values (without any parent elements) as values. If input map is null, then only a control token is introduced.
outputs - A List that contains the output parameter names. If outputs are null, then a control output place is generated.
Throws:
net.kwfgrid.gworkflowdl.structure.WorkflowFormatException
net.kwfgrid.gworkflowdl.structure.CapacityException
Method Detail

getOperationClass

public net.kwfgrid.gworkflowdl.structure.OperationClass getOperationClass()
Get the operation class.

Returns:

getOperationCandidate

public net.kwfgrid.gworkflowdl.structure.OperationCandidate getOperationCandidate()
Get the operation candidate or null if there is no operation candidate.

Returns:

getTransition

public net.kwfgrid.gworkflowdl.structure.Transition getTransition()
Get the transition.

Returns:


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