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)); }
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); } }
public override object Clone() { var clone = (StabilityPointStructuresInput)base.Clone(); clone.insideWaterLevelFailureConstruction = (NormalDistribution)InsideWaterLevelFailureConstruction.Clone(); clone.insideWaterLevel = (NormalDistribution)InsideWaterLevel.Clone(); clone.drainCoefficient = (LogNormalDistribution)DrainCoefficient.Clone(); clone.levelCrestStructure = (NormalDistribution)LevelCrestStructure.Clone(); clone.thresholdHeightOpenWeir = (NormalDistribution)ThresholdHeightOpenWeir.Clone(); clone.areaFlowApertures = (LogNormalDistribution)AreaFlowApertures.Clone(); clone.constructiveStrengthLinearLoadModel = (VariationCoefficientLogNormalDistribution)ConstructiveStrengthLinearLoadModel.Clone(); clone.constructiveStrengthQuadraticLoadModel = (VariationCoefficientLogNormalDistribution)ConstructiveStrengthQuadraticLoadModel.Clone(); clone.stabilityLinearLoadModel = (VariationCoefficientLogNormalDistribution)StabilityLinearLoadModel.Clone(); clone.stabilityQuadraticLoadModel = (VariationCoefficientLogNormalDistribution)StabilityQuadraticLoadModel.Clone(); clone.failureCollisionEnergy = (VariationCoefficientLogNormalDistribution)FailureCollisionEnergy.Clone(); clone.shipMass = (VariationCoefficientNormalDistribution)ShipMass.Clone(); clone.shipVelocity = (VariationCoefficientNormalDistribution)ShipVelocity.Clone(); clone.bankWidth = (NormalDistribution)BankWidth.Clone(); clone.flowVelocityStructureClosable = (VariationCoefficientNormalDistribution)FlowVelocityStructureClosable.Clone(); return(clone); }