Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/22/08 10:45:41 (16 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
Location:
trunk/sources/HeuristicLab.StructureIdentification
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.StructureIdentification/HeuristicLab.StructureIdentification.csproj

    r30 r88  
    4848  </ItemGroup>
    4949  <ItemGroup>
     50    <Compile Include="DelegatingOperator.cs" />
    5051    <Compile Include="Evaluation\CoefficientOfDeterminationEvaluator.cs" />
    5152    <Compile Include="Evaluation\FunctionEvaluator.cs">
  • trunk/sources/HeuristicLab.StructureIdentification/Manipulation/FullTreeShaker.cs

    r2 r88  
    3131
    3232namespace HeuristicLab.StructureIdentification {
    33   public class FullTreeShaker : OperatorBase {
     33  public class FullTreeShaker : DelegatingOperator {
    3434    public override string Description {
    3535      get { return "Manipulates all tree nodes for which a '"+GPOperatorLibrary.MANIPULATION+"' variable is defined."; }
  • 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.