Index: Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Data/MacroStabilityInwardsInput.cs =================================================================== diff -u -rd619624819b7200ac55b357b0a0c54d198fc20e4 -ra3b8f844591b20947be3f6383e2112c0abe5dd10 --- Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Data/MacroStabilityInwardsInput.cs (.../MacroStabilityInwardsInput.cs) (revision d619624819b7200ac55b357b0a0c54d198fc20e4) +++ Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Data/MacroStabilityInwardsInput.cs (.../MacroStabilityInwardsInput.cs) (revision a3b8f844591b20947be3f6383e2112c0abe5dd10) @@ -59,6 +59,8 @@ private RoundedDouble penetrationLength; private RoundedDouble tangentLineZTop; private RoundedDouble tangentLineZBottom; + private MacroStabilityInwardsSurfaceLine surfaceLine; + private MacroStabilityInwardsStochasticSoilProfile stochasticSoilProfile; /// /// Initializes a new instance of the class. @@ -114,17 +116,39 @@ /// /// Gets or sets the surface line. /// - public MacroStabilityInwardsSurfaceLine SurfaceLine { get; set; } + public MacroStabilityInwardsSurfaceLine SurfaceLine + { + get + { + return surfaceLine; + } + set + { + surfaceLine = value; + SetSoilProfileUnderSurfaceLine(); + } + } /// /// Gets or sets the stochastic soil model which is linked to the . /// public MacroStabilityInwardsStochasticSoilModel StochasticSoilModel { get; set; } /// - /// Gets or sets the profile which contains a 1 dimensional definition of soil layers with properties. + /// Gets or sets the profile which contains a definition of soil layers with properties. /// - public MacroStabilityInwardsStochasticSoilProfile StochasticSoilProfile { get; set; } + public MacroStabilityInwardsStochasticSoilProfile StochasticSoilProfile + { + get + { + return stochasticSoilProfile; + } + set + { + stochasticSoilProfile = value; + SetSoilProfileUnderSurfaceLine(); + } + } /// /// Gets or sets the hydraulic boundary location from which to use the assessment level. @@ -181,6 +205,18 @@ } } + /// + /// Gets the profile which contains a 2 dimensional definition of soil layers with properties. + /// + public MacroStabilityInwardsSoilProfileUnderSurfaceLine SoilProfileUnderSurfaceLine { get; private set; } + + private void SetSoilProfileUnderSurfaceLine() + { + SoilProfileUnderSurfaceLine = SurfaceLine != null && StochasticSoilProfile != null + ? MacroStabilityInwardsSoilProfileUnderSurfaceLineFactory.Create(StochasticSoilProfile.SoilProfile, SurfaceLine) + : null; + } + #endregion #region settings