Changeset 4667 for branches/CloningRefactoring/HeuristicLab.Encodings.PermutationEncoding/3.3/Creators/RandomPermutationCreator.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/Creators/RandomPermutationCreator.cs
r4477 r4667 26 26 using HeuristicLab.Parameters; 27 27 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 28 using HeuristicLab.Common; 28 29 29 30 namespace HeuristicLab.Encodings.PermutationEncoding { … … 56 57 } 57 58 59 [StorableConstructor] 60 private RandomPermutationCreator(bool deserializing) : base(deserializing) { } 61 private RandomPermutationCreator(RandomPermutationCreator original, Cloner cloner) : base(original, cloner) { } 58 62 public RandomPermutationCreator() 59 63 : base() { … … 64 68 } 65 69 70 public override IDeepCloneable Clone(Cloner cloner) { 71 return new RandomPermutationCreator(this, cloner); 72 } 73 66 74 public override IOperation Apply() { 67 75 PermutationParameter.ActualValue = new Permutation(PermutationType, LengthParameter.ActualValue.Value, RandomParameter.ActualValue);
Note: See TracChangeset
for help on using the changeset viewer.