public class PipelineConnections extends java.lang.Object implements IPipelineConnections
Modifier and Type | Field and Description |
---|---|
protected java.util.Map<java.lang.Integer,java.lang.Integer> |
outputConnectionLookupMap |
protected java.lang.String[] |
outputConnectionNames |
protected IOutputConnection[] |
outputConnections |
protected IPipelineSpecificationBasic |
spec |
protected java.util.Map<java.lang.Integer,java.lang.Integer> |
transformationConnectionLookupMap |
protected java.lang.String[] |
transformationConnectionNames |
protected ITransformationConnection[] |
transformationConnections |
_rcsid
Constructor and Description |
---|
PipelineConnections(IPipelineSpecificationBasic spec,
ITransformationConnectionManager transformationConnectionManager,
IOutputConnectionManager outputConnectionManager) |
Modifier and Type | Method and Description |
---|---|
boolean |
checkStageOutputConnection(int stage)
Check if a stage is an output stage.
|
java.lang.Integer |
getOutputConnectionIndex(int stage)
Get the index of the output connection corresponding to a
specific pipeline stage.
|
java.lang.String[] |
getOutputConnectionNames()
Get the output connection names mentioned by the IPipelineSpecification
object.
|
IOutputConnection[] |
getOutputConnections()
Get the output connection instances mentioned by the IPipelineSpecification
object.
|
int |
getOutputCount()
Return the number of output connections.
|
int |
getOutputStage(int index)
Given an output index, return the stage number for that output.
|
int[] |
getStageChildren(int stage)
Find children of a given pipeline stage.
|
java.lang.String |
getStageConnectionName(int stage)
Get the connection name for a pipeline stage.
|
int |
getStageCount()
Get a count of all stages.
|
int |
getStageParent(int stage)
Find parent of a given pipeline stage.
|
java.lang.Integer |
getTransformationConnectionIndex(int stage)
Get the index of the transformation connection corresponding to a
specific pipeline stage.
|
java.lang.String[] |
getTransformationConnectionNames()
Get the transformation connection names mentioned by the IPipelineSpecification
object.
|
ITransformationConnection[] |
getTransformationConnections()
Get the transformation connection instances mentioned by the IPipelineSpecification
object.
|
protected final IPipelineSpecificationBasic spec
protected final java.lang.String[] transformationConnectionNames
protected final ITransformationConnection[] transformationConnections
protected final java.lang.String[] outputConnectionNames
protected final IOutputConnection[] outputConnections
protected final java.util.Map<java.lang.Integer,java.lang.Integer> transformationConnectionLookupMap
protected final java.util.Map<java.lang.Integer,java.lang.Integer> outputConnectionLookupMap
public PipelineConnections(IPipelineSpecificationBasic spec, ITransformationConnectionManager transformationConnectionManager, IOutputConnectionManager outputConnectionManager) throws ManifoldCFException
ManifoldCFException
public int getStageCount()
getStageCount
in interface IPipelineSpecificationBasic
public int[] getStageChildren(int stage)
getStageChildren
in interface IPipelineSpecificationBasic
stage
- is the stage index to get the children of.public int getStageParent(int stage)
getStageParent
in interface IPipelineSpecificationBasic
stage
- is the stage index to get the parent of.public java.lang.String getStageConnectionName(int stage)
getStageConnectionName
in interface IPipelineSpecificationBasic
stage
- is the stage to get the connection name for.public boolean checkStageOutputConnection(int stage)
checkStageOutputConnection
in interface IPipelineSpecificationBasic
stage
- is the stage to check.public int getOutputCount()
getOutputCount
in interface IPipelineSpecificationBasic
public int getOutputStage(int index)
getOutputStage
in interface IPipelineSpecificationBasic
index
- is the output connection index.public java.lang.String[] getTransformationConnectionNames()
IPipelineConnections
getTransformationConnectionNames
in interface IPipelineConnections
public ITransformationConnection[] getTransformationConnections()
IPipelineConnections
getTransformationConnections
in interface IPipelineConnections
public java.lang.String[] getOutputConnectionNames()
IPipelineConnections
getOutputConnectionNames
in interface IPipelineConnections
public IOutputConnection[] getOutputConnections()
IPipelineConnections
getOutputConnections
in interface IPipelineConnections
public java.lang.Integer getTransformationConnectionIndex(int stage)
IPipelineConnections
getTransformationConnectionIndex
in interface IPipelineConnections
public java.lang.Integer getOutputConnectionIndex(int stage)
IPipelineConnections
getOutputConnectionIndex
in interface IPipelineConnections