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