Package repast.simphony.parameter
Class ParametersWriter
java.lang.Object
repast.simphony.parameter.ParametersWriter
Writes the current values of a Parameters object out to an xml file. The
format consists of a name value pair where the value is a string
representation of parameter value. For example,
<parameters type="valuesOnly">
<parameter name="double" value="3.2343"/>
</parameters>
The full parameter format provides the full parameter definition, including the name, type, defaultValue, and optionally the displayName, value constraints, and isReadOnly. If the type is a non-primitive (number, boolean or String), then a converter must also be specified. For example,
<parameters>
...finish example
</parameters>
- Author:
- Nick Collier, Michelle Kehrer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidvoidwriteSpecificationToFile(Parameters params, File file) voidwriteSpecificationToFile(Parameters params, Map<String, Double> displayOrder, File file) voidwriteValuesToFile(Parameters params, File file) writeValuesToString(Parameters params)
-
Constructor Details
-
ParametersWriter
public ParametersWriter()
-
-
Method Details
-
writeValuesToString
- Throws:
IOException
-
writeValuesToFile
- Throws:
IOException
-
writeSpecificationToFile
public void writeSpecificationToFile(Parameters params, Map<String, Double> displayOrder, File file) throws IOException- Throws:
IOException
-
writeSpecificationToFile
- Throws:
IOException
-
main
-