Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
08/03/08 23:00:48 (16 years ago)
Author:
gkronber
Message:

fixed compilation problems introduced with r428 (ticket #225)

Location:
trunk/sources/HeuristicLab.StructureIdentification/Manipulation
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.StructureIdentification/Manipulation/FullTreeShaker.cs

    r155 r429  
    3434  public class FullTreeShaker : DelegatingOperator {
    3535    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."; }
    3737    }
    3838
     
    5757
    5858      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);
    6060      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;
    6262
    6363        // store all local variables into a temporary scope
     
    7373      // save all existing sub-scopes in a backup scope
    7474      Scope backupScope = new Scope("backup");
    75       foreach (Scope subScope in scope.SubScopes) {
     75      foreach(Scope subScope in scope.SubScopes) {
    7676        backupScope.AddSubScope(subScope);
    7777      }
  • trunk/sources/HeuristicLab.StructureIdentification/Manipulation/OnePointShaker.cs

    r155 r429  
    3434  public class OnePointShaker : DelegatingOperator {
    3535    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."; }
    3737    }
    3838
     
    5252
    5353      // 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);
    5555      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;
    5757      CompositeOperation next = new CompositeOperation();
    5858
Note: See TracChangeset for help on using the changeset viewer.