Package repast.simphony.parameter.groovy
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 Summary
Constructors Constructor Description GroovyRunner(File script)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Parameters
getParameters()
Gets the Parameters produced by this SweeperProducer.ParameterTreeSweeper
getParameterSweeper()
Gets the ParameterTreeSweeper produced by this SweeperProducer.void
init(ControllerRegistry registry, Object masterContextId)
Initializes the producer with the controller registry and master context id.
-
-
-
Constructor Detail
-
GroovyRunner
public GroovyRunner(File script)
-
-
Method Detail
-
getParameterSweeper
public ParameterTreeSweeper getParameterSweeper() throws IOException
Gets the ParameterTreeSweeper produced by this SweeperProducer.- Specified by:
getParameterSweeper
in interfaceSweeperProducer
- 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 interfaceSweeperProducer
- 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 interfaceSweeperProducer
- Parameters:
registry
-masterContextId
-
-
-