Changeset 4722 for trunk/sources/HeuristicLab.Encodings.PermutationEncoding/3.3/Moves/TwoOpt/InversionMoveAbsoluteAttribute.cs
- Timestamp:
- 11/06/10 01:56:04 (14 years ago)
- Location:
- trunk/sources
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources
- Property svn:mergeinfo changed
/branches/CloningRefactoring (added) merged: 4656-4693,4696-4697,4711-4714,4718-4719
- Property svn:mergeinfo changed
-
trunk/sources/HeuristicLab.Encodings.PermutationEncoding/3.3/Moves/TwoOpt/InversionMoveAbsoluteAttribute.cs
r3376 r4722 38 38 39 39 [StorableConstructor] 40 private InversionMoveAbsoluteAttribute(bool deserializing) 41 : base() { 40 protected InversionMoveAbsoluteAttribute(bool deserializing) : base(deserializing) { } 41 protected InversionMoveAbsoluteAttribute(InversionMoveAbsoluteAttribute original, Cloner cloner) 42 : base(original, cloner) { 43 this.Index1 = original.Index1; 44 this.Number1 = original.Number1; 45 this.Index2 = original.Index2; 46 this.Number2 = original.Number2; 42 47 } 43 44 public InversionMoveAbsoluteAttribute() 45 : this(-1, -1, -1, -1, -1) { } 46 48 public InversionMoveAbsoluteAttribute() : this(-1, -1, -1, -1, -1) { } 47 49 public InversionMoveAbsoluteAttribute(int index1, int number1, int index2, int number2, double moveQuality) 48 50 : base(moveQuality) { … … 54 56 55 57 public override IDeepCloneable Clone(Cloner cloner) { 56 InversionMoveAbsoluteAttribute clone = (InversionMoveAbsoluteAttribute)base.Clone(cloner); 57 clone.Index1 = Index1; 58 clone.Number1 = Number1; 59 clone.Index2 = Index2; 60 clone.Number2 = Number2; 61 return clone; 58 return new InversionMoveAbsoluteAttribute(this, cloner); 62 59 } 63 60 }
Note: See TracChangeset
for help on using the changeset viewer.