- Timestamp:
- 08/04/10 18:06:56 (14 years ago)
- Location:
- trunk/sources/HeuristicLab.Optimization/3.3/RunCollectionConstraints
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Optimization/3.3/RunCollectionConstraints/RunCollectionComparisonConstraint.cs
r4068 r4157 31 31 [Item("RunCollectionComparisonConstraint", "A constraint which compares the members of the contained runs with the constraint data.")] 32 32 public class RunCollectionComparisonConstraint : ComparisonConstraint, IRunCollectionConstraint { 33 public RunCollectionComparisonConstraint()34 : base() {35 }36 33 [StorableConstructor] 37 protected RunCollectionComparisonConstraint(bool deserializing) { 38 } 34 protected RunCollectionComparisonConstraint(bool deserializing) : base(deserializing) { } 35 36 public RunCollectionComparisonConstraint() : base() { } 39 37 public RunCollectionComparisonConstraint(RunCollection constrainedValue, ConstraintOperation constraintOperation, object constraintData) 40 38 : base(constrainedValue, constraintOperation, constraintData) { … … 133 131 public override IDeepCloneable Clone(HeuristicLab.Common.Cloner cloner) { 134 132 RunCollectionComparisonConstraint clone = (RunCollectionComparisonConstraint)base.Clone(cloner); 135 clone.ConstrainedValue = null;136 133 137 134 IItem constraintDataItem = this.ConstraintData as IItem; -
trunk/sources/HeuristicLab.Optimization/3.3/RunCollectionConstraints/RunCollectionEqualityConstraint.cs
r4068 r4157 31 31 [Item("RunCollectionEqualityConstraint", "A constraint which checks the members of the contained runs for equality to the constraint data.")] 32 32 public class RunCollectionEqualityConstraint : EqualityConstraint, IRunCollectionConstraint { 33 [StorableConstructor] 34 protected RunCollectionEqualityConstraint(bool deserializing) : base(deserializing) { } 35 33 36 public RunCollectionEqualityConstraint() 34 37 : base() { 35 38 this.ConstraintData = string.Empty; 36 }37 [StorableConstructor]38 protected RunCollectionEqualityConstraint(bool deserializing) {39 39 } 40 40 public RunCollectionEqualityConstraint(RunCollection constrainedValue, ConstraintOperation constraintOperation, string constraintData) … … 130 130 public override IDeepCloneable Clone(HeuristicLab.Common.Cloner cloner) { 131 131 RunCollectionEqualityConstraint clone = (RunCollectionEqualityConstraint)base.Clone(cloner); 132 clone.ConstrainedValue = null;133 132 clone.ConstraintData = this.ConstraintData; 134 133 clone.ConstraintOperation = this.ConstraintOperation; -
trunk/sources/HeuristicLab.Optimization/3.3/RunCollectionConstraints/RunCollectionTypeCompatiblityConstraint.cs
r4068 r4157 123 123 public override IDeepCloneable Clone(HeuristicLab.Common.Cloner cloner) { 124 124 RunCollectionTypeCompatibilityConstraint clone = (RunCollectionTypeCompatibilityConstraint)base.Clone(cloner); 125 clone.ConstrainedValue = null;126 125 clone.ConstraintData = this.ConstraintData; 127 126 clone.ConstraintOperation = this.ConstraintOperation;
Note: See TracChangeset
for help on using the changeset viewer.