Class PooledInputs

java.lang.Object
com.genologics.ri.step.PooledInputs
All Implemented Interfaces:
Serializable

public class PooledInputs extends Object implements Serializable
Provides pooled input groups.
See Also:
  • Field Details

    • inputs

      protected List<Input> inputs
      The list of input artifacts in this pool.
    • name

      protected String name
      The name of this pool.
    • outputUri

      protected URI outputUri
      The URI of the output artifact created from this pool.
  • Constructor Details

    • PooledInputs

      public PooledInputs()
      Default constructor.
    • PooledInputs

      public PooledInputs(Collection<? extends Linkable<Artifact>> inputArtifacts, String poolName)
      Constructor with input artifacts and pool name.
      Parameters:
      inputArtifacts - The collection of input artifacts to pool.
      poolName - The name of the pool.
    • PooledInputs

      public PooledInputs(Collection<? extends Linkable<Artifact>> inputArtifacts, String poolName, Linkable<Artifact> outputArtifact)
      Constructor with input artifacts, pool name and output artifact.
      Parameters:
      inputArtifacts - The collection of input artifacts to pool.
      poolName - The name of the pool.
      outputArtifact - The output artifact created from this pool.
  • Method Details

    • getName

      public String getName()
      Gets the name of this pool.
      Returns:
      The pool name.
    • setName

      public void setName(String name)
      Sets the name of this pool.
      Parameters:
      name - The pool name to set.
    • getOutputUri

      public URI getOutputUri()
      Gets the URI of the output artifact.
      Returns:
      The output artifact URI.
    • setOutputUri

      public void setOutputUri(URI outputUri)
      Sets the URI of the output artifact.
      Parameters:
      outputUri - The output artifact URI to set.
    • setOutput

      public void setOutput(Output output)
      Sets the output from an Output object.
      Parameters:
      output - The output object.
    • setOutputArtifact

      public void setOutputArtifact(Linkable<Artifact> artifact)
      Sets the output artifact.
      Parameters:
      artifact - The output artifact to set.
    • getInputs

      public List<Input> getInputs()
      Gets the list of input artifacts. Creates the list if it doesn't exist.
      Returns:
      The list of inputs.
    • addInput

      public Input addInput(Input input)
      Adds an input to this pool.
      Parameters:
      input - The input to add.
      Returns:
      The added input.
    • addInput

      public Input addInput(Linkable<Artifact> artifact)
      Creates and adds an input from an artifact.
      Parameters:
      artifact - The artifact to add as an input.
      Returns:
      The created input.
    • setInputArtifacts

      public void setInputArtifacts(Collection<? extends Linkable<Artifact>> artifacts)
      Sets the input artifacts, replacing any existing inputs.
      Parameters:
      artifacts - The collection of artifacts to set as inputs.