Package repast.simphony.parameter.xml
Class AbstractXMLSweeperProducer
- java.lang.Object
-
- repast.simphony.parameter.xml.AbstractXMLSweeperProducer
-
- All Implemented Interfaces:
SweeperProducer
- Direct Known Subclasses:
OptimizedXMLSweeperProducer
,XMLSweeperProducer
public class AbstractXMLSweeperProducer extends Object implements SweeperProducer
- Version:
- $Revision$ $Date$
- Author:
- Nick Collier
-
-
Field Summary
Fields Modifier and Type Field Description protected Parameters
params
ParameterSweepParser
parser
protected ParameterTreeSweeper
sweeper
-
Constructor Summary
Constructors Constructor Description AbstractXMLSweeperProducer()
-
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.protected void
parse()
-
-
-
Field Detail
-
parser
public ParameterSweepParser parser
-
sweeper
protected ParameterTreeSweeper sweeper
-
params
protected Parameters params
-
-
Method Detail
-
init
public void init(ControllerRegistry registry, Object masterContextId)
Initializes the producer with the controller registry and master context id. This will set the parser and the sweeper back to null.- Specified by:
init
in interfaceSweeperProducer
- Parameters:
registry
-masterContextId
-
-
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
-
parse
protected void parse() throws IOException
- Throws:
IOException
-
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
-
-