- Timestamp:
- 08/03/08 23:00:48 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.StructureIdentification/Manipulation/OnePointShaker.cs
r155 r429 34 34 public class OnePointShaker : DelegatingOperator { 35 35 public override string Description { 36 get { return "Selects a random node of all tree-nodes that have a '"+ GPOperatorLibrary.MANIPULATION+"' variable defined and manipulates the selected node."; }36 get { return "Selects a random node of all tree-nodes that have a '"+FunctionBase.MANIPULATION+"' variable defined and manipulates the selected node."; } 37 37 } 38 38 … … 52 52 53 53 // get all nodes for which a manipulation is defined 54 var parametricBranches = gardener.GetAllSubTrees(tree).Where(branch => branch.Function.GetVariable( GPOperatorLibrary.MANIPULATION) != null);54 var parametricBranches = gardener.GetAllSubTrees(tree).Where(branch => branch.Function.GetVariable(FunctionBase.MANIPULATION) != null); 55 55 IFunctionTree selectedBranch = parametricBranches.ElementAt(mt.Next(parametricBranches.Count())); 56 IOperator mutation = (IOperator)selectedBranch.Function.GetVariable( GPOperatorLibrary.MANIPULATION).Value;56 IOperator mutation = (IOperator)selectedBranch.Function.GetVariable(FunctionBase.MANIPULATION).Value; 57 57 CompositeOperation next = new CompositeOperation(); 58 58
Note: See TracChangeset
for help on using the changeset viewer.