Class CommandStep

  • All Implemented Interfaces:
    Step, Serializable

    public class CommandStep
    extends AbstractStep
    This class define a step based on a Command object (workflow file).
    Since:
    2.0
    Author:
    Laurent Jourdren
    See Also:
    Serialized Form
    • Constructor Detail

      • CommandStep

        public CommandStep​(AbstractWorkflow workflow,
                           Step.StepType type)
        Constructor that create a step with nothing to execute like ROOT_STEP, DESIGN_STEP and FIRST_STEP.
        Parameters:
        workflow - the workflow of the step
        type - the type of the step
      • CommandStep

        public CommandStep​(AbstractWorkflow workflow,
                           String id,
                           String moduleName,
                           String stepVersion,
                           Set<Parameter> parameters,
                           boolean skip,
                           Step.DiscardOutput discardOutput,
                           int requiredMemory,
                           int requiredProcessors,
                           String dataProduct)
                    throws EoulsanException
        Create a step for a standard step.
        Parameters:
        workflow - workflow of the step
        id - identifier of the step
        moduleName - module name
        stepVersion - step version
        parameters - parameters of the step
        skip - true to skip execution of the step
        discardOutput - discard output value
        requiredMemory - required memory
        requiredProcessors - required processors
        dataProduct - data product
        Throws:
        EoulsanException - id an error occurs while creating the step
      • CommandStep

        public CommandStep​(AbstractWorkflow workflow,
                           String id,
                           String moduleName,
                           String stepVersion,
                           Set<Parameter> parameters,
                           boolean skip,
                           Step.DiscardOutput discardOutput,
                           int requiredMemory,
                           int requiredProcessors,
                           String dataProduct,
                           DataFile outputDirectory)
                    throws EoulsanException
        Create a step for a standard step.
        Parameters:
        workflow - workflow of the step
        id - identifier of the step
        moduleName - module name
        stepVersion - step version
        parameters - parameters of the step
        skip - true to skip execution of the step
        discardOutput - discard output value
        requiredMemory - required memory
        requiredProcessors - required processors
        dataProduct - data product
        outputDirectory - output directory
        Throws:
        EoulsanException - id an error occurs while creating the step
      • CommandStep

        public CommandStep​(AbstractWorkflow workflow,
                           Module module)
                    throws EoulsanException
        Create a step for a standard step from an existing step object.
        Parameters:
        workflow - workflow of the step
        module - module object
        Throws:
        EoulsanException - id an error occurs while creating the step
      • CommandStep

        public CommandStep​(AbstractWorkflow workflow,
                           Module module,
                           Set<Parameter> parameters)
                    throws EoulsanException
        Create a step for a standard step from an existing step object.
        Parameters:
        workflow - workflow of the step
        module - module object
        parameters - parameters of the step
        Throws:
        EoulsanException - id an error occurs while creating the step