Changeset 4722 for trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.3/Manipulators/ReplaceBranchManipulation.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/Manipulators/ReplaceBranchManipulation.cs
r4189 r4722 23 23 using System.Collections.Generic; 24 24 using System.Linq; 25 using HeuristicLab.Common; 25 26 using HeuristicLab.Core; 26 27 using HeuristicLab.Data; 28 using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Creators; 27 29 using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Symbols; 28 30 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 29 using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Creators;30 31 31 32 namespace HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Manipulators { 32 33 [StorableClass] 33 34 [Item("ReplaceBranchManipulation", "Selects a branch of the tree randomly and replaces it with a newly initialized branch (using PTC2).")] 34 public class ReplaceBranchManipulation : SymbolicExpressionTreeManipulator { 35 public sealed class ReplaceBranchManipulation : SymbolicExpressionTreeManipulator { 36 [StorableConstructor] 37 private ReplaceBranchManipulation(bool deserializing) : base(deserializing) { } 38 private ReplaceBranchManipulation(ReplaceBranchManipulation original, Cloner cloner) : base(original, cloner) { } 39 public ReplaceBranchManipulation() : base() { } 35 40 36 public ReplaceBranchManipulation()37 : base() {41 public override IDeepCloneable Clone(Cloner cloner) { 42 return new ReplaceBranchManipulation(this, cloner); 38 43 } 39 44
Note: See TracChangeset
for help on using the changeset viewer.