Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/22/08 10:45:41 (17 years ago)
Author:
gkronber
Message:

fixed #55 by:

  • introducing a new class DelegatingOperator that overwrites Execute() of OperatorBase in exactly the same way as CombinedOperator.
  • extending OnePointShaker and FullTreeShaker from DelegatingOperator
File:
1 edited

Legend:

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

    r2 r88  
    3131
    3232namespace HeuristicLab.StructureIdentification {
    33   public class OnePointShaker : OperatorBase {
     33  public class OnePointShaker : DelegatingOperator {
    3434    public override string Description {
    3535      get { return "Selects a random node of all tree-nodes that have a '"+GPOperatorLibrary.MANIPULATION+"' variable defined and manipulates the selected node."; }
     
    6060      // store all local variables into a temporary scope
    6161      Scope tempScope = new Scope("Temp. manipulation scope");
     62      // add aliases
     63      foreach(IVariableInfo variableInfo in VariableInfos)
     64        tempScope.AddAlias(variableInfo.FormalName, variableInfo.ActualName);
    6265
    6366      foreach(IVariableInfo info in selectedOp.VariableInfos) {
Note: See TracChangeset for help on using the changeset viewer.