- Timestamp:
- 08/03/08 23:00:48 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.StructureIdentification/Manipulation/FullTreeShaker.cs
r155 r429 34 34 public class FullTreeShaker : DelegatingOperator { 35 35 public override string Description { 36 get { return "Manipulates all tree nodes for which a '" +GPOperatorLibrary.MANIPULATION+"' variable is defined."; }36 get { return "Manipulates all tree nodes for which a '" + FunctionBase.MANIPULATION + "' variable is defined."; } 37 37 } 38 38 … … 57 57 58 58 TreeGardener gardener = new TreeGardener(mt, library); 59 var parametricBranches = gardener.GetAllSubTrees(tree).Where(branch => branch.Function.GetVariable( GPOperatorLibrary.MANIPULATION) != null);59 var parametricBranches = gardener.GetAllSubTrees(tree).Where(branch => branch.Function.GetVariable(FunctionBase.MANIPULATION) != null); 60 60 foreach(IFunctionTree subTree in parametricBranches) { 61 IOperator mutation = (IOperator)subTree.Function.GetVariable(GPOperatorLibrary.MANIPULATION).Value;61 IOperator mutation = (IOperator)subTree.Function.GetVariable(FunctionBase.MANIPULATION).Value; 62 62 63 63 // store all local variables into a temporary scope … … 73 73 // save all existing sub-scopes in a backup scope 74 74 Scope backupScope = new Scope("backup"); 75 foreach 75 foreach(Scope subScope in scope.SubScopes) { 76 76 backupScope.AddSubScope(subScope); 77 77 }
Note: See TracChangeset
for help on using the changeset viewer.