Index: Ringtoets/GrassCoverErosionInwards/src/Ringtoets.GrassCoverErosionInwards.IO/Configurations/GrassCoverErosionInwardsCalculationConfiguration.cs
===================================================================
diff -u -r8336ede0837d35257e8b85c3b0090b0774342d90 -rb1fd20384e0835b604bb68d94e16e8ead46ed93e
--- Ringtoets/GrassCoverErosionInwards/src/Ringtoets.GrassCoverErosionInwards.IO/Configurations/GrassCoverErosionInwardsCalculationConfiguration.cs (.../GrassCoverErosionInwardsCalculationConfiguration.cs) (revision 8336ede0837d35257e8b85c3b0090b0774342d90)
+++ Ringtoets/GrassCoverErosionInwards/src/Ringtoets.GrassCoverErosionInwards.IO/Configurations/GrassCoverErosionInwardsCalculationConfiguration.cs (.../GrassCoverErosionInwardsCalculationConfiguration.cs) (revision b1fd20384e0835b604bb68d94e16e8ead46ed93e)
@@ -27,175 +27,83 @@
///
/// Configuration of a grass cover erosion inwards calculation.
///
- public class ReadGrassCoverErosionInwardsCalculation : IConfigurationItem
+ public class GrassCoverErosionInwardsCalculationConfiguration : IConfigurationItem
{
+ private string name;
+
///
- /// Creates a new instance of .
+ /// Creates a new instance of .
///
- /// The container of the properties for the
- /// .
- /// Thrown when
+ /// The name of the .
+ ///
+ /// Thrown when
/// is null.
- public ReadGrassCoverErosionInwardsCalculation(ConstructionProperties constructionProperties)
+ public GrassCoverErosionInwardsCalculationConfiguration(string name)
{
- if (constructionProperties == null)
- {
- throw new ArgumentNullException(nameof(constructionProperties));
- }
-
- Name = constructionProperties.Name;
- HydraulicBoundaryLocation = constructionProperties.HydraulicBoundaryLocation;
- DikeProfileId = constructionProperties.DikeProfileId;
- Orientation = constructionProperties.Orientation;
- DikeHeight = constructionProperties.DikeHeight;
- DikeHeightCalculationType = constructionProperties.DikeHeightCalculationType;
- OvertoppingRateCalculationType = constructionProperties.OvertoppingRateCalculationType;
- UseBreakWater = constructionProperties.UseBreakWater;
- BreakWaterType = constructionProperties.BreakWaterType;
- BreakWaterHeight = constructionProperties.BreakWaterHeight;
- UseForeshore = constructionProperties.UseForeshore;
- CriticalFlowRateMean = constructionProperties.CriticalFlowRateMean;
- CriticalFlowRateStandardDeviation = constructionProperties.CriticalFlowRateStandardDeviation;
+ Name = name;
}
///
/// Gets the name of the hydraulic boundary location of the read grass cover erosion
/// inwards calculation.
///
- public string HydraulicBoundaryLocation { get; }
+ public string HydraulicBoundaryLocation { get; set; }
///
/// Gets the Id of the dike profile of the read grass cover erosion inwards calculation.
///
- public string DikeProfileId { get; }
+ public string DikeProfileId { get; set; }
///
/// Gets the orientation of the grass cover erosion inwards calculation.
///
- public double? Orientation { get; }
+ public double? Orientation { get; set; }
///
/// Gets the dike height of the grass cover erosion inwards calculation.
///
- public double? DikeHeight { get; }
+ public double? DikeHeight { get; set; }
///
/// Gets the value for how the dike height should be calculated for the grass cover
/// erosion inwards calculation.
///
- public ConfigurationHydraulicLoadsCalculationType? DikeHeightCalculationType { get; }
+ public ConfigurationHydraulicLoadsCalculationType? DikeHeightCalculationType { get; set; }
///
/// Gets the value for how the overtopping rate should be calculated for the grass cover
/// erosion inwards calculation.
///
- public ConfigurationHydraulicLoadsCalculationType? OvertoppingRateCalculationType { get; }
-
+ public ConfigurationHydraulicLoadsCalculationType? OvertoppingRateCalculationType { get; set; }
+
///
- /// Gets the value indicating if the break water for the grass cover erosion inwards
- /// calculation should be used.
+ /// Gets or sets the wave reduction configuration.
///
- public bool? UseBreakWater { get; }
+ public WaveReductionConfiguration WaveReduction { get; set; }
///
- /// Gets the type of break water for the grass cover erosion inwards calculation.
+ /// Gets the critical flow distribution for the grass cover erosion inwards calculation.
///
- public ConfigurationBreakWaterType? BreakWaterType { get; }
+ public StochastConfiguration CriticalFlowRate { get; set; }
///
- /// Gets the height of the break water for the grass cover erosion inwards calculation.
+ /// Gets or sets the name of the grass cover erosion inwards calculation.
///
- public double? BreakWaterHeight { get; }
-
- ///
- /// Gets the value indicating if the foreshore for the grass cover erosion inwards
- /// calculation should be used.
- ///
- public bool? UseForeshore { get; }
-
- ///
- /// Gets the mean of the critical flow distribution for the grass cover erosion
- /// inwards calculation.
- ///
- public double? CriticalFlowRateMean { get; }
-
- ///
- /// Gets the standard deviation of the critical flow distribution for the grass
- /// cover erosion inwards calculation.
- ///
- public double? CriticalFlowRateStandardDeviation { get; }
-
- public string Name { get; }
-
- ///
- /// Class holding the various construction parameters for .
- ///
- public class ConstructionProperties
+ /// Thrown when is null.
+ public string Name
{
- ///
- /// Gets or sets the value for .
- ///
- public string Name { get; set; }
-
- ///
- /// Gets or sets the value for .
- ///
- public string HydraulicBoundaryLocation { get; set; }
-
- ///
- /// Gets or sets the value for .
- ///
- public string DikeProfileId { get; set; }
-
- ///
- /// Gets or sets the value for .
- ///
- public double? Orientation { get; set; }
-
- ///
- /// Gets or sets the value for .
- ///
- public double? DikeHeight { get; set; }
-
- ///
- /// Gets or sets the value for .
- ///
- public ConfigurationHydraulicLoadsCalculationType? DikeHeightCalculationType { get; set; }
-
- ///
- /// Gets or sets the value for .
- ///
- public ConfigurationHydraulicLoadsCalculationType? OvertoppingRateCalculationType { get; set; }
-
- ///
- /// Gets or sets the value for .
- ///
- public bool? UseBreakWater { get; set; }
-
- ///
- /// Gets or sets the value for .
- ///
- public ConfigurationBreakWaterType? BreakWaterType { get; set; }
-
- ///
- /// Gets or sets the value for .
- ///
- public double? BreakWaterHeight { get; set; }
-
- ///
- /// Gets or sets the value for .
- ///
- public bool? UseForeshore { get; set; }
-
- ///
- /// Gets or sets the value for .
- ///
- public double? CriticalFlowRateMean { get; set; }
-
- ///
- /// Gets or sets the value for .
- ///
- public double? CriticalFlowRateStandardDeviation { get; set; }
+ get
+ {
+ return name;
+ }
+ set
+ {
+ if (value == null)
+ {
+ throw new ArgumentNullException(nameof(value), @"Name is required for a structure calculation configuration.");
+ }
+ name = value;
+ }
}
}
}
\ No newline at end of file