Class MHTAlgorithmInfoJSON
java.lang.Object
generalDatabase.JsonConverter
clickTrainDetector.clickTrainAlgorithms.CTAlgorithmInfoLogging
clickTrainDetector.clickTrainAlgorithms.mht.MHTAlgorithmInfoJSON
Class for unpacking algorithm strings.
- Author:
- Jamie Macaulay
-
Field Summary
FieldsFields inherited from class clickTrainDetector.clickTrainAlgorithms.CTAlgorithmInfoLogging
ALGORITHMFIELDFields inherited from class generalDatabase.JsonConverter
digitFormat, NUMBERFORMAT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateCTAlgorithmInfo(String algorithmType, com.fasterxml.jackson.databind.JsonNode jTree) Create the CTAlgorithmInfo from a JSON string.voidwriteJSONData(com.fasterxml.jackson.core.JsonGenerator jg, CTAlgorithmInfo algorithmInfo) Write the algorithm info data - note that the algorithm type has already been addedMethods inherited from class clickTrainDetector.clickTrainAlgorithms.CTAlgorithmInfoLogging
createCTAlgorithmInfo, getAlgorithmType, getJsonStringMethods inherited from class generalDatabase.JsonConverter
getJSONElement, getJSONElement, quickJsonString, unpackJsonArray, writeJsonArray, writeJsonValue
-
Field Details
-
MHTCHI2TYPEFIELD
- See Also:
-
-
Constructor Details
-
MHTAlgorithmInfoJSON
-
-
Method Details
-
writeJSONData
public void writeJSONData(com.fasterxml.jackson.core.JsonGenerator jg, CTAlgorithmInfo algorithmInfo) Description copied from class:CTAlgorithmInfoLoggingWrite the algorithm info data - note that the algorithm type has already been added- Specified by:
writeJSONDatain classCTAlgorithmInfoLogging- Parameters:
jg- - the JSON string generator.algorithmInfo- - the algorithm info.
-
createCTAlgorithmInfo
public MHTAlgorithmInfo createCTAlgorithmInfo(String algorithmType, com.fasterxml.jackson.databind.JsonNode jTree) Description copied from class:CTAlgorithmInfoLoggingCreate the CTAlgorithmInfo from a JSON string.- Specified by:
createCTAlgorithmInfoin classCTAlgorithmInfoLogging- Parameters:
algorithmType- - the algorithm type from JSON stringjTree- - the jTree.- Returns:
- the CTAlgorithmInfo.
-