Changeset 4722 for trunk/sources/HeuristicLab.Encodings.PermutationEncoding/3.3/Moves/PermutationMoveAttribute.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/PermutationMoveAttribute.cs
r3376 r4722 31 31 public double MoveQuality { get; protected set; } 32 32 33 public PermutationMoveAttribute() 34 : base() { 35 MoveQuality = 0; 33 [StorableConstructor] 34 protected PermutationMoveAttribute(bool deserializing) : base(deserializing) { } 35 protected PermutationMoveAttribute(PermutationMoveAttribute original, Cloner cloner) 36 : base(original, cloner) { 37 this.MoveQuality = original.MoveQuality; 36 38 } 37 39 public PermutationMoveAttribute() : this(0) { } 38 40 public PermutationMoveAttribute(double moveQuality) 39 41 : base() { … … 42 44 43 45 public override IDeepCloneable Clone(Cloner cloner) { 44 PermutationMoveAttribute clone = (PermutationMoveAttribute)base.Clone(cloner); 45 clone.MoveQuality = MoveQuality; 46 return clone; 46 return new PermutationMoveAttribute(this, cloner); 47 47 } 48 48 }
Note: See TracChangeset
for help on using the changeset viewer.