Class ErrorJSONData

java.lang.Object
Localiser.algorithms.locErrors.ErrorJSONData
Direct Known Subclasses:
ErrorEllipseJSONData, SimpleErrorJSONData

public abstract class ErrorJSONData extends Object
  • Constructor Details

    • ErrorJSONData

      public ErrorJSONData()
  • Method Details

    • getXMLString

      public abstract String 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

      public String getJSONElement(String name, double[] data)
    • getJSONElement

      public String getJSONElement(String name, double[] data, DecimalFormat format)
      Make a standard JSON like element
      Parameters:
      name - name of element
      data - data for it
      format - number format to use
      Returns:
      String of formatted data.