Class InputDataPhase
- All Implemented Interfaces:
Phase
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
static final ChangeLocation
The 'main' branch of the pipeline that subsequent phases should hang off.static final String
Fields inherited from class nz.org.riskscape.wizard.survey2.BasePhase
builtQuestionSets, skippableQuestionSets, survey
Fields inherited from interface nz.org.riskscape.wizard.survey2.Phase
EMPTY_PHASE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
canSkip
(IncrementalBuildState buildState) createInputDataQuestionSet
(String datasetName) createInputDataQuestionSet
(String originalDatasetName, int multiHazardIndex) static String
getAttributeName
(String dataset) We refer to the input-data layer in the plural form, but the pipeline attribute in the singular.getAvailableQuestionSets
(IncrementalBuildState buildState) Default implementation ofPhase#getAvailableQuestionSets(IncrementalBuildState)
that builds a static list of question sets the first time it sees a build state and then filters them based on what's already been answeredstatic String
getDatasetName
(nz.org.riskscape.engine.pipeline.RealizedStep inputStep) getDatasetsToSample
(IncrementalBuildState buildState) static boolean
isHazardDataset
(String datasetName) static boolean
isMultiHazard
(IncrementalBuildState buildState) Methods inherited from class nz.org.riskscape.wizard.survey2.BasePhase
buildQuestionSet, buildQuestionSets, builtQuestionsInvalid, contains, getName, getSurvey, isComplete, simple
-
Field Details
-
EXPOSURE_ATTRIBUTE
-
HAZARD_ATTRIBUTE
-
RESOURCE_ATTRIBUTE
-
MAIN_BRANCH
The 'main' branch of the pipeline that subsequent phases should hang off. This differentiates the branch containing the exposures from the various other input layers we add to the pipeline.
-
-
Constructor Details
-
InputDataPhase
-
-
Method Details
-
getAttributeName
We refer to the input-data layer in the plural form, but the pipeline attribute in the singular. Generally the user will only ever see the singular form, i.e. when they select attributes or view the final results. The singular form will make more sense in this case, as each row of output represents a single exposure. The plural form makes more sense to us devs as we build the pipeline
-
getDatasetName
-
isMultiHazard
-
getDatasetsToSample
- Returns:
- a list of the datasets that need to be sampled
-
getAvailableQuestionSets
Description copied from class:BasePhase
Default implementation of
Phase#getAvailableQuestionSets(IncrementalBuildState)
that builds a static list of question sets the first time it sees a build state and then filters them based on what's already been answered- Overrides:
getAvailableQuestionSets
in classBasePhase
-
canSkip
-
createInputDataQuestionSet
-
createInputDataQuestionSet
-
isHazardDataset
-