Package Localiser.algorithms.locErrors
Class ErrorJSONData
java.lang.Object
Localiser.algorithms.locErrors.ErrorJSONData
- Direct Known Subclasses:
ErrorEllipseJSONData
,SimpleErrorJSONData
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetJSONElement
(String name, double[] data) getJSONElement
(String name, double[] data, DecimalFormat format) Make a standard JSON like elementabstract String
Create a standard xml like string of the error data which can be written to the relational database.
-
Constructor Details
-
ErrorJSONData
public ErrorJSONData()
-
-
Method Details
-
getXMLString
Create a standard xml like string of the error data which can be written to the relational database.- Returns:
- Error information in an XML like format.
-
getJSONElement
-
getJSONElement
Make a standard JSON like element- Parameters:
name
- name of elementdata
- data for itformat
- number format to use- Returns:
- String of formatted data.
-