Class MHTAlgorithmInfoJSON
java.lang.Object
generalDatabase.JsonConverter
clickTrainDetector.clickTrainAlgorithms.CTAlgorithmInfoLogging
clickTrainDetector.clickTrainAlgorithms.mht.MHTAlgorithmInfoJSON
Class for unpacking algorithm strings.
- Author:
- Jamie Macaulay
-
Field Summary
Fields inherited from class clickTrainDetector.clickTrainAlgorithms.CTAlgorithmInfoLogging
ALGORITHMFIELD
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateCTAlgorithmInfo
(String algorithmType, com.fasterxml.jackson.databind.JsonNode jTree) Create the CTAlgorithmInfo from a JSON string.void
writeJSONData
(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, getJsonString
Methods 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:CTAlgorithmInfoLogging
Write the algorithm info data - note that the algorithm type has already been added- Specified by:
writeJSONData
in 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:CTAlgorithmInfoLogging
Create the CTAlgorithmInfo from a JSON string.- Specified by:
createCTAlgorithmInfo
in classCTAlgorithmInfoLogging
- Parameters:
algorithmType
- - the algorithm type from JSON stringjTree
- - the jTree.- Returns:
- the CTAlgorithmInfo.
-