Class SimpleClassifierJSONLogging
java.lang.Object
generalDatabase.JsonConverter
clickTrainDetector.classification.ClassifierJSONLogging
clickTrainDetector.classification.SimpleClassifierJSONLogging
- Direct Known Subclasses:
BearingClassifierJSON
,Chi2JsonLogging
,IDIClassifierJSON
,StandardClassificationJSON
,TemplateClassifierJSONLogging
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateClassification
(com.fasterxml.jackson.databind.JsonNode jTree) Get classifier data after default TYPE and SPECIESID values has beencreateClassification
(String jsonString) Get the CT classification from a stringgetJsonString
(CTClassification ctClassification) Create a standard xml like string of the error data which can be written to the relational database.void
writeJSONData
(com.fasterxml.jackson.core.JsonGenerator jg, CTClassification ctClassification) Write JSON data after default TYPE and SPECIESID values have been added.Methods inherited from class generalDatabase.JsonConverter
getJSONElement, getJSONElement, quickJsonString, unpackJsonArray, writeJsonArray, writeJsonValue
-
Field Details
-
TYPEFIELD
- See Also:
-
SPECIESFIELD
- See Also:
-
-
Constructor Details
-
SimpleClassifierJSONLogging
public SimpleClassifierJSONLogging()
-
-
Method Details
-
getJsonString
Description copied from class:ClassifierJSONLogging
Create a standard xml like string of the error data which can be written to the relational database.- Specified by:
getJsonString
in classClassifierJSONLogging
- Returns:
- Error information in an XML like format.
-
writeJSONData
public void writeJSONData(com.fasterxml.jackson.core.JsonGenerator jg, CTClassification ctClassification) Write JSON data after default TYPE and SPECIESID values have been added.- Parameters:
the
- JSON data generator.
-
createClassification
Get classifier data after default TYPE and SPECIESID values has been- Parameters:
the
- JSON node which contains data.
-
createClassification
Description copied from class:ClassifierJSONLogging
Get the CT classification from a string- Specified by:
createClassification
in classClassifierJSONLogging
- Parameters:
jsonString
- - the input string.- Returns:
-