- Timestamp:
- 11/06/10 01:56:04 (14 years ago)
- Location:
- trunk/sources
- Files:
-
- 3 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/Creators/ProbabilisticTreeCreator.cs
r4477 r4722 24 24 using System.Linq; 25 25 using System.Text; 26 using HeuristicLab.Common; 26 27 using HeuristicLab.Core; 27 28 using HeuristicLab.Data; … … 33 34 [StorableClass] 34 35 [Item("ProbabilisticTreeCreator", "An operator that creates new symbolic expression trees with uniformly distributed size")] 35 public class ProbabilisticTreeCreator : SymbolicExpressionTreeCreator {36 public sealed class ProbabilisticTreeCreator : SymbolicExpressionTreeCreator { 36 37 private const int MAX_TRIES = 100; 37 38 public ProbabilisticTreeCreator() 39 : base() { 38 [StorableConstructor] 39 private ProbabilisticTreeCreator(bool deserializing) : base(deserializing) { } 40 private ProbabilisticTreeCreator(ProbabilisticTreeCreator original, Cloner cloner) : base(original, cloner) { } 41 public ProbabilisticTreeCreator() : base() { } 42 43 public override IDeepCloneable Clone(Cloner cloner) { 44 return new ProbabilisticTreeCreator(this, cloner); 40 45 } 41 46 -
trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.3/Creators/SymbolicExpressionTreeCreator.cs
r4068 r4722 20 20 #endregion 21 21 22 using HeuristicLab.Common; 22 23 using HeuristicLab.Core; 23 24 using HeuristicLab.Data; … … 61 62 62 63 #endregion 64 [StorableConstructor] 65 protected SymbolicExpressionTreeCreator(bool deserializing) : base(deserializing) { } 66 protected SymbolicExpressionTreeCreator(SymbolicExpressionTreeCreator original, Cloner cloner) : base(original, cloner) { } 63 67 protected SymbolicExpressionTreeCreator() 64 68 : base() { … … 71 75 SymbolicExpressionTree = Create(Random, SymbolicExpressionGrammar, 72 76 MaxTreeSize, MaxTreeHeight, MaxFunctionDefinitions, MaxFunctionArguments); 73 return null;77 return base.Apply(); 74 78 } 75 79
Note: See TracChangeset
for help on using the changeset viewer.