Changeset 4722 for trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.3/Manipulators/MultiSymbolicExpressionTreeManipulator.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/Manipulators/MultiSymbolicExpressionTreeManipulator.cs
r4068 r4722 23 23 using System.Linq; 24 24 using HeuristicLab.Collections; 25 using HeuristicLab.Common; 25 26 using HeuristicLab.Core; 26 27 using HeuristicLab.Data; … … 35 36 [Item("MultiSymbolicExpressionTreeManipulator", "Randomly selects and applies one of its manipulators every time it is called.")] 36 37 [StorableClass] 37 public class MultiSymbolicExpressionTreeManipulator : StochasticMultiBranch<ISymbolicExpressionTreeManipulator>, ISymbolicExpressionTreeManipulator, IStochasticOperator {38 public sealed class MultiSymbolicExpressionTreeManipulator : StochasticMultiBranch<ISymbolicExpressionTreeManipulator>, ISymbolicExpressionTreeManipulator, IStochasticOperator { 38 39 private const string MaxTreeSizeParameterName = "MaxTreeSize"; 39 40 private const string MaxTreeHeightParameterName = "MaxTreeHeight"; … … 66 67 #endregion 67 68 68 69 69 [StorableConstructor] 70 70 private MultiSymbolicExpressionTreeManipulator(bool deserializing) : base(deserializing) { } 71 private MultiSymbolicExpressionTreeManipulator(MultiSymbolicExpressionTreeManipulator original, Cloner cloner) : base(original, cloner) { } 71 72 public MultiSymbolicExpressionTreeManipulator() 72 73 : base() { … … 80 81 Operators.Add((ISymbolicExpressionTreeManipulator)Activator.CreateInstance(type), true); 81 82 } 83 } 84 85 public override IDeepCloneable Clone(Cloner cloner) { 86 return new MultiSymbolicExpressionTreeManipulator(this, cloner); 82 87 } 83 88
Note: See TracChangeset
for help on using the changeset viewer.