Class DefaultProjectBuilder

java.lang.Object
nz.org.riskscape.engine.DefaultProjectBuilder
All Implemented Interfaces:
ProjectBuilder

public class DefaultProjectBuilder extends Object implements ProjectBuilder
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • 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 interface ProjectBuilder
      Parameters:
      project - to initialize
      Returns:
      initialized project with any problems encountered