Changeset 4718
- Timestamp:
- 11/04/10 22:01:16 (14 years ago)
- Location:
- branches/CloningRefactoring
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/CloningRefactoring/HeuristicLab.Core/3.3/Constraints/Constraint.cs
r4668 r4718 35 35 constrainedValue = null; //mkommend: intentionally set to null; 36 36 37 I Item constraintDataItem = original.constraintData as IItem;37 IDeepCloneable constraintDataDeepCloneable = original.constraintData as IDeepCloneable; 38 38 ICloneable constraintDataCloneable = original.constraintData as ICloneable; 39 if (constraintData Item!= null)40 constraintData = cloner.Clone(constraintData Item);39 if (constraintDataDeepCloneable != null) 40 constraintData = cloner.Clone(constraintDataDeepCloneable); 41 41 else if (constraintDataCloneable != null) 42 42 constraintData = constraintDataCloneable.Clone(); -
branches/CloningRefactoring/HeuristicLab.Core/3.3/Scope.cs
r4713 r4718 69 69 foreach (IScope child in SubScopes) 70 70 child.Parent = this; 71 RegisterSubScopesEvents();72 71 } else subScopes = new ScopeList(); 72 RegisterSubScopesEvents(); 73 73 } 74 74 /// <summary> -
branches/CloningRefactoring/HeuristicLab.Data/3.3/BoolValue.cs
r4669 r4718 40 40 public BoolValue() : base() { } 41 41 [StorableConstructor] 42 public BoolValue(bool value) : base(value) { } 42 public BoolValue(bool value) 43 : base(value) { 44 //mkommend: be aware that the base call refers to the storable ctor => the value is set explicitly in the ctor body 45 //this should not affect the persistence because first the ctor is called and afterwards the values were set by reflection. 46 this.value = value; 47 } 43 48 44 49 public override IDeepCloneable Clone(Cloner cloner) { -
branches/CloningRefactoring/HeuristicLab.Encodings.PermutationEncoding/3.3/Moves/ThreeOpt/TranslocationMoveAbsoluteAttribute.cs
r4667 r4718 43 43 this.NewPosition = original.NewPosition; 44 44 } 45 public TranslocationMoveAbsoluteAttribute() : this(null, -1, -1, -1) { }46 45 public TranslocationMoveAbsoluteAttribute(int[] number, int oldPosition, int newPosition, double moveQuality) 47 46 : base(moveQuality) { -
branches/CloningRefactoring/HeuristicLab.Operators.Views.GraphVisualization/3.3/OperatorGraphVisualization/OperatorShapeInfo.cs
r4673 r4718 42 42 lineWidth = original.lineWidth; 43 43 title = original.title; 44 i con = (Bitmap)original.icon.Clone();44 if (original.icon != null) icon = (Bitmap)original.icon.Clone(); 45 45 46 46 connectorNames = new List<string>(original.connectorNames); -
branches/CloningRefactoring/HeuristicLab.Optimization/3.3/RunCollectionConstraints/RunCollectionComparisonConstraint.cs
r4665 r4718 36 36 protected RunCollectionComparisonConstraint(RunCollectionComparisonConstraint original, Cloner cloner) 37 37 : base(original, cloner) { 38 IDeepCloneable constraintDataDeepCloneable = original.ConstraintData as IDeepCloneable; 39 ICloneable constraintDataCloneable = original.ConstraintData as ICloneable; 40 if (constraintDataDeepCloneable != null) 41 ConstraintData = (IStringConvertibleValue)cloner.Clone(constraintDataDeepCloneable); 42 else if (constraintDataCloneable != null) 43 ConstraintData = (IStringConvertibleValue)constraintDataCloneable.Clone(); 44 else 45 ConstraintData = original.ConstraintData; 46 47 ConstraintOperation = original.ConstraintOperation; 48 ConstraintColumn = original.constraintColumn; 38 constraintColumn = original.constraintColumn; 49 39 } 50 40 public override IDeepCloneable Clone(Cloner cloner) { -
branches/CloningRefactoring/HeuristicLab.Problems.DataAnalysis.Classification/3.3/Symbolic/SymbolicClassificationSolution.cs
r4678 r4718 71 71 protected SymbolicClassificationSolution(bool deserializing) : base(deserializing) { } 72 72 protected SymbolicClassificationSolution(SymbolicClassificationSolution original, Cloner cloner) : base(original, cloner) { } 73 private SymbolicClassificationSolution() : base() { }74 73 public SymbolicClassificationSolution(ClassificationProblemData problemData, SymbolicRegressionModel model, double lowerEstimationLimit, double upperEstimationLimit) 75 74 : base(problemData, model, lowerEstimationLimit, upperEstimationLimit) { -
branches/CloningRefactoring/HeuristicLab.Problems.DataAnalysis.Regression/3.3/Symbolic/SymbolicRegressionModel.cs
r4682 r4718 39 39 tree = (SymbolicExpressionTree)cloner.Clone(original.tree); 40 40 interpreter = (ISymbolicExpressionTreeInterpreter)cloner.Clone(original.interpreter); 41 inputVariables = new List<string>( inputVariables);41 inputVariables = new List<string>(original.inputVariables); 42 42 } 43 43 -
branches/CloningRefactoring/HeuristicLab.Problems.DataAnalysis.Regression/3.3/Symbolic/SymbolicRegressionSolution.cs
r4678 r4718 66 66 : base(original, cloner) { 67 67 } 68 public SymbolicRegressionSolution() : base() { }69 68 public SymbolicRegressionSolution(DataAnalysisProblemData problemData, SymbolicRegressionModel model, double lowerEstimationLimit, double upperEstimationLimit) 70 69 : base(problemData, lowerEstimationLimit, upperEstimationLimit) {
Note: See TracChangeset
for help on using the changeset viewer.