Package nz.org.riskscape.engine.pipeline
Class NullStep
java.lang.Object
nz.org.riskscape.engine.pipeline.NullStep
- All Implemented Interfaces:
Identified
,Step
A Pipeline
Step
that does nothing. It is mostly here for completeness and is useful in cases where
a null might want to be returned or where something needs to be present that isn't an actual useful thing. If
realized, this step produces an empty relation that yields an empty struct.
TODO We may want to tweak it slightly so that if given input it yields
a Restrictor
that always says no.
-
Field Summary
Fields inherited from interface nz.org.riskscape.engine.pipeline.Step
FUNCTOR_INTERFACES
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetId()
com.google.common.collect.Range<Integer>
The set ofParameter
s this step accepts.ResultOrProblems<? extends Realized>
realize
(RealizationInput stepInput) Does the parameter validation required to produce an functor for the nextStep
.toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface nz.org.riskscape.engine.Identified
getIdentifiedClass
Methods inherited from interface nz.org.riskscape.engine.pipeline.Step
getDeclaredParameter, getDeclaredParameterNames, getDeclaredParameters, getDefaultInputName, getInputNames, hasNamedInput, named
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
NullStep
public NullStep()
-
-
Method Details
-
getParameterSet
Description copied from interface:Step
The set of
Parameter
s this step accepts. These should be used to populate a map for theStep.realize(RealizationInput)
method- Specified by:
getParameterSet
in interfaceStep
-
getInputArity
- Specified by:
getInputArity
in interfaceStep
- Returns:
- a range that describes the number of inputs this step supports. NB a bit unsure whether we really need this - at the moment it's defined by the functor... but it's possible we might need a n-input join functor...
-
realize
Description copied from interface:Step
Does the parameter validation required to produce an functor for the next
Step
. -
getId
- Specified by:
getId
in interfaceIdentified
- Returns:
- id
-
getDescription
- Specified by:
getDescription
in interfaceStep
- Returns:
- A human digestible description for this step.
-
toString
-