Package repast.simphony.batch.parameter
Class ParametersToInput
java.lang.Object
repast.simphony.batch.parameter.ParametersToInput
- Author:
- Nick Collier
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets an iterator over the formatted input.void
formatForInput
(File output, File batchMapFile) Writes each batch parameters combination as a line in two files.static void
-
Constructor Details
-
ParametersToInput
public ParametersToInput(File paramsFile) throws MalformedURLException, ParserConfigurationException, SAXException, IOException -
ParametersToInput
public ParametersToInput(InputStream in) throws MalformedURLException, ParserConfigurationException, SAXException, IOException
-
-
Method Details
-
formatForInput
Gets an iterator over the formatted input. Each element returned by the iterator is a batch parameter combination in "line" format.- Returns:
- an iterator over the formatted input. Each element returned by the iterator is a batch parameter combination in "line" format.
- Throws:
IOException
-
formatForInput
Writes each batch parameters combination as a line in two files. The first will be in "line" format, and the second will be in the standard repast batch parameter map format.- Parameters:
output
-batchMapFile
-- Throws:
IOException
-
main
-