Index: Ringtoets/Piping/src/Ringtoets.Piping.InputParameterCalculation/InputParameterCalculationService.cs
===================================================================
diff -u -r10779bb6a6db2d00f4627b2bc190e7e35e1fee3e -r0adc6562a9cedb81859034ef5d62e9b11db4d9c7
--- Ringtoets/Piping/src/Ringtoets.Piping.InputParameterCalculation/InputParameterCalculationService.cs (.../InputParameterCalculationService.cs) (revision 10779bb6a6db2d00f4627b2bc190e7e35e1fee3e)
+++ Ringtoets/Piping/src/Ringtoets.Piping.InputParameterCalculation/InputParameterCalculationService.cs (.../InputParameterCalculationService.cs) (revision 0adc6562a9cedb81859034ef5d62e9b11db4d9c7)
@@ -27,16 +27,14 @@
namespace Ringtoets.Piping.InputParameterCalculation
{
+ ///
+ /// This class can be used to calculate input parameters for a piping calculation based on other input parameters.
+ ///
public static class InputParameterCalculationService
{
///
- /// The to use for creating piping sub calculators.
+ /// Calculates the thickness of the coverage layer based on the values of partial piping input.
///
- public static IPipingSubCalculatorFactory SubCalculatorFactory = new PipingSubCalculatorFactory();
-
- ///
- /// Calculates the thickness of the coverage layer based on the values of the .
- ///
/// The volumetric weight of water.
/// The design value of the phreatic level at the exit point.
/// The l-coordinate of the exit point.
@@ -73,7 +71,7 @@
surfaceLine,
soilProfile
);
- return new PipingCalculator(calculatorInput, SubCalculatorFactory).CalculateThicknessCoverageLayer();
+ return new PipingCalculator(calculatorInput, PipingSubCalculatorFactory.Instance).CalculateThicknessCoverageLayer();
}
catch (PipingCalculatorException)
{
@@ -82,7 +80,7 @@
}
///
- /// Calculates the piezometric head at the exit point based on the values of the .
+ /// Calculates the piezometric head at the exit point based on the values of partial piping input.
///
/// The assessment level.
/// The design value of the damping factor at exit point.
@@ -116,7 +114,7 @@
null,
null
);
- return new PipingCalculator(calculatorInput, SubCalculatorFactory).CalculatePiezometricHeadAtExit();
+ return new PipingCalculator(calculatorInput, PipingSubCalculatorFactory.Instance).CalculatePiezometricHeadAtExit();
}
}
}
\ No newline at end of file