Class AlgorithmEventHistorySerializer

    • Method Detail

      • serializeAlgorithmEventHistory

        public java.lang.String serializeAlgorithmEventHistory​(AlgorithmEventHistory algorithmEventHistory)
                                                        throws com.fasterxml.jackson.core.JsonProcessingException
        Serializes the given AlgorithmEventHistory into a JSON String.
        Parameters:
        algorithmEventHistory - The AlgorithmEventHistory to be serialized.
        Returns:
        The JSON String representing the serialized AlgorithmEventHistory.
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException - If something went wrong during the transformation to JSON.
      • deserializeAlgorithmEventHistory

        public AlgorithmEventHistory deserializeAlgorithmEventHistory​(java.lang.String serializedAlgorithmEventHistory)
                                                               throws java.io.IOException
        Deserializes the given JSON String into an AlgorithmEventHistory assuming it represents such an AlgorithmEventHistory.
        Parameters:
        serializedAlgorithmEventHistory - A JSON String representing an AlgorithmEventHistory.
        Returns:
        An AlgorithmEventHistory constructed from the given serialized algorithm event history.
        Throws:
        com.fasterxml.jackson.core.JsonParseException - If something went wrong during the transformation to JSON.
        com.fasterxml.jackson.databind.JsonMappingException - If something went wrong during the transformation to JSON.
        java.io.IOException - If something went wrong during the transformation to JSON.
      • deserializeAlgorithmEventHistory

        public AlgorithmEventHistory deserializeAlgorithmEventHistory​(java.io.File serializedAlgorithmEventHistory)
                                                               throws java.io.IOException
        Deserializes the given JSON File into an AlgorithmEventHistory assuming it represents such an AlgorithmEventHistory.
        Parameters:
        serializedAlgorithmEventHistory - A JSON String representing an AlgorithmEventHistory.
        Returns:
        An AlgorithmEventHistory constructed from the given serialized algorithm event history.
        Throws:
        com.fasterxml.jackson.core.JsonParseException - If something went wrong during the transformation to JSON.
        com.fasterxml.jackson.databind.JsonMappingException - If something went wrong during the transformation to JSON.
        java.io.IOException - If something went wrong during the transformation to JSON.