示例#1
0
        public override object Clone()
        {
            var clone = (ClosingStructuresInput)base.Clone();

            clone.thresholdHeightOpenWeir       = (NormalDistribution)ThresholdHeightOpenWeir.Clone();
            clone.modelFactorSuperCriticalFlow  = (NormalDistribution)ModelFactorSuperCriticalFlow.Clone();
            clone.drainCoefficient              = (LogNormalDistribution)DrainCoefficient.Clone();
            clone.areaFlowApertures             = (LogNormalDistribution)AreaFlowApertures.Clone();
            clone.levelCrestStructureNotClosing = (NormalDistribution)LevelCrestStructureNotClosing.Clone();
            clone.insideWaterLevel              = (NormalDistribution)InsideWaterLevel.Clone();

            return(clone);
        }
示例#2
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));
 }
示例#3
0
        public override int GetHashCode()
        {
            unchecked
            {
                int hashCode = base.GetHashCode();
                hashCode = (hashCode * 397) ^ AllowedLevelIncreaseStorage.GetHashCode();
                hashCode = (hashCode * 397) ^ AreaFlowApertures.GetHashCode();
                hashCode = (hashCode * 397) ^ CriticalOvertoppingDischarge.GetHashCode();
                hashCode = (hashCode * 397) ^ FlowWidthAtBottomProtection.GetHashCode();
                hashCode = (hashCode * 397) ^ InsideWaterLevel.GetHashCode();
                hashCode = (hashCode * 397) ^ LevelCrestStructureNotClosing.GetHashCode();
                hashCode = (hashCode * 397) ^ StorageStructureArea.GetHashCode();
                hashCode = (hashCode * 397) ^ ThresholdHeightOpenWeir.GetHashCode();
                hashCode = (hashCode * 397) ^ WidthFlowApertures.GetHashCode();

                return(hashCode);
            }
        }