java.lang.Object
com.genologics.ri.processexecution.ExecutableInputOutputMap
- All Implemented Interfaces:
Serializable
Processes link inputs to outputs and this relationship is called an
input-output map. Input-output-map is a child element of the Process element.
When a Process creates multiple outputs per input, there is a distinct input-output map for each input to output relationship. When a Process produces a shared output, there is a single input-output map for the shared output and all its related inputs.
In situations where a Process is used to affect the properties of inputs only and therefore, does not create outputs, you can omit the output element.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.ExecutableInputOutputMap(Boolean shared) Constructor with shared flag. -
Method Summary
Modifier and TypeMethodDescriptionAdds an input with a QC flag to the input list.Adds an input to the input list.Gets the list of inputs.Gets the output artifact.isShared()Checks if the output is shared among multiple inputs.voidsetInputs(Collection<? extends Linkable<Artifact>> links) Sets the inputs from a collection of artifact links.setOutput(OutputType type, LimsEntityLinkable<Container> container, String position) Sets the output artifact with type, container, and position.Sets the output artifact.voidSets whether the output is shared.
-
Field Details
-
inputs
List of input artifacts. -
output
The output artifact.
-
-
Constructor Details
-
ExecutableInputOutputMap
public ExecutableInputOutputMap()Default constructor. -
ExecutableInputOutputMap
Constructor with shared flag.- Parameters:
shared- Whether the output is shared.
-
-
Method Details
-
getInputs
Gets the list of inputs.- Returns:
- The input list (never null).
-
setInputs
Sets the inputs from a collection of artifact links.- Parameters:
links- The artifact links to set as inputs.
-
addInput
Adds an input to the input list.- Parameters:
input- The input to add.- Returns:
- The added input.
-
addInput
Adds an input with a QC flag to the input list.- Parameters:
link- The artifact link.qc- The QC flag.- Returns:
- The added input.
-
getOutput
Gets the output artifact.- Returns:
- The output.
-
setOutput
Sets the output artifact.- Parameters:
output- The output to set.- Returns:
- The output that was set.
-
setOutput
Sets the output artifact with type, container, and position.- Parameters:
type- The output type.container- The container link.position- The position in the container.- Returns:
- The created output.
-