Index: DamEngine/trunk/src/Deltares.DamEngine.Data/Geotechnics/SoilProfile.cs =================================================================== diff -u -r4000 -r4052 --- DamEngine/trunk/src/Deltares.DamEngine.Data/Geotechnics/SoilProfile.cs (.../SoilProfile.cs) (revision 4000) +++ DamEngine/trunk/src/Deltares.DamEngine.Data/Geotechnics/SoilProfile.cs (.../SoilProfile.cs) (revision 4052) @@ -23,44 +23,43 @@ using Deltares.DamEngine.Data.Standard; using Deltares.DamEngine.Data.Standard.Validation; -namespace Deltares.DamEngine.Data.Geotechnics +namespace Deltares.DamEngine.Data.Geotechnics; + +/// +/// Soil Profile Object holding name, location and other common properties, base class for SoilProfile1D and SoilProfile2D +/// +public class SoilProfile : IName { + private readonly List preconsolidationStresses = new List(); + /// - /// Soil Profile Object holding name, location and other common properties, base class for SoilProfile1D and SoilProfile2D + /// List of Preconsolidation stresses related to a soil profile /// - public class SoilProfile : IName + [Validate] + public virtual List PreconsolidationStresses { - private readonly List preconsolidationStresses = new List(); - - /// - /// List of Preconsolidation stresses related to a soil profile - /// - [Validate] - public virtual List PreconsolidationStresses + get { - get - { - return preconsolidationStresses; - } + return preconsolidationStresses; } + } - /// - /// The name of the profile - /// - public virtual string Name { get; set; } = "Soil Profile"; + /// + /// The name of the profile + /// + public virtual string Name { get; set; } = "Soil Profile"; - /// - /// Assigns the specified soil profile. - /// - /// The soil profile. - public void Assign(SoilProfile soilProfile) + /// + /// Assigns the specified soil profile. + /// + /// The soil profile. + public void Assign(SoilProfile soilProfile) + { + Name = soilProfile.Name; + foreach (PreConsolidationStress preconsolidationStress in soilProfile.PreconsolidationStresses) { - Name = soilProfile.Name; - foreach (PreConsolidationStress preconsolidationStress in soilProfile.PreconsolidationStresses) - { - var newPs = (PreConsolidationStress) preconsolidationStress.Clone(); - preconsolidationStresses.Add(newPs); - } + var newPs = (PreConsolidationStress) preconsolidationStress.Clone(); + preconsolidationStresses.Add(newPs); } } } \ No newline at end of file