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