Index: Ringtoets/Revetment/src/Ringtoets.Revetment.IO/Configurations/WaveConditionsCalculationConfiguration.cs =================================================================== diff -u -r2057d3372084602a2d959db2e33dcf81de971a73 -r4274bc4f40504c659612e15175dc635fc6e5bba9 --- Ringtoets/Revetment/src/Ringtoets.Revetment.IO/Configurations/WaveConditionsCalculationConfiguration.cs (.../WaveConditionsCalculationConfiguration.cs) (revision 2057d3372084602a2d959db2e33dcf81de971a73) +++ Ringtoets/Revetment/src/Ringtoets.Revetment.IO/Configurations/WaveConditionsCalculationConfiguration.cs (.../WaveConditionsCalculationConfiguration.cs) (revision 4274bc4f40504c659612e15175dc635fc6e5bba9) @@ -29,94 +29,97 @@ /// public class WaveConditionsCalculationConfiguration : IConfigurationItem { + private string name; + /// /// Creates a new instance of . /// - /// The container of the properties for the . - /// Thrown when is null. - public WaveConditionsCalculationConfiguration(ConstructionProperties constructionProperties) + /// The name of the . + /// Thrown when is null. + public WaveConditionsCalculationConfiguration(string name) { - if (constructionProperties == null) - { - throw new ArgumentNullException(nameof(constructionProperties)); - } - - Name = constructionProperties.Name; - HydraulicBoundaryLocation = constructionProperties.HydraulicBoundaryLocation; - UpperBoundaryRevetment = constructionProperties.UpperBoundaryRevetment; - LowerBoundaryRevetment = constructionProperties.LowerBoundaryRevetment; - UpperBoundaryWaterLevels = constructionProperties.UpperBoundaryWaterLevels; - LowerBoundaryWaterLevels = constructionProperties.LowerBoundaryWaterLevels; - StepSize = constructionProperties.StepSize; - ForeshoreProfile = constructionProperties.ForeshoreProfile; - Orientation = constructionProperties.Orientation; - UseBreakWater = constructionProperties.UseBreakWater; - BreakWaterType = constructionProperties.BreakWaterType; - BreakWaterHeight = constructionProperties.BreakWaterHeight; - UseForeshore = constructionProperties.UseForeshore; + Name = name; } /// /// Gets the name of the hydraulic boundary location of the read calculation. /// - public string HydraulicBoundaryLocation { get; } + public string HydraulicBoundaryLocation { get; set; } /// /// Gets the upper boundary of the revetment of the read calculation. /// - public double? UpperBoundaryRevetment { get; } + public double? UpperBoundaryRevetment { get; set; } /// /// Gets the lower boundary of the revetment of the read calculation. /// - public double? LowerBoundaryRevetment { get; } + public double? LowerBoundaryRevetment { get; set; } /// /// Gets the upper boundary of the water levels of the read calculation. /// - public double? UpperBoundaryWaterLevels { get; } + public double? UpperBoundaryWaterLevels { get; set; } /// /// Gets the lower boundary of the water levels of the read calculation. /// - public double? LowerBoundaryWaterLevels { get; } + public double? LowerBoundaryWaterLevels { get; set; } /// /// Gets the step size of the read calculation. /// - public ConfigurationWaveConditionsInputStepSize? StepSize { get; } + public ConfigurationWaveConditionsInputStepSize? StepSize { get; set; } /// /// Gets the name of the foreshore profile of the read calculation. /// - public string ForeshoreProfile { get; } + public string ForeshoreProfile { get; set; } /// /// Gets the orientation of the read calculation. /// - public double? Orientation { get; } + public double? Orientation { get; set; } /// /// Gets whether the breakwater should be used for the read calculation. /// - public bool? UseBreakWater { get; } + public bool? UseBreakWater { get; set; } /// /// Gets the breakwater type of the read calculation. /// - public ConfigurationBreakWaterType? BreakWaterType { get; } + public ConfigurationBreakWaterType? BreakWaterType { get; set; } /// /// Gets the breakwater height of the read calculation. /// - public double? BreakWaterHeight { get; } + public double? BreakWaterHeight { get; set; } /// /// Gets whether the foreshore should be used for the read calculation. /// - public bool? UseForeshore { get; } + public bool? UseForeshore { get; set; } - public string Name { get; } + /// + /// Gets or sets the name of the . + /// + /// Thrown when is null. + public string Name + { + get + { + return name; + } + set + { + if (value == null) + { + throw new ArgumentNullException(nameof(value), @"Name is required for a structure calculation configuration."); + } + name = value; + } + } /// /// Class holding the various construction parameters for .