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, Pipeline original, List<RealizedStep> realizedSteps) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
clone()
void
close()
drainWarnings
(Consumer<Problem> problemConsumer) boolean
getAst()
boolean
int
hashCode()
toString()
withMetadata
(PipelineMetadata newMetadata)
-
Constructor Details
-
RealizedPipeline
public RealizedPipeline(ExecutionContext context, Pipeline original, List<RealizedStep> realizedSteps)
-
-
Method Details
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-
getStartSteps
-
getEndSteps
-
getFailures
-
hasFailures
public boolean hasFailures() -
getPipeline
- Returns:
- the
Pipeline
thisRealizedPipeline
originates from.
-
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
-
getAst
- Returns:
- the AST this pipeline was realized from
-
getMetadata
- Returns:
- metadata associated with this
RealizedPipeline
-
withMetadata
- Returns:
- a copy of this pipeline, with different metadata to the original.
-
getOriginal
-
getRealizedSteps
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-
getContext
-