SensitivityAnalysis { public static Runner find(String name) { return new Runner(PlatformConfigNamedProvider.Finder .find(name, "sensitivity-analysis", SensitivityAnalysisProvider.class, PlatformConfig.defaultConfig())); } private  SensitivityAnalysis(); static Runner find(String name); static Runner find(); static SensitivityAnalysisResult run(Network network,
                                                String workingStateId,
                                                SensitivityFactorsProvider factorsProvider,
                                                ContingenciesProvider contingenciesProvider,
                                                SensitivityAnalysisParameters parameters); static SensitivityAnalysisResult run(Network network,
                                                SensitivityFactorsProvider factorsProvider,
                                                ContingenciesProvider contingenciesProvider,
                                                SensitivityAnalysisParameters parameters); static SensitivityAnalysisResult run(Network network,
                                                SensitivityFactorsProvider factorsProvider,
                                                ContingenciesProvider contingenciesProvider);  }
@Test public void testDefaultProvider() { SensitivityAnalysis.Runner defaultSensitivityAnalysisRunner = SensitivityAnalysis.find(); assertEquals(DEFAULT_PROVIDER_NAME, defaultSensitivityAnalysisRunner.getName()); assertEquals("1.0", defaultSensitivityAnalysisRunner.getVersion()); }
@Test public void testAsyncDefaultProvider() throws InterruptedException, ExecutionException { SensitivityAnalysis.Runner defaultSensitivityAnalysisRunner = SensitivityAnalysis.find(); CompletableFuture<SensitivityAnalysisResult> result = defaultSensitivityAnalysisRunner.runAsync(network, "v", sensitivityFactorsProvider, contingenciesProvider, new SensitivityAnalysisParameters(), computationManager); assertNotNull(result.get()); }
@Test public void testAsyncDefaultProviderWithMinimumArgumentsWithContingencies() throws InterruptedException, ExecutionException { SensitivityAnalysis.Runner defaultSensitivityAnalysisRunner = SensitivityAnalysis.find(); CompletableFuture<SensitivityAnalysisResult> result = defaultSensitivityAnalysisRunner.runAsync(network, sensitivityFactorsProvider, contingenciesProvider); assertNotNull(result.get()); }