Package repast.simphony.batch.parameter
Class ParameterLineParser
java.lang.Object
repast.simphony.batch.parameter.ParameterLineParser
Parses a batch parameter line and into a Parameters object.
- Author:
- Nick Collier
-
Constructor Summary
ConstructorDescriptionParameterLineParser
(URI batchParamsFile) Creates a ParameterLineParser for parsing parameter lines produced from the specified parameters file. -
Method Summary
Modifier and TypeMethodDescriptionParses the parameters line and returns a Parameters object initialized with those parameters.
-
Constructor Details
-
ParameterLineParser
Creates a ParameterLineParser for parsing parameter lines produced from the specified parameters file. The file is used as a schema for creating the parameters.- Parameters:
batchParamsFile
-- Throws:
IOException
-
-
Method Details
-
parse
Parses the parameters line and returns a Parameters object initialized with those parameters. The line has the format R\tP1\tV1,P2\tV2,P3\tV3,... R is the run number followed by a tab. P* and V* is a parameter name and value pair which are separated from each other by a tab and from other PV pairs by a comma delimeter. The run number will be a parameter with the name BatchConstants.BATCH_RUN_PARAM_NAME and of the Integer type.- Parameters:
line
-- Returns:
- the initialiazed Parameters object
-