java.lang.Object
org.noise_planet.noisemodelling.webserver.script.ExecutionPlan

public class ExecutionPlan extends Object
Store the inputs and outputs of a job execution. Inputs values can be an instance of ExecutionPlan for a chained process and will be replaced by the outputs of the previous process.
  • Field Details

    • inputs

      protected final Map<String,Object> inputs
    • outputs

      protected Object outputs
    • scriptMetadata

      protected final ScriptMetadata scriptMetadata
    • chainedOutputKey

      protected final String chainedOutputKey
  • Constructor Details

    • ExecutionPlan

      public ExecutionPlan(Map<String,Object> inputs, ScriptMetadata scriptMetadata)
      Create a new ExecutionPlan.
      Parameters:
      inputs - WPS Scripts inputs
      scriptMetadata - Metadata of the script
    • ExecutionPlan

      public ExecutionPlan(Map<String,Object> inputs, ScriptMetadata scriptMetadata, String chainedOutputKey)
      Create a new ExecutionPlan for a chained process.
      Parameters:
      inputs - WPS Scripts inputs
      scriptMetadata - Metadata of the script
      chainedOutputKey - the name of the output of this plan used as an input of the parent plan
  • Method Details

    • getInputs

      public Map<String,Object> getInputs()
    • getOutputs

      public Object getOutputs()
    • getScriptMetadata

      public ScriptMetadata getScriptMetadata()
    • setOutputs

      public void setOutputs(Object outputs)
    • getChainedOutputKey

      public String getChainedOutputKey()
      Returns:
      the name of the output of this plan used as an input of the parent plan