Class BaseModelFramework

java.lang.Object
nz.org.riskscape.engine.pipeline.BaseModelFramework
All Implemented Interfaces:
nz.org.riskscape.engine.Identified, nz.org.riskscape.engine.model.ModelFramework
Direct Known Subclasses:
ParameterizedPipelineModelFramework

public abstract class BaseModelFramework extends Object implements nz.org.riskscape.engine.model.ModelFramework

Base class for ModelFrameworks - so far this is just a place for a convenient method for handling an incomplete ParameterSet to live.

TOOD consider making this a bit more structured and follow an open-closed design, like with BaseBookmarkResolver

  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected nz.org.riskscape.problem.ResultOrProblems<nz.org.riskscape.engine.model.Model>
    buildWithIncompleteParameters(nz.org.riskscape.engine.bind.BoundParameters modelParameters, Function<nz.org.riskscape.engine.bind.BoundParameters,nz.org.riskscape.engine.model.Model> modelBuilder)
    Builds the model if the supplied parameters have no problems except for missing parameters.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface nz.org.riskscape.engine.Identified

    getId, getIdentifiedClass

    Methods inherited from interface nz.org.riskscape.engine.model.ModelFramework

    build, getBuildParameterSet
  • Constructor Details

    • BaseModelFramework

      public BaseModelFramework()
  • Method Details

    • buildWithIncompleteParameters

      protected nz.org.riskscape.problem.ResultOrProblems<nz.org.riskscape.engine.model.Model> buildWithIncompleteParameters(nz.org.riskscape.engine.bind.BoundParameters modelParameters, Function<nz.org.riskscape.engine.bind.BoundParameters,nz.org.riskscape.engine.model.Model> modelBuilder)

      Builds the model if the supplied parameters have no problems except for missing parameters. We expect some parameters to be missing, they are for the user to enter when running the model.

      Note that warnings will be added if there are any unexpected parameters.

      Parameters:
      modelParameters -
      modelBuilder -
      Returns:
      ResultOrProblems