コード例 #1
0
 private bool Equals(StabilityPointStructure other)
 {
     return(StorageStructureArea.Equals(other.StorageStructureArea) &&
            AllowedLevelIncreaseStorage.Equals(other.AllowedLevelIncreaseStorage) &&
            WidthFlowApertures.Equals(other.WidthFlowApertures) &&
            InsideWaterLevel.Equals(other.InsideWaterLevel) &&
            ThresholdHeightOpenWeir.Equals(other.ThresholdHeightOpenWeir) &&
            CriticalOvertoppingDischarge.Equals(other.CriticalOvertoppingDischarge) &&
            FlowWidthAtBottomProtection.Equals(other.FlowWidthAtBottomProtection) &&
            ConstructiveStrengthLinearLoadModel.Equals(other.ConstructiveStrengthLinearLoadModel) &&
            ConstructiveStrengthQuadraticLoadModel.Equals(other.ConstructiveStrengthQuadraticLoadModel) &&
            BankWidth.Equals(other.BankWidth) &&
            InsideWaterLevelFailureConstruction.Equals(other.InsideWaterLevelFailureConstruction) &&
            EvaluationLevel.Equals(other.EvaluationLevel) &&
            LevelCrestStructure.Equals(other.LevelCrestStructure) &&
            VerticalDistance.Equals(other.VerticalDistance) &&
            FailureProbabilityRepairClosure.Equals(other.FailureProbabilityRepairClosure) &&
            FailureCollisionEnergy.Equals(other.FailureCollisionEnergy) &&
            ShipMass.Equals(other.ShipMass) &&
            ShipVelocity.Equals(other.ShipVelocity) &&
            LevellingCount.Equals(other.LevellingCount) &&
            ProbabilityCollisionSecondaryStructure.Equals(other.ProbabilityCollisionSecondaryStructure) &&
            FlowVelocityStructureClosable.Equals(other.FlowVelocityStructureClosable) &&
            StabilityLinearLoadModel.Equals(other.StabilityLinearLoadModel) &&
            StabilityQuadraticLoadModel.Equals(other.StabilityQuadraticLoadModel) &&
            AreaFlowApertures.Equals(other.AreaFlowApertures) &&
            InflowModelType.Equals(other.InflowModelType));
 }
コード例 #2
0
        public override int GetHashCode()
        {
            unchecked
            {
                int hashCode = base.GetHashCode();
                hashCode = (hashCode * 397) ^ StorageStructureArea.GetHashCode();
                hashCode = (hashCode * 397) ^ AllowedLevelIncreaseStorage.GetHashCode();
                hashCode = (hashCode * 397) ^ WidthFlowApertures.GetHashCode();
                hashCode = (hashCode * 397) ^ InsideWaterLevel.GetHashCode();
                hashCode = (hashCode * 397) ^ ThresholdHeightOpenWeir.GetHashCode();
                hashCode = (hashCode * 397) ^ CriticalOvertoppingDischarge.GetHashCode();
                hashCode = (hashCode * 397) ^ FlowWidthAtBottomProtection.GetHashCode();
                hashCode = (hashCode * 397) ^ ConstructiveStrengthLinearLoadModel.GetHashCode();
                hashCode = (hashCode * 397) ^ ConstructiveStrengthQuadraticLoadModel.GetHashCode();
                hashCode = (hashCode * 397) ^ BankWidth.GetHashCode();
                hashCode = (hashCode * 397) ^ InsideWaterLevelFailureConstruction.GetHashCode();
                hashCode = (hashCode * 397) ^ LevelCrestStructure.GetHashCode();
                hashCode = (hashCode * 397) ^ FailureCollisionEnergy.GetHashCode();
                hashCode = (hashCode * 397) ^ ShipMass.GetHashCode();
                hashCode = (hashCode * 397) ^ ShipVelocity.GetHashCode();
                hashCode = (hashCode * 397) ^ FlowVelocityStructureClosable.GetHashCode();
                hashCode = (hashCode * 397) ^ StabilityLinearLoadModel.GetHashCode();
                hashCode = (hashCode * 397) ^ StabilityQuadraticLoadModel.GetHashCode();
                hashCode = (hashCode * 397) ^ AreaFlowApertures.GetHashCode();

                return(hashCode);
            }
        }
コード例 #3
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));
 }
コード例 #4
0
        public override int GetHashCode()
        {
            unchecked
            {
                int hashCode = base.GetHashCode();
                hashCode = (hashCode * 397) ^ AllowedLevelIncreaseStorage.GetHashCode();
                hashCode = (hashCode * 397) ^ CriticalOvertoppingDischarge.GetHashCode();
                hashCode = (hashCode * 397) ^ FlowWidthAtBottomProtection.GetHashCode();
                hashCode = (hashCode * 397) ^ LevelCrestStructure.GetHashCode();
                hashCode = (hashCode * 397) ^ StorageStructureArea.GetHashCode();
                hashCode = (hashCode * 397) ^ WidthFlowApertures.GetHashCode();

                return(hashCode);
            }
        }
コード例 #5
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));
 }
コード例 #6
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);
            }
        }
コード例 #7
0
        public override object Clone()
        {
            var clone = (StructuresInputBase <T>)base.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);
        }