Index: Ringtoets/HeightStructures/src/Ringtoets.HeightStructures.Data/HeightStructure.cs =================================================================== diff -u -r4bf59bb3506b840b284efe0c0f4431b7876e0e5b -r4954f3a3c5eab3aff1b2d4c5a58364f06fe4bbd2 --- Ringtoets/HeightStructures/src/Ringtoets.HeightStructures.Data/HeightStructure.cs (.../HeightStructure.cs) (revision 4bf59bb3506b840b284efe0c0f4431b7876e0e5b) +++ Ringtoets/HeightStructures/src/Ringtoets.HeightStructures.Data/HeightStructure.cs (.../HeightStructure.cs) (revision 4954f3a3c5eab3aff1b2d4c5a58364f06fe4bbd2) @@ -78,25 +78,25 @@ /// Gets the crest level of the height structure. /// [m+NAP] /// - public NormalDistribution LevelCrestStructure { get; private set; } + public NormalDistribution LevelCrestStructure { get; } /// /// Gets the flow width of the height structure at the bottom protection. /// [m] /// - public LogNormalDistribution FlowWidthAtBottomProtection { get; private set; } + public LogNormalDistribution FlowWidthAtBottomProtection { get; } /// /// Gets the critical overtopping discharge per meter of the height structure. /// [m^3/s/m] /// - public VariationCoefficientLogNormalDistribution CriticalOvertoppingDischarge { get; private set; } + public VariationCoefficientLogNormalDistribution CriticalOvertoppingDischarge { get; } /// /// Gets the flow apertures width of the height structure. /// [m] /// - public NormalDistribution WidthFlowApertures { get; private set; } + public NormalDistribution WidthFlowApertures { get; } /// /// Gets the failure probability of the height structure, given erosion. @@ -108,15 +108,50 @@ /// Gets the storage area of the height structure. /// [m^2] /// - public VariationCoefficientLogNormalDistribution StorageStructureArea { get; private set; } + public VariationCoefficientLogNormalDistribution StorageStructureArea { get; } /// /// Gets the allowed increase of level for storage of the height structure. /// [m] /// - public LogNormalDistribution AllowedLevelIncreaseStorage { get; private set; } + public LogNormalDistribution AllowedLevelIncreaseStorage { get; } /// + /// Copies the property values of the to the + /// . + /// + /// The to get the property + /// values from. + /// Thrown when + /// is null. + public void CopyProperties(HeightStructure fromStructure) + { + base.CopyProperties(fromStructure); + + AllowedLevelIncreaseStorage.Mean = fromStructure.AllowedLevelIncreaseStorage.Mean; + AllowedLevelIncreaseStorage.StandardDeviation = fromStructure.AllowedLevelIncreaseStorage.StandardDeviation; + AllowedLevelIncreaseStorage.Shift = fromStructure.AllowedLevelIncreaseStorage.Shift; + + CriticalOvertoppingDischarge.Mean = fromStructure.CriticalOvertoppingDischarge.Mean; + CriticalOvertoppingDischarge.CoefficientOfVariation = fromStructure.CriticalOvertoppingDischarge.CoefficientOfVariation; + + FailureProbabilityStructureWithErosion = fromStructure.FailureProbabilityStructureWithErosion; + + FlowWidthAtBottomProtection.Mean = fromStructure.FlowWidthAtBottomProtection.Mean; + FlowWidthAtBottomProtection.StandardDeviation = fromStructure.FlowWidthAtBottomProtection.StandardDeviation; + FlowWidthAtBottomProtection.Shift = fromStructure.FlowWidthAtBottomProtection.Shift; + + LevelCrestStructure.Mean = fromStructure.LevelCrestStructure.Mean; + LevelCrestStructure.StandardDeviation = fromStructure.LevelCrestStructure.StandardDeviation; + + StorageStructureArea.Mean = fromStructure.StorageStructureArea.Mean; + StorageStructureArea.CoefficientOfVariation = fromStructure.StorageStructureArea.CoefficientOfVariation; + + WidthFlowApertures.Mean = fromStructure.WidthFlowApertures.Mean; + WidthFlowApertures.StandardDeviation = fromStructure.WidthFlowApertures.StandardDeviation; + } + + /// /// Class holding the various construction parameters for . /// public new class ConstructionProperties : BaseConstructionProperties