Class AIDepDiagram
- java.lang.Object
-
- net.stoerr.ai.aigenpipeline.commandline.AIDepDiagram
-
public class AIDepDiagram extends Object
-
-
Constructor Summary
Constructors Constructor Description AIDepDiagram(List<AIGenPipeline> pipelines, File rootDir)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
idForInOut(AIInOut inout)
protected String
labelForInOut(AIInOut inOut)
void
printDepDiagram(PrintStream out)
Prints a dependency diagram of the pipelines to the given output stream.List<AIGenPipeline>
sortedPipelines()
Does a topological sort to execute tasks that depend on other tasks later.
-
-
-
Constructor Detail
-
AIDepDiagram
public AIDepDiagram(List<AIGenPipeline> pipelines, File rootDir)
-
-
Method Detail
-
printDepDiagram
public void printDepDiagram(PrintStream out)
Prints a dependency diagram of the pipelines to the given output stream.- Parameters:
out
- the output stream to print to
-
sortedPipelines
@Nonnull public List<AIGenPipeline> sortedPipelines()
Does a topological sort to execute tasks that depend on other tasks later.- Returns:
- the sorted list of pipelines, not null
-
-