diff options
| author | Benjamin Culkin <bjculkin@mix.wvu.edu> | 2018-04-27 15:40:15 -0700 |
|---|---|---|
| committer | Benjamin Culkin <bjculkin@mix.wvu.edu> | 2018-04-27 15:40:15 -0700 |
| commit | 251389fde5a3ae708d61d113bb55d934729f18db (patch) | |
| tree | 2ad6ca4a374df7816094abab96d15d3102ba9984 /src/bjc/imgchain/pipeline/MutablePipeline.java | |
| parent | a390222aeb0c5bf6982108e6fc0b492e97e43b39 (diff) | |
Fix bugs
Diffstat (limited to 'src/bjc/imgchain/pipeline/MutablePipeline.java')
| -rw-r--r-- | src/bjc/imgchain/pipeline/MutablePipeline.java | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/src/bjc/imgchain/pipeline/MutablePipeline.java b/src/bjc/imgchain/pipeline/MutablePipeline.java index d1d228d..98b4ff9 100644 --- a/src/bjc/imgchain/pipeline/MutablePipeline.java +++ b/src/bjc/imgchain/pipeline/MutablePipeline.java @@ -37,7 +37,7 @@ public class MutablePipeline implements Pipeline { * Create a new named mutable pipeline.
*
* @param name
- * The name of the pipeline.
+ * The name of the pipeline.
*/
public MutablePipeline(String name) {
stages = new ArrayList<>();
@@ -52,7 +52,7 @@ public class MutablePipeline implements Pipeline { int i = 1;
for (PipelineStage stage : stages) {
- System.out.println("Applying stage " + stage.name());
+ System.out.println("Applying stage " + stage.name() + "(" + stage.toString() + ")");
proc = stage.process(proc);
@@ -78,7 +78,7 @@ public class MutablePipeline implements Pipeline { * Set the name of the pipeline.
*
* @param nam
- * The name of the pipeline.
+ * The name of the pipeline.
*/
public void name(String nam) {
name = nam;
@@ -88,9 +88,10 @@ public class MutablePipeline implements Pipeline { * Append a pipeline stage to the end of this pipeline.
*
* @param stag
- * The stage to add.
+ * The stage to add.
*/
public void addStage(PipelineStage stag) {
+ System.out.println("Adding stage " + stag);
stages.add(stag);
}
@@ -98,9 +99,10 @@ public class MutablePipeline implements Pipeline { * Remove a pipeline stage.
*
* @param stag
- * The stage to remove.
+ * The stage to remove.
*/
public void removeStage(PipelineStage stag) {
+ System.out.println("Removing stage " + stag);
stages.remove(stag);
}
@@ -108,10 +110,12 @@ public class MutablePipeline implements Pipeline { * Remove a pipeline stage by index.
*
* @param idx
- * The index of the stage to remove.
+ * The index of the stage to remove.
*/
public void removeStage(int idx) {
+ System.out.println("Removing stage # " + idx);
stages.remove(idx);
+ System.out.println("Pipeline contains " + stages.size() + " stages");
}
}
|
