Changeset 3617
- Timestamp:
- 05/05/10 01:53:45 (15 years ago)
- Location:
- trunk/sources/HeuristicLab.Optimization/3.3
- Files:
-
- 1 added
- 1 edited
- 4 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Optimization/3.3/HeuristicLab.Optimization-3.3.csproj
r3616 r3617 87 87 <Compile Include="Algorithm.cs" /> 88 88 <Compile Include="BatchRun.cs" /> 89 <Compile Include="RunCollectionConstraints\RunCollectionComparisonConstraint.cs" /> 90 <Compile Include="RunCollectionConstraints\RunCollectionConstraintCollection.cs" /> 91 <Compile Include="RunCollectionConstraints\RunCollectionTypeCompatiblityConstraint.cs" /> 92 <Compile Include="RunCollectionConstraints\RunCollectionEqualityConstraint.cs" /> 89 93 <Compile Include="Interfaces\IAnalyzer.cs" /> 90 <Compile Include="RunCollectionComparisonConstraint.cs" />91 <Compile Include="RunCollectionConstraintCollection.cs" />92 <Compile Include="RunCollectionTypeCompatiblityConstraint.cs" />93 <Compile Include="RunCollectionEqualityConstraint.cs" />94 94 <Compile Include="Interfaces\ISingleObjectiveReplacer.cs" /> 95 95 <Compile Include="Interfaces\IMigrator.cs" /> -
trunk/sources/HeuristicLab.Optimization/3.3/RunCollectionConstraints/RunCollectionComparisonConstraint.cs
r3614 r3617 27 27 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 28 28 using HeuristicLab.Data; 29 using HeuristicLab.Common; 29 30 30 31 namespace HeuristicLab.Optimization { … … 123 124 return s; 124 125 } 126 127 public override IDeepCloneable Clone(HeuristicLab.Common.Cloner cloner) { 128 RunCollectionComparisonConstraint clone = (RunCollectionComparisonConstraint)base.Clone(cloner); 129 clone.ConstrainedValue = null; 130 131 IItem constraintDataItem = this.ConstraintData as IItem; 132 ICloneable constraintDataCloneable = this.ConstraintData as ICloneable; 133 if (constraintDataItem != null) 134 clone.ConstraintData = (IStringConvertibleValue)cloner.Clone(constraintDataItem); 135 else if (constraintDataCloneable != null) 136 clone.ConstraintData = (IStringConvertibleValue)constraintDataCloneable.Clone(); 137 else 138 clone.ConstraintData = this.ConstraintData; 139 140 clone.ConstraintOperation = this.ConstraintOperation; 141 clone.constraintColumn = this.constraintColumn; 142 143 return clone; 144 } 125 145 } 126 146 } -
trunk/sources/HeuristicLab.Optimization/3.3/RunCollectionConstraints/RunCollectionEqualityConstraint.cs
r3614 r3617 27 27 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 28 28 using HeuristicLab.Data; 29 using HeuristicLab.Common; 29 30 30 31 namespace HeuristicLab.Optimization { … … 52 53 53 54 public new string ConstraintData { 54 get { return (string) base.ConstraintData;}55 set { base.ConstraintData = value; }55 get { return (string)base.ConstraintData; } 56 set { base.ConstraintData = value; } 56 57 } 57 58 … … 121 122 return s; 122 123 } 124 125 public override IDeepCloneable Clone(HeuristicLab.Common.Cloner cloner) { 126 RunCollectionEqualityConstraint clone = (RunCollectionEqualityConstraint)base.Clone(cloner); 127 clone.ConstrainedValue = null; 128 clone.ConstraintData = this.ConstraintData; 129 clone.ConstraintOperation = this.ConstraintOperation; 130 clone.constraintColumn = this.constraintColumn; 131 132 return clone; 133 } 123 134 } 124 135 } -
trunk/sources/HeuristicLab.Optimization/3.3/RunCollectionConstraints/RunCollectionTypeCompatiblityConstraint.cs
r3614 r3617 27 27 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 28 28 using HeuristicLab.Data; 29 using HeuristicLab.Common; 29 30 30 31 namespace HeuristicLab.Optimization { … … 113 114 return s; 114 115 } 116 117 public override IDeepCloneable Clone(HeuristicLab.Common.Cloner cloner) { 118 RunCollectionTypeCompatibilityConstraint clone = (RunCollectionTypeCompatibilityConstraint)base.Clone(cloner); 119 clone.ConstrainedValue = null; 120 clone.ConstraintData = this.ConstraintData; 121 clone.ConstraintOperation = this.ConstraintOperation; 122 clone.constraintColumn = this.constraintColumn; 123 124 return clone; 125 } 115 126 } 116 127 }
Note: See TracChangeset
for help on using the changeset viewer.