Package repast.simphony.parameter.bsf
Class ScriptRunner
java.lang.Object
repast.simphony.parameter.bsf.ScriptRunner
- All Implemented Interfaces:
SweeperProducer
Runs a bsf script to set up a parameter sweep. This
puts a ParameterSweepBuilder with the variable name 'builder'
into the script's execution space.
- Version:
- $Revision$ $Date$
- Author:
- Nick Collier
-
Constructor Summary
ConstructorsConstructorDescriptionScriptRunner(File file) Creates a ScriptRunner to run the specified file.ScriptRunner(RunResultProducer producer, File file) Creates a ScriptRunner to run the specified file using the specified RunResultProducer to optimize the parameters.ScriptRunner(RunResultProducer producer, AdvancementChooser chooser, File file) Creates a ScriptRunner to run the specified file using the specified RunResultProducer, and AdvancementChooser to optimize the parameters. -
Method Summary
Modifier and TypeMethodDescriptionGets the Parameters created by the script via the ParameterSweeperBuilder.Gets the ParameterTreeSweeper reated by the script via the ParameterSweeperBuilder.voidinit(ControllerRegistry registry, Object masterContextId) Initializes the producer with the controller registry and master context id.
-
Constructor Details
-
ScriptRunner
Creates a ScriptRunner to run the specified file using the specified RunResultProducer to optimize the parameters.- Parameters:
producer- the producer to usefile- the file to run
-
ScriptRunner
Creates a ScriptRunner to run the specified file using the specified RunResultProducer, and AdvancementChooser to optimize the parameters.- Parameters:
producer- the producer to usechooser- the chooser to usefile- the file to run
-
ScriptRunner
Creates a ScriptRunner to run the specified file.- Parameters:
file- the file to run
-
-
Method Details
-
init
Initializes the producer with the controller registry and master context id.- Specified by:
initin interfaceSweeperProducer- Parameters:
registry-masterContextId-
-
getParameters
Gets the Parameters created by the script via the ParameterSweeperBuilder.- Specified by:
getParametersin interfaceSweeperProducer- Returns:
- the Parameters created by the script via the ParameterSweeperBuilder.
- Throws:
IOException
-
getParameterSweeper
Gets the ParameterTreeSweeper reated by the script via the ParameterSweeperBuilder.- Specified by:
getParameterSweeperin interfaceSweeperProducer- Returns:
- the ParameterTreeSweeper reated by the script via the ParameterSweeperBuilder.
- Throws:
IOException
-