Class TPipeline
- java.lang.Object
-
- edu.wpi.grip.ui.codegeneration.data.TPipeline
-
public class TPipeline extends java.lang.Object
TPipeline(template pipeline) is a data structure that holds the information about a pipeline needed by the velocity templates to generate code.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<TStep>
getMovingThresholds()
Creates a list of all of the Moving_Threshold operations.java.util.List<TInput>
getSources()
Returns a list of all of the sources in a the pipeline.java.util.List<TStep>
getSteps()
used in Pipeline.vm to get all of the TStepsjava.util.List<TStep>
getUniqueSteps()
Creates a list of the unique operations in a pipeline.int
instancesOfOperation(java.lang.String operationName)
Gets the number of instances of an operation in the pipeline.
-
-
-
Field Detail
-
steps
protected java.util.List<TStep> steps
-
-
Constructor Detail
-
TPipeline
public TPipeline(java.util.List<Step> steps)
Creates a Tpipeline from a pipeline- Parameters:
steps
- The list of steps from the pipeline to generate.
-
-
Method Detail
-
getSteps
public java.util.List<TStep> getSteps()
used in Pipeline.vm to get all of the TSteps- Returns:
- the TSteps that are in the TPipeline
-
getUniqueSteps
public java.util.List<TStep> getUniqueSteps()
Creates a list of the unique operations in a pipeline. Used in templates.- Returns:
- A list of the unique steps.
-
getSources
public java.util.List<TInput> getSources()
Returns a list of all of the sources in a the pipeline.- Returns:
- the list of sources.
-
getMovingThresholds
public java.util.List<TStep> getMovingThresholds()
Creates a list of all of the Moving_Threshold operations. Used in Templates.- Returns:
- the list of Moving_Threshold operations.
-
instancesOfOperation
public int instancesOfOperation(java.lang.String operationName)
Gets the number of instances of an operation in the pipeline.- Parameters:
operationName
- the name of the operation- Returns:
- the number of instances of an operation in this pipeline
-
-