Changeset 4722 for trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.3/ArchitectureManipulators/ArgumentDuplicater.cs
- Timestamp:
- 11/06/10 01:56:04 (13 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.SymbolicExpressionTreeEncoding/3.3/ArchitectureManipulators/ArgumentDuplicater.cs
r4524 r4722 20 20 #endregion 21 21 22 using System; 23 using System.Collections.Generic; 22 24 using System.Linq; 25 using HeuristicLab.Common; 23 26 using HeuristicLab.Core; 24 27 using HeuristicLab.Data; 25 28 using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Symbols; 26 29 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 27 using System.Collections.Generic;28 using System;29 30 30 31 namespace HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.ArchitectureManipulators { … … 36 37 [StorableClass] 37 38 public sealed class ArgumentDuplicater : SymbolicExpressionTreeArchitectureManipulator { 39 [StorableConstructor] 40 private ArgumentDuplicater(bool deserializing) : base(deserializing) { } 41 private ArgumentDuplicater(ArgumentDuplicater original, Cloner cloner) : base(original, cloner) { } 42 public ArgumentDuplicater() : base() { } 43 38 44 public override sealed void ModifyArchitecture( 39 45 IRandom random, … … 44 50 out bool success) { 45 51 success = DuplicateArgument(random, symbolicExpressionTree, grammar, maxTreeSize.Value, maxTreeHeight.Value, maxFunctionDefiningBranches.Value, maxFunctionArguments.Value); 52 } 53 54 public override IDeepCloneable Clone(Cloner cloner) { 55 return new ArgumentDuplicater(this, cloner); 46 56 } 47 57
Note: See TracChangeset
for help on using the changeset viewer.