Index: Ringtoets/GrassCoverErosionInwards/src/Ringtoets.GrassCoverErosionInwards.Data/GrassCoverErosionInwardsInput.cs =================================================================== diff -u -r54c270e65b7ea51ec9855500fbc7cd9f5869fceb -rf04ce53e4b0000f7bb1e29220b4fbd8887a47530 --- Ringtoets/GrassCoverErosionInwards/src/Ringtoets.GrassCoverErosionInwards.Data/GrassCoverErosionInwardsInput.cs (.../GrassCoverErosionInwardsInput.cs) (revision 54c270e65b7ea51ec9855500fbc7cd9f5869fceb) +++ Ringtoets/GrassCoverErosionInwards/src/Ringtoets.GrassCoverErosionInwards.Data/GrassCoverErosionInwardsInput.cs (.../GrassCoverErosionInwardsInput.cs) (revision f04ce53e4b0000f7bb1e29220b4fbd8887a47530) @@ -35,9 +35,8 @@ /// public class GrassCoverErosionInwardsInput : Observable, ICalculationInput { - private IEnumerable geometry; - private RoundedDouble orientation; private readonly LognormalDistribution criticalFlowRate; + private RoundedDouble orientation; /// /// Creates a new instance of . @@ -47,29 +46,19 @@ orientation = new RoundedDouble(2); DikeHeight = new RoundedDouble(2); criticalFlowRate = new LognormalDistribution(2); + DikeGeometry = Enumerable.Empty(); + ForeshoreGeometry = Enumerable.Empty(); } /// /// Gets the dike's geometry (without foreshore geometry). /// - public IEnumerable DikeGeometry - { - get - { - return geometry == null ? Enumerable.Empty() : geometry.Skip(ForeshoreDikeGeometryPoints); - } - } + public IEnumerable DikeGeometry { get; private set; } /// /// Gets the dike's foreshore geometry. /// - public IEnumerable ForeshoreGeometry - { - get - { - return geometry == null ? Enumerable.Empty() : geometry.Take(ForeshoreDikeGeometryPoints); - } - } + public IEnumerable ForeshoreGeometry { get; private set; } /// /// Gets or sets the dike's orientation @@ -103,9 +92,9 @@ } /// - /// Gets or sets if needs to be taken into account. + /// Gets or sets if needs to be taken into account. /// - /// Value of must not be reset when is set to false. + /// Value of must not be reset when is set to false. public bool UseForeshore { get; set; } /// @@ -114,11 +103,6 @@ public RoundedDouble DikeHeight { get; set; } /// - /// Gets the number of profile points of the dike geometry that form the foreshore geometry. - /// - public int ForeshoreDikeGeometryPoints { get; private set; } - - /// /// Gets or sets if needs to be taken into account. /// public bool UseBreakWater { get; set; } @@ -134,19 +118,29 @@ public HydraulicBoundaryLocation HydraulicBoundaryLocation { get; set; } /// - /// Sets the grass cover erosion inwards geometry. + /// Sets the grass cover erosion inwards dike geometry. /// /// The grass cover erosion inwards geometry points. - /// Defines how many in - /// are foreshore. - public void SetGeometry(IEnumerable profileSections, int foreshoreGeometryPoints) + public void SetDikeGeometry(IEnumerable profileSections) { if (profileSections == null) { throw new ArgumentNullException("profileSections"); } - geometry = profileSections; - ForeshoreDikeGeometryPoints = foreshoreGeometryPoints; + DikeGeometry = profileSections; } + + /// + /// Sets the grass cover erosion inwards foreshore geometry. + /// + /// The grass cover erosion inwards geometry points. + public void SetForeshoreGeometry(IEnumerable profileSections) + { + if (profileSections == null) + { + throw new ArgumentNullException("profileSections"); + } + ForeshoreGeometry = profileSections; + } } } \ No newline at end of file