Пример #1
0
 private bool Equals(HeightStructure other)
 {
     return(AllowedLevelIncreaseStorage.Equals(other.AllowedLevelIncreaseStorage) &&
            CriticalOvertoppingDischarge.Equals(other.CriticalOvertoppingDischarge) &&
            FailureProbabilityStructureWithErosion.Equals(other.FailureProbabilityStructureWithErosion) &&
            FlowWidthAtBottomProtection.Equals(other.FlowWidthAtBottomProtection) &&
            LevelCrestStructure.Equals(other.LevelCrestStructure) &&
            StorageStructureArea.Equals(other.StorageStructureArea) &&
            WidthFlowApertures.Equals(other.WidthFlowApertures));
 }
Пример #2
0
        /// <summary>
        /// Copies the property values of the <paramref name="fromStructure"/> to the
        /// <see cref="HeightStructure"/>.
        /// </summary>
        /// <param name="fromStructure">The <see cref="HeightStructure"/> to get the property
        /// values from.</param>
        /// <exception cref="ArgumentNullException">Thrown when <paramref name="fromStructure"/>
        /// is <c>null</c>.</exception>
        public void CopyProperties(HeightStructure fromStructure)
        {
            base.CopyProperties(fromStructure);

            AllowedLevelIncreaseStorage.Mean = fromStructure.AllowedLevelIncreaseStorage.Mean;
            AllowedLevelIncreaseStorage.StandardDeviation = fromStructure.AllowedLevelIncreaseStorage.StandardDeviation;

            CriticalOvertoppingDischarge.Mean = fromStructure.CriticalOvertoppingDischarge.Mean;
            CriticalOvertoppingDischarge.CoefficientOfVariation = fromStructure.CriticalOvertoppingDischarge.CoefficientOfVariation;

            FailureProbabilityStructureWithErosion = fromStructure.FailureProbabilityStructureWithErosion;

            FlowWidthAtBottomProtection.Mean = fromStructure.FlowWidthAtBottomProtection.Mean;
            FlowWidthAtBottomProtection.StandardDeviation = fromStructure.FlowWidthAtBottomProtection.StandardDeviation;

            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;
        }