Class JsonLoadFlowParameters


  • public final class JsonLoadFlowParameters
    extends Object
    Provides methods to read and write LoadFlowParameters from and to JSON.
    Author:
    Sylvain Leclerc
    • Method Detail

      • read

        public static LoadFlowParameters read​(Path jsonFile)
        Reads parameters from a JSON file (will NOT rely on platform config).
      • write

        public static void write​(LoadFlowParameters parameters,
                                 Path jsonFile)
        Writes parameters as JSON to a file.
      • deserialize

        public static LoadFlowParameters deserialize​(com.fasterxml.jackson.core.JsonParser parser,
                                                     com.fasterxml.jackson.databind.DeserializationContext context,
                                                     LoadFlowParameters parameters)
                                              throws IOException
        Low level deserialization method, to be used for instance for reading load flow parameters nested in another object.
        Throws:
        IOException
      • deserialize

        public static LoadFlowParameters deserialize​(com.fasterxml.jackson.core.JsonParser parser,
                                                     com.fasterxml.jackson.databind.DeserializationContext context)
                                              throws IOException
        Low level deserialization method, to be used for instance for updating load flow parameters nested in another object.
        Throws:
        IOException
      • serialize

        public static void serialize​(LoadFlowParameters parameters,
                                     com.fasterxml.jackson.core.JsonGenerator jsonGenerator,
                                     com.fasterxml.jackson.databind.SerializerProvider serializerProvider)
                              throws IOException
        Low level serialization method, to be used for instance for writing load flow parameters nested in another object.
        Throws:
        IOException