Index: dam engine/trunk/src/Deltares.DamEngine.Data/General/Location.cs =================================================================== diff -u -r337 -r354 --- dam engine/trunk/src/Deltares.DamEngine.Data/General/Location.cs (.../Location.cs) (revision 337) +++ dam engine/trunk/src/Deltares.DamEngine.Data/General/Location.cs (.../Location.cs) (revision 354) @@ -37,113 +37,9 @@ namespace Deltares.DamEngine.Data.General { - internal static class LocationParameterNames - { - public const string DamType = "DamType"; - public const string DikeRingId = "DikeRingId"; - public const string Description = "Description"; - public const string XRd = "XRd"; - public const string YRd = "YRd"; - public const string SegmentId = "SegmentId"; - public const string SurfaceLineId = "SurfaceLineId"; - public const string PL1LineId = "PL1LineId"; - public const string DredgingDepth = "DredgingDepth"; - public const string PolderLevel = "PolderLevel"; - public const string PolderLevelLow = "PolderLevelLow"; - public const string HeadPL2 = "HeadPL2"; - public const string HeadPL3 = "HeadPL3"; - public const string HeadPL4 = "HeadPL4"; - public const string GrassQuality = "GrassQuality"; - public const string Direction = "Direction"; - public const string XSoilGeometry2DOrigin = "XSoilGeometry2DOrigin"; - public const string DikeMaterialType = "DikeMaterialType"; - public const string DikeEmbankmentMaterial = "DikeEmbankmentMaterial"; - public const string ShoulderEmbankmentMaterial = "ShoulderEmbankmentMaterial"; - public const string DampingFactorPL3 = "DampingFactorPL3"; - public const string DampingFactorPL4 = "DampingFactorPL4"; - public const string SheetPilePointX = "SheetPilePointX"; - public const string SheetPilePointY = "SheetPilePointY"; - public const string SheetPilePointZ = "SheetPilePointZ"; - public const string SheetPileLength = "SheetPileLength"; - public const string RwBankProtectionBottomLevel = "RwBankProtectionBottomLevel"; - public const string IsUseOriginalPLLineAssignments = "IsUseOriginalPLLineAssignments"; - public const string PenetrationLength = "PenetrationLength"; - public const string TrafficLoad = "TrafficLoad"; - public const string PLLineCreationMethod = "PLLineCreationMethod"; - public const string PLLineOffsetBelowDikeTopAtRiver = "PLLineOffsetBelowDikeTopAtRiver"; - public const string PLLineOffsetBelowDikeTopAtPolder = "PLLineOffsetBelowDikeTopAtPolder"; - public const string PLLineOffsetBelowShoulderBaseInside = "PLLineOffsetBelowShoulderBaseInside"; - public const string PLLineOffsetBelowDikeToeAtPolder = "PLLineOffsetBelowDikeToeAtPolder"; - public const string PLLineOffsetDryBelowDikeTopAtRiver = "PLLineOffsetDryBelowDikeTopAtRiver"; - public const string PLLineOffsetDryBelowDikeTopAtPolder = "PLLineOffsetDryBelowDikeTopAtPolder"; - public const string PLLineOffsetDryBelowShoulderBaseInside = "PLLineOffsetDryBelowShoulderBaseInside"; - public const string PLLineOffsetDryBelowDikeToeAtPolder = "PLLineOffsetDryBelowDikeToeAtPolder"; - public const string PlLineOffsetBelowDikeCrestMiddle = "PlLineOffsetBelowDikeCrestMiddle"; - public const string PlLineOffsetFactorBelowShoulderCrest = "PlLineOffsetFactorBelowShoulderCrest"; - public const string PlLineOffsetDryBelowDikeCrestMiddle = "PlLineOffsetDryBelowDikeCrestMiddle"; - public const string PlLineOffsetDryFactorBelowShoulderCrest = "PlLineOffsetDryFactorBelowShoulderCrest"; - public const string UsePlLineOffsetBelowDikeCrestMiddle = "UsePlLineOffsetBelowDikeCrestMiddle"; - public const string UsePlLineOffsetFactorBelowShoulderCrest = "UsePlLineOffsetFactorBelowShoulderCrest"; - public const string UsePlLineOffsetDryBelowDikeCrestMiddle = "UsePlLineOffsetDryBelowDikeCrestMiddle"; - public const string UsePlLineOffsetDryFactorBelowShoulderCrest = "UsePlLineOffsetDryFactorBelowShoulderCrest"; - public const string StabilityShoulderGrowSlope = "StabilityShoulderGrowSlope"; - public const string StabilityShoulderGrowDeltaX = "StabilityShoulderGrowDeltaX"; - public const string StabilitySlopeAdaptionDeltaX = "StabilitySlopeAdaptionDeltaX"; - public const string BoezemLevelTp = "BoezemLevelTp"; - public const string BoezemlevelHbp = "BoezemLevelHbp"; - public const string BoezemLevelLbp = "BoezemLevelLbp"; - public const string MinimalCircleDepth = "MinimalCircleDepth"; - public const string LevelReductionInside = "LevelReductionInside"; - public const string LevelReductionOutside = "LevelReductionOutside"; - public const string LayerHeightDistribution = "LayerHeightDistribution"; - public const string LayerHeightDeviation = "LayerHeightDeviation"; - public const string DistanceToEntryPoint = "DistanceToEntryPoint"; - public const string RequiredSafetyFactorStabilityInnerSlope = "RequiredSafetyFactorStabilityInnerSlope"; - public const string RequiredSafetyFactorStabilityOuterSlope = "RequiredSafetyFactorStabilityOuterSlope"; - public const string RequiredSafetyFactorPiping = "RequiredSafetyFactorPiping"; - public const string RequiredProbabilityOfFailureStabilityInnerslope = "RequiredProbabilityOfFailureStabilityInnerslope"; - public const string RequiredProbabilityOfFailureStabilityOuterslope = "RequiredProbabilityOfFailureStabilityOuterslope"; - public const string RequiredProbabilityOfFailurePiping = "RequiredProbabilityOfFailurePiping"; - public const string UpliftCriterionPiping = "UpliftCriterionPiping"; - public const string UpliftCriterionStability = "UpliftCriterionStability"; - public const string DetrimentFactor = "DetrimentFactor"; - public const string StabilityZoneType = "StabilityZoneType"; - public const string ForbiddenZoneFactor = "ForbiddenZoneFactor"; - public const string ZoneAreaRestSlopeCrestWidth = "ZoneAreaRestSlopeCrestWidth"; - public const string DikeTableHeight = "DikeTableHeight"; - public const string StabilityDesignMethod = "StabilityDesignMethod"; - public const string SlopeAdaptionStartCotangent = "SlopeAdaptionStartCotangent"; - public const string SlopeAdaptionEndCotangent = "SlopeAdaptionEndCotangent"; - public const string SlopeAdaptionStepCotangent = "SlopeAdaptionStepCotangent"; - public const string SlopeDampingPiezometricHeightPolderSide = "SlopeDampingPiezometricHeightPolderSide"; - public const string NewDepthDitch = "NewDepthDitch"; - public const string NewDikeSlopeInside = "NewDikeSlopeInside"; - public const string NewDikeSlopeOutside = "NewDikeSlopeOutside"; - public const string NewDikeTopWidth = "NewDikeTopWidth"; - public const string NewMaxHeightShoulderAsFraction = "NewMaxHeightShoulderAsFraction"; - public const string NewMinDistanceDikeToeStartDitch = "NewMinDistanceDikeToeStartDitch"; - public const string NewShoulderBaseSlope = "NewShoulderBaseSlope"; - public const string NewShoulderTopSlope = "NewShoulderTopSlope"; - public const string NewSlopeAngleDitch = "NewSlopeAngleDitch"; - public const string NewWidthDitchBottom = "NewWidthDitchBottom"; - public const string UseNewDikeSlopeInside = "UseNewDikeSlopeInside"; - public const string UseNewDikeSlopeOutside = "UseNewDikeSlopeOutside"; - public const string UseNewDikeTopWidth = "UseNewDikeTopWidth"; - public const string UseNewDitchDefinition = "UseNewDitchDefinition"; - public const string UseNewMaxHeightShoulderAsFraction = "UseNewMaxHeightShoulderAsFraction"; - public const string UseNewMinDistanceDikeToeStartDitch = "UseNewMinDistanceDikeToeStartDitch"; - public const string UseNewShoulderBaseSlope = "UseNewShoulderBaseSlope"; - public const string UseNewShoulderTopSlope = "UseNewShoulderTopSlope"; - public const string IntrusionVerticalWaterPressure = "IntrusionVerticalWaterPressure"; - } - public class Location { // Added initial value as these properties must be tested for real values on import - public const string AllCategory = "MainItems"; - public const string DikeCategory = "Dike"; - public const string WaterCategory = "Water levels"; - public const string DesignCategory = "Design"; private const double BoezemLevelNotSetValue = -987654321.0; private const double newDikeTopWidthMinValue = 0.1; private const double newDikeSlopeInsideMinValue = 0.01; @@ -156,27 +52,17 @@ private double boezemLevelLbp = BoezemLevelNotSetValue; private double boezemLevelTp = BoezemLevelNotSetValue; - // ATTENTION !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - // - // When adding properties below do not forget to add these properties to SetParameterFromNameValuePair and GetParametersAsNameValuePairs - // - // ATTENTION !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + private ModelParametersForPLLines modelParametersForPLLines = new ModelParametersForPLLines(); private DamType damType = DamType.Primary; - private double dampingFactorPL3 = 0; - private double dampingFactorPL4 = 0; private string description = ""; private double detrimentFactor = 0.95; private string dikeEmbankmentMaterial = ""; private SoilType dikeMaterialType = SoilType.Clay; - private string dikeRingId = ""; private double dikeTableHeight = 0.0; - private double direction = 0; - private double distanceToEntryPoint = 0; private double dredgingDepth = 0; private double forbiddenZoneFactor = 1.0; private IList gaugePLLines = new List(); private IList gauges = new List(); - private double grassQuality = 0; private double? headPL2 = null; private double? headPL3 = null; private double? headPL4 = null; @@ -204,7 +90,6 @@ private double newSlopeAngleDitch = 1.0/0.5; // as tangent private double newWidthDitchBottom = 1.0; private PL1Line pL1Line; - private PLLineCreationMethod pLLineCreationMethod = PLLineCreationMethod.ExpertKnowledgeRRD; private double pLLineOffsetBelowDikeToeAtPolder = 0.1; private double pLLineOffsetBelowDikeTopAtPolder = 1.5; private double pLLineOffsetBelowDikeTopAtRiver = 0.5; @@ -213,7 +98,6 @@ private double pLLineOffsetDryBelowDikeTopAtPolder = 1.5; private double pLLineOffsetDryBelowDikeTopAtRiver = 0.5; private double pLLineOffsetDryBelowShoulderBaseInside = 0.1; - private double penetrationLength = 0; private double polderLevel = 0; private double polderLevelLow = 0; private bool redesignDikeHeight = true; @@ -369,30 +253,6 @@ } } - public virtual double GrassQuality - { - get - { - return grassQuality; - } - set - { - grassQuality = value; - } - } - - public virtual double Direction - { - get - { - return direction; - } - set - { - direction = value; - } - } - public virtual double XSoilGeometry2DOrigin { get @@ -714,18 +574,6 @@ } } - public virtual double DistanceToEntryPoint - { - get - { - return distanceToEntryPoint; - } - set - { - distanceToEntryPoint = value; - } - } - public virtual double DetrimentFactor { get @@ -774,18 +622,6 @@ } } - public string DikeRingId - { - get - { - return dikeRingId; - } - set - { - dikeRingId = value; - } - } - public string SurfaceLineId { get @@ -1367,7 +1203,7 @@ [Validate] public ValidationResult[] ValidateLocationUseOfPenetrationLength() { - if (PenetrationLength > 0) + if (modelParametersForPLLines.PenetrationLength > 0) { // It may be used on 1D geometries if (!String.IsNullOrEmpty(this.Segment.GetMostProbableGeometry2DName(FailureMechanismSystemType.StabilityInside))) @@ -1623,24 +1459,6 @@ #region PLLine creation parameters /// - /// Gets or sets the pl line creation method. - /// - /// - /// The pl line creation method. - /// - public virtual PLLineCreationMethod PLLineCreationMethod - { - get - { - return pLLineCreationMethod; - } - set - { - pLLineCreationMethod = value; - } - } - - /// /// Gets or sets the head pl 2. /// /// @@ -1695,60 +1513,6 @@ } /// - /// Gets or sets the damping factor pl 3. - /// - /// - /// The damping factor pl 3. - /// - public virtual double DampingFactorPL3 - { - get - { - return dampingFactorPL3; - } - set - { - dampingFactorPL3 = value; - } - } - - /// - /// Gets or sets the damping factor pl 4. - /// - /// - /// The damping factor pl 4. - /// - public virtual double DampingFactorPL4 - { - get - { - return dampingFactorPL4; - } - set - { - dampingFactorPL4 = value; - } - } - - /// - /// Gets or sets the length of the penetration. - /// - /// - /// The length of the penetration. - /// - public virtual double PenetrationLength - { - get - { - return penetrationLength; - } - set - { - penetrationLength = value; - } - } - - /// /// Gets or sets the pl line offset below dike top at river. /// /// @@ -2095,207 +1859,6 @@ } } - /// - /// Assemble a list of key/value pairs with the relevant parameters for the location - /// - /// - public Dictionary GetParametersAsNameValuePairs() - { - var numberFormatInfo = new NumberFormatInfo(); - numberFormatInfo.NumberDecimalSeparator = "."; - var nameValuePairs = new Dictionary(); - nameValuePairs.Add(LocationParameterNames.DamType, DamType.ToString()); - nameValuePairs.Add(LocationParameterNames.DikeRingId, DikeRingId); - nameValuePairs.Add(LocationParameterNames.SurfaceLineId, SurfaceLineId); - nameValuePairs.Add(LocationParameterNames.Description, Description); - nameValuePairs.Add(LocationParameterNames.XRd, XRd.ToString(numberFormatInfo)); - nameValuePairs.Add(LocationParameterNames.YRd, YRd.ToString(numberFormatInfo)); - if (Segment != null) - { - nameValuePairs.Add(LocationParameterNames.SegmentId, Segment.Name); - } - else - { - nameValuePairs.Add(LocationParameterNames.SegmentId, SegmentId); - } - if (SurfaceLine2 != null) - { - nameValuePairs[LocationParameterNames.SurfaceLineId] = SurfaceLine2.Name; - } - if (PL1Line != null) - { - nameValuePairs.Add(LocationParameterNames.PL1LineId, PL1Line.Name); - } - nameValuePairs.Add(LocationParameterNames.DredgingDepth, DredgingDepth.ToString(numberFormatInfo)); - nameValuePairs.Add(LocationParameterNames.PolderLevel, PolderLevel.ToString(numberFormatInfo)); - nameValuePairs.Add(LocationParameterNames.PolderLevelLow, PolderLevelLow.ToString(numberFormatInfo)); - if (HeadPL2.HasValue) - { - nameValuePairs.Add(LocationParameterNames.HeadPL2, HeadPL2.Value.ToString(numberFormatInfo)); - } - if (HeadPl3.HasValue) - { - nameValuePairs.Add(LocationParameterNames.HeadPL3, HeadPl3.Value.ToString(numberFormatInfo)); - } - if (HeadPl4.HasValue) - { - nameValuePairs.Add(LocationParameterNames.HeadPL4, HeadPl4.Value.ToString(numberFormatInfo)); - } - nameValuePairs.Add(LocationParameterNames.GrassQuality, GrassQuality.ToString(numberFormatInfo)); - nameValuePairs.Add(LocationParameterNames.Direction, Direction.ToString(numberFormatInfo)); - nameValuePairs.Add(LocationParameterNames.XSoilGeometry2DOrigin, XSoilGeometry2DOrigin.ToString(numberFormatInfo)); - nameValuePairs.Add(LocationParameterNames.DikeMaterialType, DikeMaterialType.ToString()); - nameValuePairs.Add(LocationParameterNames.DikeEmbankmentMaterial, DikeEmbankmentMaterial); - nameValuePairs.Add(LocationParameterNames.ShoulderEmbankmentMaterial, ShoulderEmbankmentMaterial); - nameValuePairs.Add(LocationParameterNames.DampingFactorPL3, DampingFactorPL3.ToString(numberFormatInfo)); - nameValuePairs.Add(LocationParameterNames.DampingFactorPL4, DampingFactorPL4.ToString(numberFormatInfo)); - nameValuePairs.Add(LocationParameterNames.PenetrationLength, PenetrationLength.ToString(numberFormatInfo)); - nameValuePairs.Add(LocationParameterNames.BoezemLevelTp, BoezemLevelTp.ToString(numberFormatInfo)); - nameValuePairs.Add(LocationParameterNames.BoezemlevelHbp, BoezemLevelHbp.ToString(numberFormatInfo)); - nameValuePairs.Add(LocationParameterNames.BoezemLevelLbp, BoezemLevelLbp.ToString(numberFormatInfo)); - nameValuePairs.Add(LocationParameterNames.PLLineCreationMethod, PLLineCreationMethod.ToString()); - nameValuePairs.Add(LocationParameterNames.PLLineOffsetBelowDikeTopAtRiver, PlLineOffsetBelowDikeTopAtRiver.ToString(numberFormatInfo)); - nameValuePairs.Add(LocationParameterNames.PLLineOffsetBelowDikeTopAtPolder, PlLineOffsetBelowDikeTopAtPolder.ToString(numberFormatInfo)); - nameValuePairs.Add(LocationParameterNames.PLLineOffsetBelowShoulderBaseInside, PlLineOffsetBelowShoulderBaseInside.ToString(numberFormatInfo)); - nameValuePairs.Add(LocationParameterNames.PLLineOffsetBelowDikeToeAtPolder, PlLineOffsetBelowDikeToeAtPolder.ToString(numberFormatInfo)); - nameValuePairs.Add(LocationParameterNames.PLLineOffsetDryBelowDikeTopAtRiver, PLLineOffsetDryBelowDikeTopAtRiver.ToString(numberFormatInfo)); - nameValuePairs.Add(LocationParameterNames.PLLineOffsetDryBelowDikeTopAtPolder, PLLineOffsetDryBelowDikeTopAtPolder.ToString(numberFormatInfo)); - nameValuePairs.Add(LocationParameterNames.PLLineOffsetDryBelowShoulderBaseInside, PLLineOffsetDryBelowShoulderBaseInside.ToString(numberFormatInfo)); - nameValuePairs.Add(LocationParameterNames.PLLineOffsetDryBelowDikeToeAtPolder, PLLineOffsetDryBelowDikeToeAtPolder.ToString(numberFormatInfo)); - if (PlLineOffsetBelowDikeCrestMiddle.HasValue) - { - nameValuePairs.Add(LocationParameterNames.PlLineOffsetBelowDikeCrestMiddle, - PlLineOffsetBelowDikeCrestMiddle.Value.ToString(numberFormatInfo)); - } - if (PlLineOffsetFactorBelowShoulderCrest.HasValue) - { - nameValuePairs.Add(LocationParameterNames.PlLineOffsetFactorBelowShoulderCrest, - PlLineOffsetFactorBelowShoulderCrest.Value.ToString(numberFormatInfo)); - } - if (PlLineOffsetDryBelowDikeCrestMiddle.HasValue) - { - nameValuePairs.Add(LocationParameterNames.PlLineOffsetDryBelowDikeCrestMiddle, - PlLineOffsetDryBelowDikeCrestMiddle.Value.ToString(numberFormatInfo)); - } - if (PlLineOffsetDryFactorBelowShoulderCrest.HasValue) - { - nameValuePairs.Add(LocationParameterNames.PlLineOffsetDryFactorBelowShoulderCrest, - PlLineOffsetDryFactorBelowShoulderCrest.Value.ToString(numberFormatInfo)); - } - if (UsePlLineOffsetBelowDikeCrestMiddle.HasValue) - { - nameValuePairs.Add(LocationParameterNames.UsePlLineOffsetBelowDikeCrestMiddle, - UsePlLineOffsetBelowDikeCrestMiddle.Value.ToString()); - } - if (UsePlLineOffsetFactorBelowShoulderCrest.HasValue) - { - nameValuePairs.Add(LocationParameterNames.UsePlLineOffsetFactorBelowShoulderCrest, - UsePlLineOffsetFactorBelowShoulderCrest.Value.ToString()); - } - if (UsePlLineOffsetDryBelowDikeCrestMiddle.HasValue) - { - nameValuePairs.Add(LocationParameterNames.UsePlLineOffsetDryBelowDikeCrestMiddle, - UsePlLineOffsetDryBelowDikeCrestMiddle.Value.ToString()); - } - if (UsePlLineOffsetDryFactorBelowShoulderCrest.HasValue) - { - nameValuePairs.Add(LocationParameterNames.UsePlLineOffsetDryFactorBelowShoulderCrest, - UsePlLineOffsetDryFactorBelowShoulderCrest.Value.ToString()); - } - if (IntrusionVerticalWaterPressure.HasValue) - { - nameValuePairs.Add(LocationParameterNames.IntrusionVerticalWaterPressure, - IntrusionVerticalWaterPressure.Value.ToString()); - } - nameValuePairs.Add(LocationParameterNames.StabilityShoulderGrowSlope, StabilityShoulderGrowSlope.ToString(numberFormatInfo)); - nameValuePairs.Add(LocationParameterNames.StabilityShoulderGrowDeltaX, StabilityShoulderGrowDeltaX.ToString(numberFormatInfo)); - nameValuePairs.Add(LocationParameterNames.StabilitySlopeAdaptionDeltaX, StabilitySlopeAdaptionDeltaX.ToString(numberFormatInfo)); - nameValuePairs.Add(LocationParameterNames.SheetPilePointX, SheetPilePoint.X.ToString(numberFormatInfo)); - nameValuePairs.Add(LocationParameterNames.SheetPilePointY, SheetPilePoint.Y.ToString(numberFormatInfo)); - nameValuePairs.Add(LocationParameterNames.SheetPilePointZ, SheetPilePoint.Z.ToString(numberFormatInfo)); - nameValuePairs.Add(LocationParameterNames.SheetPileLength, SheetPileLength.ToString(numberFormatInfo)); - nameValuePairs.Add(LocationParameterNames.RwBankProtectionBottomLevel, RwBankProtectionBottomLevel.ToString(numberFormatInfo)); - nameValuePairs.Add(LocationParameterNames.IsUseOriginalPLLineAssignments, IsUseOriginalPLLineAssignments.ToString()); - nameValuePairs.Add(LocationParameterNames.TrafficLoad, TrafficLoad.ToString(numberFormatInfo)); - nameValuePairs.Add(LocationParameterNames.MinimalCircleDepth, MinimalCircleDepth.ToString(numberFormatInfo)); - nameValuePairs.Add(LocationParameterNames.LevelReductionInside, LevelReductionInside.ToString(numberFormatInfo)); - nameValuePairs.Add(LocationParameterNames.LevelReductionOutside, LevelReductionOutside.ToString(numberFormatInfo)); - nameValuePairs.Add(LocationParameterNames.LayerHeightDistribution, LayerHeightDistribution.ToString()); - nameValuePairs.Add(LocationParameterNames.LayerHeightDeviation, LayerHeightDeviation.ToString(numberFormatInfo)); - nameValuePairs.Add(LocationParameterNames.DistanceToEntryPoint, DistanceToEntryPoint.ToString(numberFormatInfo)); - if (ModelFactors.RequiredSafetyFactorStabilityInnerSlope != null) - { - nameValuePairs.Add(LocationParameterNames.RequiredSafetyFactorStabilityInnerSlope, ModelFactors.RequiredSafetyFactorStabilityInnerSlope.Value.ToString(numberFormatInfo)); - } - if (ModelFactors.RequiredSafetyFactorStabilityOuterSlope != null) - { - nameValuePairs.Add(LocationParameterNames.RequiredSafetyFactorStabilityOuterSlope, ModelFactors.RequiredSafetyFactorStabilityOuterSlope.Value.ToString(numberFormatInfo)); - } - if (ModelFactors.RequiredSafetyFactorPiping != null) - { - nameValuePairs.Add(LocationParameterNames.RequiredSafetyFactorPiping, ModelFactors.RequiredSafetyFactorPiping.Value.ToString(numberFormatInfo)); - } - if (ModelFactors.RequiredProbabilityOfFailureStabilityInnerslope != null) - { - nameValuePairs.Add(LocationParameterNames.RequiredProbabilityOfFailureStabilityInnerslope, ModelFactors.RequiredProbabilityOfFailureStabilityInnerslope.Value.ToString(numberFormatInfo)); - } - if (ModelFactors.RequiredProbabilityOfFailureStabilityOuterslope != null) - { - nameValuePairs.Add(LocationParameterNames.RequiredProbabilityOfFailureStabilityOuterslope, ModelFactors.RequiredProbabilityOfFailureStabilityOuterslope.Value.ToString(numberFormatInfo)); - } - if (ModelFactors.RequiredProbabilityOfFailurePiping != null) - { - nameValuePairs.Add(LocationParameterNames.RequiredProbabilityOfFailurePiping, ModelFactors.RequiredProbabilityOfFailurePiping.Value.ToString(numberFormatInfo)); - } - if (ModelFactors.UpliftCriterionPiping != null) - { - nameValuePairs.Add(LocationParameterNames.UpliftCriterionPiping, ModelFactors.UpliftCriterionPiping.Value.ToString(numberFormatInfo)); - } - if (ModelFactors.UpliftCriterionStability != null) - { - nameValuePairs.Add(LocationParameterNames.UpliftCriterionStability, ModelFactors.UpliftCriterionStability.Value.ToString(numberFormatInfo)); - } - nameValuePairs.Add(LocationParameterNames.DetrimentFactor, DetrimentFactor.ToString(numberFormatInfo)); - nameValuePairs.Add(LocationParameterNames.StabilityZoneType, StabilityZoneType.ToString()); - nameValuePairs.Add(LocationParameterNames.ForbiddenZoneFactor, ForbiddenZoneFactor.ToString(numberFormatInfo)); - nameValuePairs.Add(LocationParameterNames.ZoneAreaRestSlopeCrestWidth, ZoneAreaRestSlopeCrestWidth.ToString(numberFormatInfo)); - - nameValuePairs.Add(LocationParameterNames.DikeTableHeight, DikeTableHeight.ToString(numberFormatInfo)); - nameValuePairs.Add(LocationParameterNames.SlopeDampingPiezometricHeightPolderSide, SlopeDampingPiezometricHeightPolderSide.ToString(numberFormatInfo)); - - nameValuePairs.Add(LocationParameterNames.StabilityDesignMethod, StabilityDesignMethod.ToString()); - nameValuePairs.Add(LocationParameterNames.SlopeAdaptionStartCotangent, SlopeAdaptionStartCotangent.ToString(numberFormatInfo)); - nameValuePairs.Add(LocationParameterNames.SlopeAdaptionEndCotangent, SlopeAdaptionEndCotangent.ToString(numberFormatInfo)); - nameValuePairs.Add(LocationParameterNames.SlopeAdaptionStepCotangent, SlopeAdaptionStepCotangent.ToString(numberFormatInfo)); - nameValuePairs.Add(LocationParameterNames.NewDepthDitch, NewDepthDitch.ToString(numberFormatInfo)); - nameValuePairs.Add(LocationParameterNames.NewDikeSlopeInside, NewDikeSlopeInside.ToString(numberFormatInfo)); - nameValuePairs.Add(LocationParameterNames.NewDikeSlopeOutside, NewDikeSlopeOutside.ToString(numberFormatInfo)); - nameValuePairs.Add(LocationParameterNames.NewDikeTopWidth, NewDikeTopWidth.ToString(numberFormatInfo)); - nameValuePairs.Add(LocationParameterNames.NewMaxHeightShoulderAsFraction, NewMaxHeightShoulderAsFraction.ToString(numberFormatInfo)); - nameValuePairs.Add(LocationParameterNames.NewMinDistanceDikeToeStartDitch, NewMinDistanceDikeToeStartDitch.ToString(numberFormatInfo)); - nameValuePairs.Add(LocationParameterNames.NewShoulderBaseSlope, NewShoulderBaseSlope.ToString(numberFormatInfo)); - nameValuePairs.Add(LocationParameterNames.NewShoulderTopSlope, NewShoulderTopSlope.ToString(numberFormatInfo)); - nameValuePairs.Add(LocationParameterNames.NewSlopeAngleDitch, NewSlopeAngleDitch.ToString(numberFormatInfo)); - nameValuePairs.Add(LocationParameterNames.NewWidthDitchBottom, NewWidthDitchBottom.ToString(numberFormatInfo)); - nameValuePairs.Add(LocationParameterNames.UseNewDikeSlopeInside, UseNewDikeSlopeInside.ToString()); - nameValuePairs.Add(LocationParameterNames.UseNewDikeSlopeOutside, UseNewDikeSlopeOutside.ToString()); - nameValuePairs.Add(LocationParameterNames.UseNewDikeTopWidth, UseNewDikeTopWidth.ToString()); - nameValuePairs.Add(LocationParameterNames.UseNewDitchDefinition, UseNewDitchDefinition.ToString()); - nameValuePairs.Add(LocationParameterNames.UseNewMaxHeightShoulderAsFraction, UseNewMaxHeightShoulderAsFraction.ToString()); - nameValuePairs.Add(LocationParameterNames.UseNewMinDistanceDikeToeStartDitch, UseNewMinDistanceDikeToeStartDitch.ToString()); - nameValuePairs.Add(LocationParameterNames.UseNewShoulderBaseSlope, UseNewShoulderBaseSlope.ToString()); - nameValuePairs.Add(LocationParameterNames.UseNewShoulderTopSlope, UseNewShoulderTopSlope.ToString()); - return nameValuePairs; - } - - public void SetParametersByNameValuepairs(Dictionary nameValuePairs) - { - foreach (var nameValuePair in nameValuePairs) - { - SetParameterFromNameValuePair(nameValuePair.Key, nameValuePair.Value); - } - } - [Validate] public ValidationResult[] AscendingLocalXZSurfaceLine() { @@ -2467,413 +2030,18 @@ } } - public void SetParameterFromNameValuePair(string parameterName, string parameterValue) + public ModelParametersForPLLines ModelParametersForPLLines { - var numberFormatInfo = new NumberFormatInfo(); - numberFormatInfo.NumberDecimalSeparator = "."; - if (parameterName.Equals(LocationParameterNames.DamType)) + get { - DamType = (DamType) Enum.Parse(typeof(DamType), parameterValue); + return modelParametersForPLLines; } - if (parameterName.Equals(LocationParameterNames.DikeRingId)) + set { - DikeRingId = parameterValue; + modelParametersForPLLines = value; } - if (parameterName.Equals(LocationParameterNames.Description)) - { - Description = parameterValue; - } - if (parameterName.Equals(LocationParameterNames.XRd)) - { - XRd = Convert.ToDouble(parameterValue, numberFormatInfo); - } - if (parameterName.Equals(LocationParameterNames.YRd)) - { - YRd = Convert.ToDouble(parameterValue, numberFormatInfo); - } - if (parameterName.Equals(LocationParameterNames.SegmentId)) - { - SegmentId = parameterValue; - } - if (parameterName.Equals(LocationParameterNames.SurfaceLineId)) - { - SurfaceLineId = parameterValue; - } - //if (parameterName.Equals(LocationParameterNames.PL1LineId)) - // this.PL1LineId = Convert.ToDouble(parameterValue, numberFormatInfo); - if (parameterName.Equals(LocationParameterNames.DredgingDepth)) - { - DredgingDepth = Convert.ToDouble(parameterValue, numberFormatInfo); - } - if (parameterName.Equals(LocationParameterNames.PolderLevel)) - { - PolderLevel = Convert.ToDouble(parameterValue, numberFormatInfo); - } - if (parameterName.Equals(LocationParameterNames.PolderLevelLow)) - { - PolderLevelLow = Convert.ToDouble(parameterValue, numberFormatInfo); - } - if (parameterName.Equals(LocationParameterNames.HeadPL2)) - { - HeadPL2 = Convert.ToDouble(parameterValue, numberFormatInfo); - } - if (parameterName.Equals(LocationParameterNames.HeadPL3)) - { - HeadPl3 = Convert.ToDouble(parameterValue, numberFormatInfo); - } - if (parameterName.Equals(LocationParameterNames.HeadPL4)) - { - HeadPl4 = Convert.ToDouble(parameterValue, numberFormatInfo); - } - if (parameterName.Equals(LocationParameterNames.GrassQuality)) - { - GrassQuality = Convert.ToDouble(parameterValue, numberFormatInfo); - } - if (parameterName.Equals(LocationParameterNames.Direction)) - { - Direction = Convert.ToDouble(parameterValue, numberFormatInfo); - } - if (parameterName.Equals(LocationParameterNames.XSoilGeometry2DOrigin)) - { - XSoilGeometry2DOrigin = Convert.ToDouble(parameterValue, numberFormatInfo); - } - if (parameterName.Equals(LocationParameterNames.DikeMaterialType)) - { - DikeMaterialType = (SoilType) Enum.Parse(typeof(SoilType), parameterValue); - } - if (parameterName.Equals(LocationParameterNames.DikeEmbankmentMaterial)) - { - DikeEmbankmentMaterial = parameterValue; - } - if (parameterName.Equals(LocationParameterNames.ShoulderEmbankmentMaterial)) - { - ShoulderEmbankmentMaterial = parameterValue; - } - if (parameterName.Equals(LocationParameterNames.DampingFactorPL3)) - { - DampingFactorPL3 = Convert.ToDouble(parameterValue, numberFormatInfo); - } - if (parameterName.Equals(LocationParameterNames.DampingFactorPL4)) - { - DampingFactorPL4 = Convert.ToDouble(parameterValue, numberFormatInfo); - } - if (parameterName.Equals(LocationParameterNames.PenetrationLength)) - { - PenetrationLength = Convert.ToDouble(parameterValue, numberFormatInfo); - } - if (parameterName.Equals(LocationParameterNames.BoezemLevelTp)) - { - BoezemLevelTp = Convert.ToDouble(parameterValue, numberFormatInfo); - } - if (parameterName.Equals(LocationParameterNames.BoezemlevelHbp)) - { - BoezemLevelHbp = Convert.ToDouble(parameterValue, numberFormatInfo); - } - if (parameterName.Equals(LocationParameterNames.BoezemLevelLbp)) - { - BoezemLevelLbp = Convert.ToDouble(parameterValue, numberFormatInfo); - } - if (parameterName.Equals(LocationParameterNames.PLLineCreationMethod)) - { - PLLineCreationMethod = (PLLineCreationMethod) Enum.Parse(typeof(PLLineCreationMethod), parameterValue); - } - if (parameterName.Equals(LocationParameterNames.PLLineOffsetBelowDikeTopAtRiver)) - { - PlLineOffsetBelowDikeTopAtRiver = Convert.ToDouble(parameterValue, numberFormatInfo); - } - if (parameterName.Equals(LocationParameterNames.PLLineOffsetBelowDikeTopAtPolder)) - { - PlLineOffsetBelowDikeTopAtPolder = Convert.ToDouble(parameterValue, numberFormatInfo); - } - if (parameterName.Equals(LocationParameterNames.PLLineOffsetBelowShoulderBaseInside)) - { - PlLineOffsetBelowShoulderBaseInside = Convert.ToDouble(parameterValue, numberFormatInfo); - } - if (parameterName.Equals(LocationParameterNames.PLLineOffsetBelowDikeToeAtPolder)) - { - PlLineOffsetBelowDikeToeAtPolder = Convert.ToDouble(parameterValue, numberFormatInfo); - } - if (parameterName.Equals(LocationParameterNames.PLLineOffsetDryBelowDikeTopAtRiver)) - { - PLLineOffsetDryBelowDikeTopAtRiver = Convert.ToDouble(parameterValue, numberFormatInfo); - } - if (parameterName.Equals(LocationParameterNames.PLLineOffsetDryBelowDikeTopAtPolder)) - { - PLLineOffsetDryBelowDikeTopAtPolder = Convert.ToDouble(parameterValue, numberFormatInfo); - } - if (parameterName.Equals(LocationParameterNames.PLLineOffsetDryBelowShoulderBaseInside)) - { - PLLineOffsetDryBelowShoulderBaseInside = Convert.ToDouble(parameterValue, numberFormatInfo); - } - if (parameterName.Equals(LocationParameterNames.PLLineOffsetDryBelowDikeToeAtPolder)) - { - PLLineOffsetDryBelowDikeToeAtPolder = Convert.ToDouble(parameterValue, numberFormatInfo); - } - if (parameterName.Equals(LocationParameterNames.PlLineOffsetBelowDikeCrestMiddle)) - { - PlLineOffsetBelowDikeCrestMiddle = Convert.ToDouble(parameterValue, numberFormatInfo); - } - if (parameterName.Equals(LocationParameterNames.PlLineOffsetFactorBelowShoulderCrest)) - { - PlLineOffsetFactorBelowShoulderCrest = Convert.ToDouble(parameterValue, numberFormatInfo); - } - if (parameterName.Equals(LocationParameterNames.PlLineOffsetDryBelowDikeCrestMiddle)) - { - PlLineOffsetDryBelowDikeCrestMiddle = Convert.ToDouble(parameterValue, numberFormatInfo); - } - if (parameterName.Equals(LocationParameterNames.PlLineOffsetDryFactorBelowShoulderCrest)) - { - PlLineOffsetDryFactorBelowShoulderCrest = Convert.ToDouble(parameterValue, numberFormatInfo); - } - if (parameterName.Equals(LocationParameterNames.UsePlLineOffsetBelowDikeCrestMiddle)) - { - UsePlLineOffsetBelowDikeCrestMiddle = Convert.ToBoolean(parameterValue); - } - if (parameterName.Equals(LocationParameterNames.UsePlLineOffsetFactorBelowShoulderCrest)) - { - UsePlLineOffsetFactorBelowShoulderCrest = Convert.ToBoolean(parameterValue); - } - if (parameterName.Equals(LocationParameterNames.UsePlLineOffsetDryBelowDikeCrestMiddle)) - { - UsePlLineOffsetDryBelowDikeCrestMiddle = Convert.ToBoolean(parameterValue); - } - if (parameterName.Equals(LocationParameterNames.UsePlLineOffsetDryFactorBelowShoulderCrest)) - { - UsePlLineOffsetDryFactorBelowShoulderCrest = Convert.ToBoolean(parameterValue); - } - if (parameterName.Equals(LocationParameterNames.IntrusionVerticalWaterPressure)) - { - IntrusionVerticalWaterPressure = - (IntrusionVerticalWaterPressureType) - Enum.Parse(typeof (IntrusionVerticalWaterPressureType), parameterValue); - - } - if (parameterName.Equals(LocationParameterNames.StabilityShoulderGrowSlope)) - { - StabilityShoulderGrowSlope = Convert.ToDouble(parameterValue, numberFormatInfo); - } - if (parameterName.Equals(LocationParameterNames.StabilityShoulderGrowDeltaX)) - { - StabilityShoulderGrowDeltaX = Convert.ToDouble(parameterValue, numberFormatInfo); - } - if (parameterName.Equals(LocationParameterNames.StabilitySlopeAdaptionDeltaX)) - { - StabilitySlopeAdaptionDeltaX = Convert.ToDouble(parameterValue, numberFormatInfo); - } - if (parameterName.Equals(LocationParameterNames.SheetPileLength)) - { - SheetPileLength = Convert.ToDouble(parameterValue, numberFormatInfo); - } - if (parameterName.Equals(LocationParameterNames.RwBankProtectionBottomLevel)) - { - RwBankProtectionBottomLevel = Convert.ToDouble(parameterValue, numberFormatInfo); - } - if (parameterName.Equals(LocationParameterNames.SheetPilePointX)) - { - SheetPilePointX = Convert.ToDouble(parameterValue, numberFormatInfo); - } - if (parameterName.Equals(LocationParameterNames.SheetPilePointY)) - { - SheetPilePointY = Convert.ToDouble(parameterValue, numberFormatInfo); - } - if (parameterName.Equals(LocationParameterNames.SheetPilePointZ)) - { - SheetPilePointZ = Convert.ToDouble(parameterValue, numberFormatInfo); - } - if (parameterName.Equals(LocationParameterNames.IsUseOriginalPLLineAssignments)) - { - IsUseOriginalPLLineAssignments = Convert.ToBoolean(parameterValue, numberFormatInfo); - } - if (parameterName.Equals(LocationParameterNames.TrafficLoad)) - { - TrafficLoad = Convert.ToDouble(parameterValue, numberFormatInfo); - } - if (parameterName.Equals(LocationParameterNames.MinimalCircleDepth)) - { - MinimalCircleDepth = Convert.ToDouble(parameterValue, numberFormatInfo); - } - if (parameterName.Equals(LocationParameterNames.LevelReductionInside)) - { - LevelReductionInside = Convert.ToDouble(parameterValue, numberFormatInfo); - } - if (parameterName.Equals(LocationParameterNames.LevelReductionOutside)) - { - LevelReductionOutside = Convert.ToDouble(parameterValue, numberFormatInfo); - } - if (parameterName.Equals(LocationParameterNames.LayerHeightDistribution)) - { - LayerHeightDistribution = (DistributionType) Enum.Parse(typeof(DistributionType), parameterValue); - } - if (parameterName.Equals(LocationParameterNames.LayerHeightDeviation)) - { - LayerHeightDeviation = Convert.ToDouble(parameterValue, numberFormatInfo); - } - if (parameterName.Equals(LocationParameterNames.DistanceToEntryPoint)) - { - DistanceToEntryPoint = Convert.ToDouble(parameterValue, numberFormatInfo); - } - - if (parameterName.Equals(LocationParameterNames.RequiredSafetyFactorStabilityInnerSlope)) - { - ModelFactors.RequiredSafetyFactorStabilityInnerSlope = Convert.ToDouble(parameterValue, numberFormatInfo); - } - if (parameterName.Equals(LocationParameterNames.RequiredSafetyFactorStabilityOuterSlope)) - { - ModelFactors.RequiredSafetyFactorStabilityOuterSlope = Convert.ToDouble(parameterValue, numberFormatInfo); - } - if (parameterName.Equals(LocationParameterNames.RequiredSafetyFactorPiping)) - { - ModelFactors.RequiredSafetyFactorPiping = Convert.ToDouble(parameterValue, numberFormatInfo); - } - if (parameterName.Equals(LocationParameterNames.RequiredProbabilityOfFailureStabilityInnerslope)) - { - ModelFactors.RequiredProbabilityOfFailureStabilityInnerslope = Convert.ToDouble(parameterValue, numberFormatInfo); - } - if (parameterName.Equals(LocationParameterNames.RequiredProbabilityOfFailureStabilityOuterslope)) - { - ModelFactors.RequiredProbabilityOfFailureStabilityOuterslope = Convert.ToDouble(parameterValue, numberFormatInfo); - } - if (parameterName.Equals(LocationParameterNames.RequiredProbabilityOfFailurePiping)) - { - ModelFactors.RequiredProbabilityOfFailurePiping = Convert.ToDouble(parameterValue, numberFormatInfo); - } - if (parameterName.Equals(LocationParameterNames.UpliftCriterionPiping)) - { - ModelFactors.UpliftCriterionPiping = Convert.ToDouble(parameterValue, numberFormatInfo); - } - if (parameterName.Equals(LocationParameterNames.UpliftCriterionStability)) - { - ModelFactors.UpliftCriterionStability = Convert.ToDouble(parameterValue, numberFormatInfo); - } - - if (parameterName.Equals(LocationParameterNames.DetrimentFactor)) - { - DetrimentFactor = Convert.ToDouble(parameterValue, numberFormatInfo); - } - if (parameterName.Equals(LocationParameterNames.StabilityZoneType)) - { - StabilityZoneType = (MStabZonesType) Enum.Parse(typeof(MStabZonesType), parameterValue); - } - if (parameterName.Equals(LocationParameterNames.ForbiddenZoneFactor)) - { - ForbiddenZoneFactor = Convert.ToDouble(parameterValue, numberFormatInfo); - } - if (parameterName.Equals(LocationParameterNames.ZoneAreaRestSlopeCrestWidth)) - { - ZoneAreaRestSlopeCrestWidth = Convert.ToDouble(parameterValue, numberFormatInfo); - } - - if (parameterName.Equals(LocationParameterNames.DikeTableHeight)) - { - DikeTableHeight = Convert.ToDouble(parameterValue, numberFormatInfo); - } - if (parameterName.Equals(LocationParameterNames.SlopeDampingPiezometricHeightPolderSide)) - { - SlopeDampingPiezometricHeightPolderSide = Convert.ToDouble(parameterValue, numberFormatInfo); - } - - if (parameterName.Equals(LocationParameterNames.StabilityDesignMethod)) - { - StabilityDesignMethod = (StabilityDesignMethod) Enum.Parse(typeof(StabilityDesignMethod), parameterValue); - } - if (parameterName.Equals(LocationParameterNames.SlopeAdaptionStartCotangent)) - { - SlopeAdaptionStartCotangent = Convert.ToDouble(parameterValue, numberFormatInfo); - } - if (parameterName.Equals(LocationParameterNames.SlopeAdaptionEndCotangent)) - { - SlopeAdaptionEndCotangent = Convert.ToDouble(parameterValue, numberFormatInfo); - } - if (parameterName.Equals(LocationParameterNames.SlopeAdaptionStepCotangent)) - { - SlopeAdaptionStepCotangent = Convert.ToDouble(parameterValue, numberFormatInfo); - } - - if (parameterName.Equals(LocationParameterNames.NewDepthDitch)) - { - NewDepthDitch = Convert.ToDouble(parameterValue, numberFormatInfo); - } - if (parameterName.Equals(LocationParameterNames.NewDikeSlopeInside)) - { - NewDikeSlopeInside = Convert.ToDouble(parameterValue, numberFormatInfo); - } - if (parameterName.Equals(LocationParameterNames.NewDikeSlopeOutside)) - { - NewDikeSlopeOutside = Convert.ToDouble(parameterValue, numberFormatInfo); - } - if (parameterName.Equals(LocationParameterNames.NewDikeTopWidth)) - { - NewDikeTopWidth = Convert.ToDouble(parameterValue, numberFormatInfo); - } - if (parameterName.Equals(LocationParameterNames.NewMaxHeightShoulderAsFraction)) - { - NewMaxHeightShoulderAsFraction = Convert.ToDouble(parameterValue, numberFormatInfo); - } - if (parameterName.Equals(LocationParameterNames.NewMinDistanceDikeToeStartDitch)) - { - NewMinDistanceDikeToeStartDitch = Convert.ToDouble(parameterValue, numberFormatInfo); - } - if (parameterName.Equals(LocationParameterNames.NewShoulderBaseSlope)) - { - NewShoulderBaseSlope = Convert.ToDouble(parameterValue, numberFormatInfo); - } - if (parameterName.Equals(LocationParameterNames.NewShoulderTopSlope)) - { - NewShoulderTopSlope = Convert.ToDouble(parameterValue, numberFormatInfo); - } - if (parameterName.Equals(LocationParameterNames.NewSlopeAngleDitch)) - { - NewSlopeAngleDitch = Convert.ToDouble(parameterValue, numberFormatInfo); - } - if (parameterName.Equals(LocationParameterNames.NewWidthDitchBottom)) - { - NewWidthDitchBottom = Convert.ToDouble(parameterValue, numberFormatInfo); - } - if (parameterName.Equals(LocationParameterNames.UseNewDikeSlopeInside)) - { - UseNewDikeSlopeInside = Convert.ToBoolean(parameterValue, numberFormatInfo); - } - if (parameterName.Equals(LocationParameterNames.UseNewDikeSlopeOutside)) - { - UseNewDikeSlopeOutside = Convert.ToBoolean(parameterValue, numberFormatInfo); - } - if (parameterName.Equals(LocationParameterNames.UseNewDikeTopWidth)) - { - UseNewDikeTopWidth = Convert.ToBoolean(parameterValue, numberFormatInfo); - } - if (parameterName.Equals(LocationParameterNames.UseNewDitchDefinition)) - { - UseNewDitchDefinition = Convert.ToBoolean(parameterValue, numberFormatInfo); - } - if (parameterName.Equals(LocationParameterNames.UseNewMaxHeightShoulderAsFraction)) - { - UseNewMaxHeightShoulderAsFraction = Convert.ToBoolean(parameterValue, numberFormatInfo); - } - if (parameterName.Equals(LocationParameterNames.UseNewMinDistanceDikeToeStartDitch)) - { - UseNewMinDistanceDikeToeStartDitch = Convert.ToBoolean(parameterValue, numberFormatInfo); - } - if (parameterName.Equals(LocationParameterNames.UseNewShoulderBaseSlope)) - { - UseNewShoulderBaseSlope = Convert.ToBoolean(parameterValue, numberFormatInfo); - } - if (parameterName.Equals(LocationParameterNames.UseNewShoulderTopSlope)) - { - UseNewShoulderTopSlope = Convert.ToBoolean(parameterValue, numberFormatInfo); - } } - public ModelParametersForPLLines CreateModelParametersForPLLines() - { - return new ModelParametersForPLLines - { - PenetrationLength = PenetrationLength, - DampingFactorPL3 = DampingFactorPL3, - DampingFactorPL4 = DampingFactorPL4, - PLLineCreationMethod = PLLineCreationMethod - }; - } - private bool IsDesign() @@ -2884,9 +2052,9 @@ private bool ArePlLineCreationExpertKnowledgeParametersNeeded() { - bool arePlLineCreationExpertKnowledgeParametersNeeded = PLLineCreationMethod == + bool arePlLineCreationExpertKnowledgeParametersNeeded = modelParametersForPLLines.PLLineCreationMethod == PLLineCreationMethod.ExpertKnowledgeRRD || - PLLineCreationMethod == + modelParametersForPLLines.PLLineCreationMethod == PLLineCreationMethod.GaugesWithFallbackToExpertKnowledgeRRD; return arePlLineCreationExpertKnowledgeParametersNeeded; }