java.lang.Object
com.genologics.ri.step.PooledInputs
- All Implemented Interfaces:
Serializable
Provides pooled input groups.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.PooledInputs(Collection<? extends Linkable<Artifact>> inputArtifacts, String poolName) Constructor with input artifacts and pool name.PooledInputs(Collection<? extends Linkable<Artifact>> inputArtifacts, String poolName, Linkable<Artifact> outputArtifact) Constructor with input artifacts, pool name and output artifact. -
Method Summary
Modifier and TypeMethodDescriptionCreates and adds an input from an artifact.Adds an input to this pool.Gets the list of input artifacts.getName()Gets the name of this pool.Gets the URI of the output artifact.voidsetInputArtifacts(Collection<? extends Linkable<Artifact>> artifacts) Sets the input artifacts, replacing any existing inputs.voidSets the name of this pool.voidSets the output from an Output object.voidsetOutputArtifact(Linkable<Artifact> artifact) Sets the output artifact.voidsetOutputUri(URI outputUri) Sets the URI of the output artifact.
-
Field Details
-
inputs
The list of input artifacts in this pool. -
name
The name of this pool. -
outputUri
The URI of the output artifact created from this pool.
-
-
Constructor Details
-
PooledInputs
public PooledInputs()Default constructor. -
PooledInputs
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
Gets the name of this pool.- Returns:
- The pool name.
-
setName
Sets the name of this pool.- Parameters:
name- The pool name to set.
-
getOutputUri
Gets the URI of the output artifact.- Returns:
- The output artifact URI.
-
setOutputUri
Sets the URI of the output artifact.- Parameters:
outputUri- The output artifact URI to set.
-
setOutput
Sets the output from an Output object.- Parameters:
output- The output object.
-
setOutputArtifact
Sets the output artifact.- Parameters:
artifact- The output artifact to set.
-
getInputs
Gets the list of input artifacts. Creates the list if it doesn't exist.- Returns:
- The list of inputs.
-
addInput
Adds an input to this pool.- Parameters:
input- The input to add.- Returns:
- The added input.
-
addInput
Creates and adds an input from an artifact.- Parameters:
artifact- The artifact to add as an input.- Returns:
- The created input.
-
setInputArtifacts
Sets the input artifacts, replacing any existing inputs.- Parameters:
artifacts- The collection of artifacts to set as inputs.
-