Class StandardClassificationJSON
java.lang.Object
generalDatabase.JsonConverter
clickTrainDetector.classification.ClassifierJSONLogging
clickTrainDetector.classification.SimpleClassifierJSONLogging
clickTrainDetector.classification.standardClassifier.StandardClassificationJSON
Standard classification JSON logging
- Author:
- Jamie Macaulay
-
Field Summary
Fields inherited from class clickTrainDetector.classification.SimpleClassifierJSONLogging
SPECIESFIELD, TYPEFIELD
-
Constructor Summary
ConstructorDescriptionStandardClassificationJSON
(CTClassification[] ctClassifications) Create the JSON logging for standard classifier. -
Method Summary
Modifier and TypeMethodDescriptioncreateClassification
(String jsonString) Get the CT classification from a stringvoid
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 clickTrainDetector.classification.SimpleClassifierJSONLogging
createClassification, getJsonString
Methods inherited from class generalDatabase.JsonConverter
getJSONElement, getJSONElement, quickJsonString, unpackJsonArray, writeJsonArray, writeJsonValue
-
Constructor Details
-
StandardClassificationJSON
Create the JSON logging for standard classifier.- Parameters:
ctClassifications
- - the standard classifier.
-
StandardClassificationJSON
public StandardClassificationJSON()
-
-
Method Details
-
writeJSONData
public void writeJSONData(com.fasterxml.jackson.core.JsonGenerator jg, CTClassification ctClassification) Description copied from class:SimpleClassifierJSONLogging
Write JSON data after default TYPE and SPECIESID values have been added.- Overrides:
writeJSONData
in classSimpleClassifierJSONLogging
-
createClassification
Description copied from class:ClassifierJSONLogging
Get the CT classification from a string- Overrides:
createClassification
in classSimpleClassifierJSONLogging
- Parameters:
jsonString
- - the input string.- Returns:
-