Package nz.org.riskscape.engine
Class DefaultProjectBuilder
java.lang.Object
nz.org.riskscape.engine.DefaultProjectBuilder
- All Implemented Interfaces:
ProjectBuilder
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionnz.org.riskscape.problem.ResultOrProblems<nz.org.riskscape.engine.Project>
init
(nz.org.riskscape.engine.Project project) Initialize the given project, returning back the same project and a list of any warnings that were raised.
-
Field Details
-
PROJECT_KEY
- See Also:
-
-
Constructor Details
-
DefaultProjectBuilder
public DefaultProjectBuilder()
-
-
Method Details
-
init
public nz.org.riskscape.problem.ResultOrProblems<nz.org.riskscape.engine.Project> init(nz.org.riskscape.engine.Project project) Description copied from interface:ProjectBuilder
Initialize the given project, returning back the same project and a list of any warnings that were raised.
Note that the project is initialized using resources already linked to the resource, e.g. its engine and its config. A previous incarnation of this interface accepted those as arguments, but now they are within the project. We might decide in the future that this interface is pointless and shift this construction/initialization logic in to the engine code and remove this API interface as it seems a bit like an implementation detail.
- Specified by:
init
in interfaceProjectBuilder
- Parameters:
project
- to initialize- Returns:
- initialized project with any problems encountered
-