Package repast.simphony.batch.parameter
Class ParametersToInput
- java.lang.Object
-
- repast.simphony.batch.parameter.ParametersToInput
-
public class ParametersToInput extends Object
- Author:
- Nick Collier
-
-
Constructor Summary
Constructors Constructor Description ParametersToInput(File paramsFile)
ParametersToInput(InputStream in)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Iterator<String>
formatForInput()
Gets 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
main(String[] args)
-
-
-
Constructor Detail
-
ParametersToInput
public ParametersToInput(File paramsFile) throws MalformedURLException, ParserConfigurationException, SAXException, IOException
-
ParametersToInput
public ParametersToInput(InputStream in) throws MalformedURLException, ParserConfigurationException, SAXException, IOException
-
-
Method Detail
-
formatForInput
public Iterator<String> formatForInput() throws IOException
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
public void formatForInput(File output, File batchMapFile) throws IOException
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
public static void main(String[] args)
-
-