Package nz.org.riskscape.engine
Interface ProjectBuilder
- All Known Implementing Classes:
DefaultProjectBuilder
public interface ProjectBuilder
Initializes a Riskscape Project
for an Engine
and list of Plugin
s.
-
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.
-
Method Details
-
init
nz.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.
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.
- Parameters:
project
- to initialize- Returns:
- initialized project with any problems encountered
-