@Test public void updateLoadFlowParameters() { SensitivityAnalysisParameters parameters = new SensitivityAnalysisParameters(); parameters.getLoadFlowParameters().setTwtSplitShuntAdmittance(true); JsonSensitivityAnalysisParameters.update(parameters, getClass().getResourceAsStream("/SensitivityAnalysisParametersIncomplete.json")); assertTrue(parameters.getLoadFlowParameters().isTwtSplitShuntAdmittance()); }
public static SensitivityAnalysisParameters update(SensitivityAnalysisParameters parameters, Path jsonFile) { Objects.requireNonNull(jsonFile); try (InputStream is = Files.newInputStream(jsonFile)) { return update(parameters, is); } catch (IOException e) { throw new UncheckedIOException(e); } }
JsonSensitivityAnalysisParameters { public static SensitivityAnalysisParameters update(SensitivityAnalysisParameters parameters, Path jsonFile) { Objects.requireNonNull(jsonFile); try (InputStream is = Files.newInputStream(jsonFile)) { return update(parameters, is); } catch (IOException e) { throw new UncheckedIOException(e); } } }
JsonSensitivityAnalysisParameters { public static SensitivityAnalysisParameters update(SensitivityAnalysisParameters parameters, Path jsonFile) { Objects.requireNonNull(jsonFile); try (InputStream is = Files.newInputStream(jsonFile)) { return update(parameters, is); } catch (IOException e) { throw new UncheckedIOException(e); } } private  JsonSensitivityAnalysisParameters(); }
JsonSensitivityAnalysisParameters { public static SensitivityAnalysisParameters update(SensitivityAnalysisParameters parameters, Path jsonFile) { Objects.requireNonNull(jsonFile); try (InputStream is = Files.newInputStream(jsonFile)) { return update(parameters, is); } catch (IOException e) { throw new UncheckedIOException(e); } } private  JsonSensitivityAnalysisParameters(); static ExtensionProviders<ExtensionSerializer> getExtensionSerializers(); static SensitivityAnalysisParameters read(Path jsonFile); static SensitivityAnalysisParameters read(InputStream jsonStream); static SensitivityAnalysisParameters update(SensitivityAnalysisParameters parameters, Path jsonFile); static SensitivityAnalysisParameters update(SensitivityAnalysisParameters parameters, InputStream jsonStream); static void write(SensitivityAnalysisParameters parameters, Path jsonFile); static void write(SensitivityAnalysisParameters parameters, OutputStream outputStream); static SensitivityAnalysisParameters deserialize(JsonParser parser, DeserializationContext context, SensitivityAnalysisParameters parameters); static SensitivityAnalysisParameters deserialize(JsonParser parser, DeserializationContext context); static void serialize(SensitivityAnalysisParameters parameters, JsonGenerator jsonGenerator, SerializerProvider serializerProvider); }
JsonSensitivityAnalysisParameters { public static SensitivityAnalysisParameters update(SensitivityAnalysisParameters parameters, Path jsonFile) { Objects.requireNonNull(jsonFile); try (InputStream is = Files.newInputStream(jsonFile)) { return update(parameters, is); } catch (IOException e) { throw new UncheckedIOException(e); } } private  JsonSensitivityAnalysisParameters(); static ExtensionProviders<ExtensionSerializer> getExtensionSerializers(); static SensitivityAnalysisParameters read(Path jsonFile); static SensitivityAnalysisParameters read(InputStream jsonStream); static SensitivityAnalysisParameters update(SensitivityAnalysisParameters parameters, Path jsonFile); static SensitivityAnalysisParameters update(SensitivityAnalysisParameters parameters, InputStream jsonStream); static void write(SensitivityAnalysisParameters parameters, Path jsonFile); static void write(SensitivityAnalysisParameters parameters, OutputStream outputStream); static SensitivityAnalysisParameters deserialize(JsonParser parser, DeserializationContext context, SensitivityAnalysisParameters parameters); static SensitivityAnalysisParameters deserialize(JsonParser parser, DeserializationContext context); static void serialize(SensitivityAnalysisParameters parameters, JsonGenerator jsonGenerator, SerializerProvider serializerProvider);  }