Class Plugin

java.lang.Object
nz.org.riskscape.engine.plugin.Plugin
nz.org.riskscape.engine.defaults.Plugin
All Implemented Interfaces:
nz.org.riskscape.engine.function.FunctionProvider

public class Plugin extends nz.org.riskscape.engine.plugin.Plugin implements nz.org.riskscape.engine.function.FunctionProvider
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final nz.org.riskscape.engine.resource.Resource
    Dummy Resource to identify things as coming from the defaults plugin.
    static final URI
     
    static final String
    Manifest file attribute name expected to contain a space separated list of class names to load as IdentifiedFunctions.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Plugin(nz.org.riskscape.engine.plugin.PluginDescriptor pDescriptor)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    addDefaultTypeInformation(nz.org.riskscape.engine.Engine engine)
     
    void
    addFunctions(nz.org.riskscape.engine.Project project, Consumer<nz.org.riskscape.problem.Problem> problemSink)
     
    void
    addOutputFormats(nz.org.riskscape.engine.Engine engine)
     
    void
    addResourceLoaders(nz.org.riskscape.engine.Engine engine)
     
    void
    addSteps(nz.org.riskscape.engine.Engine engine)
     
    List<nz.org.riskscape.engine.plugin.PluginFeature>
     
    List<nz.org.riskscape.problem.Problem>
    initializeEngine(nz.org.riskscape.engine.Engine engine)
     
    List<nz.org.riskscape.problem.Problem>
    initializeProject(nz.org.riskscape.engine.Project project, nz.org.riskscape.engine.Engine engine)
     
    void
    startUp(Map<String,List<String>> settingsConfig, nz.org.riskscape.problem.ProblemSink sink)
     

    Methods inherited from class nz.org.riskscape.engine.plugin.Plugin

    finalize, getDescriptor, getExtensionPoints, getI18nClassLoader, getId, initializeEngine, shutDown, startUp, supportsFeature

    Methods inherited from class java.lang.Object

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

    • FUNCTION_CLASSES_ATTRIBUTE_NAME

      public static final String FUNCTION_CLASSES_ATTRIBUTE_NAME

      Manifest file attribute name expected to contain a space separated list of class names to load as IdentifiedFunctions.

      See Also:
    • DEFAULTS_SOURCE_URI

      public static final URI DEFAULTS_SOURCE_URI
    • DEFAULTS_SOURCE

      public static final nz.org.riskscape.engine.resource.Resource DEFAULTS_SOURCE

      Dummy Resource to identify things as coming from the defaults plugin.

  • Constructor Details

    • Plugin

      public Plugin(nz.org.riskscape.engine.plugin.PluginDescriptor pDescriptor)
  • Method Details

    • addDefaultTypeInformation

      public static void addDefaultTypeInformation(nz.org.riskscape.engine.Engine engine)
    • initializeEngine

      public List<nz.org.riskscape.problem.Problem> initializeEngine(nz.org.riskscape.engine.Engine engine)
      Specified by:
      initializeEngine in class nz.org.riskscape.engine.plugin.Plugin
    • startUp

      public void startUp(Map<String,List<String>> settingsConfig, nz.org.riskscape.problem.ProblemSink sink)
      Overrides:
      startUp in class nz.org.riskscape.engine.plugin.Plugin
    • initializeProject

      public List<nz.org.riskscape.problem.Problem> initializeProject(nz.org.riskscape.engine.Project project, nz.org.riskscape.engine.Engine engine)
      Overrides:
      initializeProject in class nz.org.riskscape.engine.plugin.Plugin
    • addFunctions

      public void addFunctions(nz.org.riskscape.engine.Project project, Consumer<nz.org.riskscape.problem.Problem> problemSink)
      Specified by:
      addFunctions in interface nz.org.riskscape.engine.function.FunctionProvider
    • addOutputFormats

      public void addOutputFormats(nz.org.riskscape.engine.Engine engine)
    • addSteps

      public void addSteps(nz.org.riskscape.engine.Engine engine)
    • addResourceLoaders

      public void addResourceLoaders(nz.org.riskscape.engine.Engine engine)
    • getFeatures

      public List<nz.org.riskscape.engine.plugin.PluginFeature> getFeatures()
      Overrides:
      getFeatures in class nz.org.riskscape.engine.plugin.Plugin