Index: Ringtoets/GrassCoverErosionInwards/src/Ringtoets.GrassCoverErosionInwards.Data/RoughnessProfileSection.cs
===================================================================
diff -u -rd2de88a141d3ba20d1f3b301a3c38723b682b206 -rdec46d5efaad5332ffb2a96e67ec11209ddc5515
--- Ringtoets/GrassCoverErosionInwards/src/Ringtoets.GrassCoverErosionInwards.Data/RoughnessProfileSection.cs (.../RoughnessProfileSection.cs) (revision d2de88a141d3ba20d1f3b301a3c38723b682b206)
+++ Ringtoets/GrassCoverErosionInwards/src/Ringtoets.GrassCoverErosionInwards.Data/RoughnessProfileSection.cs (.../RoughnessProfileSection.cs) (revision dec46d5efaad5332ffb2a96e67ec11209ddc5515)
@@ -25,9 +25,9 @@
namespace Ringtoets.GrassCoverErosionInwards.Data
{
///
- /// This class represents a sub-section of a line and the characteristic properties of that line.
+ /// This class represents a sub-section of a line and the characteristic properties of that line with a roughness.
///
- public class RoughnessProfileSection
+ public class RoughnessProfileSection : ProfileSection
{
///
/// Creates a new instance of the class.
@@ -39,32 +39,12 @@
/// - is null.
/// - is null.
///
- public RoughnessProfileSection(Point2D startingPoint, Point2D endingPoint, double roughness)
+ public RoughnessProfileSection(Point2D startingPoint, Point2D endingPoint, double roughness) : base(startingPoint, endingPoint)
{
- if (startingPoint == null)
- {
- throw new ArgumentNullException("startingPoint");
- }
- if (endingPoint == null)
- {
- throw new ArgumentNullException("endingPoint");
- }
- StartingPoint = startingPoint;
- EndingPoint = endingPoint;
Roughness = roughness;
}
///
- /// Gets the starting 2D geometry point of the .
- ///
- public Point2D StartingPoint { get; private set; }
-
- ///
- /// Gets the ending 2D geometry point of the .
- ///
- public Point2D EndingPoint { get; private set; }
-
- ///
/// Gets the roughness of the .
///
public double Roughness { get; private set; }