Package nz.org.riskscape.engine.pipeline
Class RealizedPipeline
java.lang.Object
nz.org.riskscape.engine.pipeline.RealizedPipeline
- All Implemented Interfaces:
AutoCloseable
-
Constructor Summary
ConstructorDescriptionRealizedPipeline
(ExecutionContext context, PipelineDeclaration pipeline, List<RealizedStep> steps) RealizedPipeline
(ExecutionContext context, PipelineDeclaration ast, List<RealizedStep> realizedSteps, List<Problem> problems) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
clone()
void
close()
drainWarnings
(Consumer<Problem> problemConsumer) boolean
getAst()
The source code that was realized to produce this realized pipelinegetDependents
(RealizedStep step) The individually realized steps, in the order they were realizedboolean
int
hashCode()
withMetadata
(PipelineMetadata newMetadata)
-
Constructor Details
-
RealizedPipeline
public RealizedPipeline(ExecutionContext context, PipelineDeclaration pipeline, List<RealizedStep> steps) -
RealizedPipeline
public RealizedPipeline(ExecutionContext context, PipelineDeclaration ast, List<RealizedStep> realizedSteps, List<Problem> problems)
-
-
Method Details
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-
getStartSteps
- Returns:
- the set of steps that have no dependencies
-
getEndSteps
- Returns:
- the set of
RealizedStep
s that no other steps depend on
-
getDependents
- Returns:
- a Set of
RealizedStep
s that have a dependency on the given step
-
getFailures
-
hasFailures
public boolean hasFailures() -
getStep
- Returns:
- a step by its name within the pipeline (c.f. NamedStep), or
empty
if none can be found
-
clone
-
drainWarnings
- Returns:
- the RealizedPipeline with any warnings removed and passed to the problemConsumer
-
getMetadata
- Returns:
- metadata associated with this
RealizedPipeline
-
withMetadata
- Returns:
- a copy of this pipeline, with different metadata to the original.
-
equals
-
canEqual
-
hashCode
public int hashCode() -
getContext
-
getAst
The source code that was realized to produce this realized pipeline
-
getRealizedSteps
The individually realized steps, in the order they were realized
-