Package nz.org.riskscape.engine.steps
Class ForeachStep
java.lang.Object
nz.org.riskscape.engine.steps.BaseStep<ForeachStep.Parameters>
nz.org.riskscape.engine.steps.ForeachStep
- All Implemented Interfaces:
nz.org.riskscape.engine.Identified,nz.org.riskscape.engine.pipeline.Step
ForeachStep iterates over a static list, executing a child pipeline for each item. The child pipeline automatically has access to: - $item - the current element from the list - $index - the 0-based index of the current iteration
All child pipeline results are combined using UnionStep.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic class -
Field Summary
Fields inherited from interface nz.org.riskscape.engine.pipeline.Step
FUNCTOR_INTERFACES -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionnz.org.riskscape.engine.pipeline.RealizedPipelinerealize(nz.org.riskscape.engine.pipeline.RealizationInput input) nz.org.riskscape.problem.ResultOrProblems<? extends nz.org.riskscape.engine.pipeline.Realized>realize(ForeachStep.Parameters params) Methods inherited from class nz.org.riskscape.engine.steps.BaseStep
bindInputs, bindParameters, buildParametersObject, equals, findParameterClass, getDescription, getEngine, getId, getInputArity, getInputNames, getParamContext, getParameterSet, hashCode, realizeSimple, resolvePipelineParameters, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface nz.org.riskscape.engine.Identified
getIdentifiedClassMethods inherited from interface nz.org.riskscape.engine.pipeline.Step
getDeclaredParameter, getDeclaredParameterNames, getDeclaredParameters, getDefaultInputName, hasNamedInput
-
Constructor Details
-
ForeachStep
public ForeachStep(nz.org.riskscape.engine.Engine engine)
-
-
Method Details
-
realize
public nz.org.riskscape.engine.pipeline.RealizedPipeline realize(nz.org.riskscape.engine.pipeline.RealizationInput input) - Specified by:
realizein interfacenz.org.riskscape.engine.pipeline.Step- Overrides:
realizein classBaseStep<ForeachStep.Parameters>
-
realize
public nz.org.riskscape.problem.ResultOrProblems<? extends nz.org.riskscape.engine.pipeline.Realized> realize(ForeachStep.Parameters params) - Specified by:
realizein classBaseStep<ForeachStep.Parameters>
-