Class GroovyRunner

java.lang.Object
repast.simphony.parameter.groovy.GroovyRunner
All Implemented Interfaces:
SweeperProducer

public class GroovyRunner extends Object implements SweeperProducer
Runs a groovy file to setup a parameter sweep.
Author:
Nick Collier
  • Constructor Details

    • GroovyRunner

      public GroovyRunner(File script)
  • Method Details

    • getParameterSweeper

      public ParameterTreeSweeper getParameterSweeper() throws IOException
      Gets the ParameterTreeSweeper produced by this SweeperProducer.
      Specified by:
      getParameterSweeper in interface SweeperProducer
      Returns:
      the ParameterTreeSweeper produced by this SweeperProducer.
      Throws:
      IOException
    • getParameters

      public Parameters getParameters() throws IOException
      Gets the Parameters produced by this SweeperProducer.
      Specified by:
      getParameters in interface SweeperProducer
      Returns:
      the ParameterTreeSweeper produced by this SweeperProducer.
      Throws:
      IOException
    • init

      public void init(ControllerRegistry registry, Object masterContextId)
      Initializes the producer with the controller registry and master context id. An action will be added to the registry. This action sets the RunState on any CustomParameterSetters found in the sweeper.
      Specified by:
      init in interface SweeperProducer
      Parameters:
      registry -
      masterContextId -