コード例 #1
0
 private bool Equals(ClosingStructure other)
 {
     return(AllowedLevelIncreaseStorage.Equals(other.AllowedLevelIncreaseStorage) &&
            AreaFlowApertures.Equals(other.AreaFlowApertures) &&
            CriticalOvertoppingDischarge.Equals(other.CriticalOvertoppingDischarge) &&
            FailureProbabilityOpenStructure.Equals(other.FailureProbabilityOpenStructure) &&
            FailureProbabilityReparation.Equals(other.FailureProbabilityReparation) &&
            IdenticalApertures.Equals(other.IdenticalApertures) &&
            FlowWidthAtBottomProtection.Equals(other.FlowWidthAtBottomProtection) &&
            InflowModelType.Equals(other.InflowModelType) &&
            InsideWaterLevel.Equals(other.InsideWaterLevel) &&
            LevelCrestStructureNotClosing.Equals(other.LevelCrestStructureNotClosing) &&
            ProbabilityOpenStructureBeforeFlooding.Equals(other.ProbabilityOpenStructureBeforeFlooding) &&
            StorageStructureArea.Equals(other.StorageStructureArea) &&
            ThresholdHeightOpenWeir.Equals(other.ThresholdHeightOpenWeir) &&
            WidthFlowApertures.Equals(other.WidthFlowApertures));
 }
コード例 #2
0
        /// <summary>
        /// Copies the property values of the <paramref name="fromStructure"/> to the
        /// <see cref="ClosingStructure"/>.
        /// </summary>
        /// <param name="fromStructure">The <see cref="ClosingStructure"/> to get the property
        /// values from.</param>
        /// <exception cref="ArgumentNullException">Thrown when <paramref name="fromStructure"/>
        /// is <c>null</c>.</exception>
        public void CopyProperties(ClosingStructure fromStructure)
        {
            base.CopyProperties(fromStructure);

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

            AreaFlowApertures.Mean = fromStructure.AreaFlowApertures.Mean;
            AreaFlowApertures.StandardDeviation = fromStructure.AreaFlowApertures.StandardDeviation;

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

            FailureProbabilityOpenStructure = fromStructure.FailureProbabilityOpenStructure;

            FailureProbabilityReparation = fromStructure.FailureProbabilityReparation;

            IdenticalApertures = fromStructure.IdenticalApertures;

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

            InflowModelType = fromStructure.InflowModelType;

            InsideWaterLevel.Mean = fromStructure.InsideWaterLevel.Mean;
            InsideWaterLevel.StandardDeviation = fromStructure.InsideWaterLevel.StandardDeviation;

            LevelCrestStructureNotClosing.Mean = fromStructure.LevelCrestStructureNotClosing.Mean;
            LevelCrestStructureNotClosing.StandardDeviation = fromStructure.LevelCrestStructureNotClosing.StandardDeviation;

            ProbabilityOpenStructureBeforeFlooding = fromStructure.ProbabilityOpenStructureBeforeFlooding;

            StorageStructureArea.Mean = fromStructure.StorageStructureArea.Mean;
            StorageStructureArea.CoefficientOfVariation = fromStructure.StorageStructureArea.CoefficientOfVariation;

            ThresholdHeightOpenWeir.Mean = fromStructure.ThresholdHeightOpenWeir.Mean;
            ThresholdHeightOpenWeir.StandardDeviation = fromStructure.ThresholdHeightOpenWeir.StandardDeviation;

            WidthFlowApertures.Mean = fromStructure.WidthFlowApertures.Mean;
            WidthFlowApertures.StandardDeviation = fromStructure.WidthFlowApertures.StandardDeviation;
        }