Changeset 4682 for branches/CloningRefactoring/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding
- Timestamp:
- 10/29/10 19:47:39 (14 years ago)
- Location:
- branches/CloningRefactoring/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.3
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/CloningRefactoring/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.3/Analyzers/MinAverageMaxSymbolicExpressionTreeSizeAnalyzer.cs
r4674 r4682 67 67 [StorableConstructor] 68 68 private MinAverageMaxSymbolicExpressionTreeSizeAnalyzer(bool deserializing) : base() { } 69 pr otectedMinAverageMaxSymbolicExpressionTreeSizeAnalyzer(MinAverageMaxSymbolicExpressionTreeSizeAnalyzer original, Cloner cloner)69 private MinAverageMaxSymbolicExpressionTreeSizeAnalyzer(MinAverageMaxSymbolicExpressionTreeSizeAnalyzer original, Cloner cloner) 70 70 : base(original, cloner) { 71 71 AfterDeserialization(); -
branches/CloningRefactoring/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.3/ArchitectureManipulators/MultiSymbolicExpressionTreeArchitectureManipulator.cs
r4674 r4682 47 47 get { return false; } 48 48 } 49 pr ivateoverride bool CreateChildOperation {49 protected override bool CreateChildOperation { 50 50 get { return true; } 51 51 } … … 100 100 } 101 101 102 pr ivateoverride void Operators_ItemsReplaced(object sender, CollectionItemsChangedEventArgs<IndexedItem<ISymbolicExpressionTreeArchitectureManipulator>> e) {102 protected override void Operators_ItemsReplaced(object sender, CollectionItemsChangedEventArgs<IndexedItem<ISymbolicExpressionTreeArchitectureManipulator>> e) { 103 103 base.Operators_ItemsReplaced(sender, e); 104 104 ParameterizeManipulators(); 105 105 } 106 106 107 pr ivateoverride void Operators_ItemsAdded(object sender, CollectionItemsChangedEventArgs<IndexedItem<ISymbolicExpressionTreeArchitectureManipulator>> e) {107 protected override void Operators_ItemsAdded(object sender, CollectionItemsChangedEventArgs<IndexedItem<ISymbolicExpressionTreeArchitectureManipulator>> e) { 108 108 base.Operators_ItemsAdded(sender, e); 109 109 ParameterizeManipulators(); -
branches/CloningRefactoring/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.3/Creators/ProbabilisticTreeCreator.cs
r4674 r4682 45 45 } 46 46 47 pr ivateoverride SymbolicExpressionTree Create(47 protected override SymbolicExpressionTree Create( 48 48 IRandom random, 49 49 ISymbolicExpressionGrammar grammar, -
branches/CloningRefactoring/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.3/DefaultSymbolicExpressionGrammar.cs
r4674 r4682 165 165 } 166 166 167 public override IDeepCloneable Clone(Cloner cloner) {168 return new DefaultSymbolicExpressionGrammar(this, cloner);169 }170 171 167 public void Clear() { 172 168 minSubTreeCount.Clear(); -
branches/CloningRefactoring/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.3/Manipulators/FullTreeShaker.cs
r4674 r4682 39 39 } 40 40 41 pr ivateoverride void Manipulate(IRandom random, SymbolicExpressionTree symbolicExpressionTree, ISymbolicExpressionGrammar grammar, IntValue maxTreeSize, IntValue maxTreeHeight, out bool success) {41 protected override void Manipulate(IRandom random, SymbolicExpressionTree symbolicExpressionTree, ISymbolicExpressionGrammar grammar, IntValue maxTreeSize, IntValue maxTreeHeight, out bool success) { 42 42 foreach (var node in symbolicExpressionTree.IterateNodesPrefix()) { 43 43 if (node.HasLocalParameters) { -
branches/CloningRefactoring/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.3/Manipulators/ReplaceBranchManipulation.cs
r4674 r4682 43 43 } 44 44 45 pr ivateoverride void Manipulate(IRandom random, SymbolicExpressionTree symbolicExpressionTree, ISymbolicExpressionGrammar grammar, IntValue maxTreeSize, IntValue maxTreeHeight, out bool success) {45 protected override void Manipulate(IRandom random, SymbolicExpressionTree symbolicExpressionTree, ISymbolicExpressionGrammar grammar, IntValue maxTreeSize, IntValue maxTreeHeight, out bool success) { 46 46 ReplaceRandomBranch(random, symbolicExpressionTree, grammar, maxTreeSize.Value, maxTreeHeight.Value, out success); 47 47 } -
branches/CloningRefactoring/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.3/SymbolicExpressionTreeNode.cs
r4674 r4682 63 63 clonedSubTree.Parent = this; 64 64 } 65 } 66 public override IDeepCloneable Clone(Cloner cloner) { 67 return new SymbolicExpressionTreeNode(this, cloner); 65 68 } 66 69 … … 181 184 return Grammar.GetMaxSubtreeCount(Symbol); 182 185 } 183 184 public override IDeepCloneable Clone(Cloner cloner) {185 return new SymbolicExpressionTreeNode(this, cloner);186 }187 188 186 public override string ToString() { 189 187 return Symbol.Name; -
branches/CloningRefactoring/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.3/Symbols/ArgumentTreeNode.cs
r4674 r4682 37 37 [StorableConstructor] 38 38 private ArgumentTreeNode(bool deserializing) : base(deserializing) { } 39 pr otectedArgumentTreeNode(ArgumentTreeNode original, Cloner cloner) : base(original, cloner) { }39 private ArgumentTreeNode(ArgumentTreeNode original, Cloner cloner) : base(original, cloner) { } 40 40 public ArgumentTreeNode(Argument argSymbol) : base(argSymbol) { } 41 41 -
branches/CloningRefactoring/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.3/Symbols/DefunTreeNode.cs
r4674 r4682 40 40 [StorableConstructor] 41 41 private DefunTreeNode(bool deserializing) : base(deserializing) { } 42 pr otectedDefunTreeNode(DefunTreeNode original, Cloner cloner)42 private DefunTreeNode(DefunTreeNode original, Cloner cloner) 43 43 : base(original, cloner) { 44 44 functionName = original.functionName; -
branches/CloningRefactoring/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.3/Symbols/InvokeFunctionTreeNode.cs
r4674 r4682 37 37 [StorableConstructor] 38 38 private InvokeFunctionTreeNode(bool deserializing) : base(deserializing) { } 39 pr otectedInvokeFunctionTreeNode(InvokeFunctionTreeNode original, Cloner cloner) : base(original, cloner) { }39 private InvokeFunctionTreeNode(InvokeFunctionTreeNode original, Cloner cloner) : base(original, cloner) { } 40 40 public InvokeFunctionTreeNode(InvokeFunction invokeSymbol) : base(invokeSymbol) { } 41 41 -
branches/CloningRefactoring/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.3/Symbols/Symbol.cs
r4674 r4682 68 68 } 69 69 70 public override IDeepCloneable Clone(Cloner cloner) {71 return new Symbol(this, cloner);72 }73 74 70 #region events 75 71 public event EventHandler Changed;
Note: See TracChangeset
for help on using the changeset viewer.