Class IniFileModelBuilder2

java.lang.Object
nz.org.riskscape.engine.ini.IdentifiedObjectBuilder.Base<nz.org.riskscape.engine.model.IdentifiedModel>
nz.org.riskscape.engine.ini.IniFileModelBuilder2
All Implemented Interfaces:
IdentifiedObjectBuilder<nz.org.riskscape.engine.model.IdentifiedModel>

public class IniFileModelBuilder2 extends IdentifiedObjectBuilder.Base<nz.org.riskscape.engine.model.IdentifiedModel>

Builds a framework-based model from an INI definition.

  • Field Details

  • Constructor Details

    • IniFileModelBuilder2

      public IniFileModelBuilder2(nz.org.riskscape.engine.Project project)
  • Method Details

    • buildModel

      public nz.org.riskscape.problem.ResultOrProblems<nz.org.riskscape.engine.model.IdentifiedModel> buildModel(String modelName, nz.org.riskscape.config.ConfigSection section)

      Builds a model from an INI file section

    • build

      public nz.org.riskscape.problem.ResultOrProblems<nz.org.riskscape.engine.model.IdentifiedModel> build(String id, nz.org.riskscape.config.ConfigSection section)
      Description copied from interface: IdentifiedObjectBuilder

      Builds the item based on the given INI section.

      Returns:
      the item successfully built, or any problems that occurred.