Index: Ringtoets/Common/src/Ringtoets.Common.Data/Structures/StructuresInputBase.cs =================================================================== diff -u -radbf2699810c35ead18e88e52127546aab78c23c -r6ebe864bf0138360fbba9a2772e9faf763287e8a --- Ringtoets/Common/src/Ringtoets.Common.Data/Structures/StructuresInputBase.cs (.../StructuresInputBase.cs) (revision adbf2699810c35ead18e88e52127546aab78c23c) +++ Ringtoets/Common/src/Ringtoets.Common.Data/Structures/StructuresInputBase.cs (.../StructuresInputBase.cs) (revision 6ebe864bf0138360fbba9a2772e9faf763287e8a) @@ -43,13 +43,13 @@ private static readonly Range structureNormalOrientationValidityRange = new Range(new RoundedDouble(structureNormalOrientationNumberOfDecimals), new RoundedDouble(structureNormalOrientationNumberOfDecimals, 360)); - private readonly NormalDistribution modelFactorSuperCriticalFlow; - private readonly LogNormalDistribution allowedLevelIncreaseStorage; - private readonly VariationCoefficientLogNormalDistribution storageStructureArea; - private readonly LogNormalDistribution flowWidthAtBottomProtection; - private readonly VariationCoefficientLogNormalDistribution criticalOvertoppingDischarge; - private readonly NormalDistribution widthFlowApertures; - private readonly VariationCoefficientLogNormalDistribution stormDuration; + private NormalDistribution modelFactorSuperCriticalFlow; + private LogNormalDistribution allowedLevelIncreaseStorage; + private VariationCoefficientLogNormalDistribution storageStructureArea; + private LogNormalDistribution flowWidthAtBottomProtection; + private VariationCoefficientLogNormalDistribution criticalOvertoppingDischarge; + private NormalDistribution widthFlowApertures; + private VariationCoefficientLogNormalDistribution stormDuration; private T structure; private RoundedDouble structureNormalOrientation; @@ -148,6 +148,23 @@ /// When no structure is present, the input parameters are set to default values. public abstract void SynchronizeStructureInput(); + public object Clone() + { + var clone = (StructuresInputBase) MemberwiseClone(); + + clone.modelFactorSuperCriticalFlow = (NormalDistribution) ModelFactorSuperCriticalFlow.Clone(); + clone.allowedLevelIncreaseStorage = (LogNormalDistribution) AllowedLevelIncreaseStorage.Clone(); + clone.storageStructureArea = (VariationCoefficientLogNormalDistribution) StorageStructureArea.Clone(); + clone.flowWidthAtBottomProtection = (LogNormalDistribution) FlowWidthAtBottomProtection.Clone(); + clone.criticalOvertoppingDischarge = (VariationCoefficientLogNormalDistribution) CriticalOvertoppingDischarge.Clone(); + clone.widthFlowApertures = (NormalDistribution) WidthFlowApertures.Clone(); + clone.stormDuration = (VariationCoefficientLogNormalDistribution) StormDuration.Clone(); + + clone.BreakWater = (BreakWater) BreakWater.Clone(); + + return clone; + } + private void SetDefaultCommonStructureSchematizationProperties() { StructureNormalOrientation = RoundedDouble.NaN;