Index: Ringtoets/HydraRing/src/Ringtoets.HydraRing.Calculation/Services/HydraRingCalculationService.cs
===================================================================
diff -u -r5b3041efe0fd2d334984d6c730815242b30229aa -rfb6c8cb473282ccd9b920afddb33a2284c7274cd
--- Ringtoets/HydraRing/src/Ringtoets.HydraRing.Calculation/Services/HydraRingCalculationService.cs (.../HydraRingCalculationService.cs) (revision 5b3041efe0fd2d334984d6c730815242b30229aa)
+++ Ringtoets/HydraRing/src/Ringtoets.HydraRing.Calculation/Services/HydraRingCalculationService.cs (.../HydraRingCalculationService.cs) (revision fb6c8cb473282ccd9b920afddb33a2284c7274cd)
@@ -41,6 +41,8 @@
private static Process hydraRingProcess;
private static IHydraRingCalculationService instance;
+ private HydraRingCalculationService() {}
+
///
/// Gets or sets an instance of .
///
@@ -57,14 +59,16 @@
}
///
- /// This method performs a type II calculation via Hydra-Ring:
- /// Iterate towards a target probability, provided as reliability index.
+ /// Cancels any currently running Hydra-Ring calculation.
///
- /// The directory of the HLCD file that should be used for performing the calculation.
- /// The id of the ring to perform the calculation for.
- /// The to use while executing the calculation.
- /// The input of the calculation to perform.
- /// Parsers that will be invoked after the Hydra-Ring calculation has ran.
+ public static void CancelRunningCalculation()
+ {
+ if (hydraRingProcess != null && !hydraRingProcess.HasExited)
+ {
+ hydraRingProcess.StandardInput.WriteLine("b");
+ }
+ }
+
public void PerformCalculation(
string hlcdDirectory,
string ringId,
@@ -87,17 +91,6 @@
PerformPostProcessing(hydraRingCalculationInput, parsers.ToList(), hydraRingInitializationService);
}
- ///
- /// Cancels any currently running Hydra-Ring calculation.
- ///
- public static void CancelRunningCalculation()
- {
- if (hydraRingProcess != null && !hydraRingProcess.HasExited)
- {
- hydraRingProcess.StandardInput.WriteLine("b");
- }
- }
-
private static void PerformPostProcessing(HydraRingCalculationInput hydraRingCalculationInput,
ICollection parsers,
HydraRingInitializationService hydraRingInitializationService)