Class InputDataPhase
- All Implemented Interfaces:
Phase
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final ChangeLocationThe 'main' branch of the pipeline that subsequent phases should hang off.static final StringFields inherited from class nz.org.riskscape.wizard.survey2.BasePhase
builtQuestionSets, skippableQuestionSets, surveyFields inherited from interface nz.org.riskscape.wizard.survey2.Phase
EMPTY_PHASE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanSkip(IncrementalBuildState buildState) createInputDataQuestionSet(String datasetName) createInputDataQuestionSet(String originalDatasetName, int multiHazardIndex) static StringgetAttributeName(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 StringgetDatasetName(nz.org.riskscape.engine.pipeline.RealizedStep inputStep) getDatasetsToSample(IncrementalBuildState buildState) static booleanisHazardDataset(String datasetName) static booleanisMultiHazard(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:BasePhaseDefault 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:
getAvailableQuestionSetsin classBasePhase
-
canSkip
-
createInputDataQuestionSet
-
createInputDataQuestionSet
-
isHazardDataset
-