Changeset 4667 for branches/CloningRefactoring/HeuristicLab.Encodings.PermutationEncoding/3.3/Manipulators/Swap3Manipulator.cs
- Timestamp:
- 10/29/10 17:37:02 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/CloningRefactoring/HeuristicLab.Encodings.PermutationEncoding/3.3/Manipulators/Swap3Manipulator.cs
r4477 r4667 23 23 using HeuristicLab.Core; 24 24 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 25 using HeuristicLab.Common; 25 26 26 27 namespace HeuristicLab.Encodings.PermutationEncoding { … … 35 36 [StorableClass] 36 37 public class Swap3Manipulator : PermutationManipulator { 38 [StorableConstructor] 39 protected Swap3Manipulator(bool deserializing) : base(deserializing) { } 40 protected Swap3Manipulator(Swap3Manipulator original, Cloner cloner) : base(original, cloner) { } 41 public Swap3Manipulator() : base() { } 42 43 public override IDeepCloneable Clone(Cloner cloner) { 44 return new Swap3Manipulator(this, cloner); 45 } 46 37 47 /// <summary> 38 48 /// Swaps three randomly chosen elements of the given <paramref name="permutation"/> array.
Note: See TracChangeset
for help on using the changeset viewer.