Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/26/10 15:47:10 (14 years ago)
Author:
gkronber
Message:

Added interfaces for symbolic expression tree operators and added multi manipulation operators. #937 (Data types and operators for symbolic expression tree encoding)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.3/ArchitectureAlteringOperators/SymbolicExpressionTreeArchitectureAlteringOperator.cs

    r3462 r3534  
    3333using System.Text;
    3434using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Manipulators;
     35using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Interfaces;
    3536
    3637namespace HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.ArchitectureAlteringOperators {
     
    3940  /// </summary>
    4041  [StorableClass]
    41   public abstract class SymbolicExpressionTreeArchitectureAlteringOperator : SymbolicExpressionTreeManipulator {
     42  public abstract class SymbolicExpressionTreeArchitectureManipulator : SymbolicExpressionTreeManipulator, ISymbolicExpressionTreeArchitectureManipulator {
    4243    private const string MaxFunctionArgumentsParameterName = "MaxFunctionArguments";
    4344    private const string MaxFunctionDefiningBranchesParameterName = "MaxFunctionDefiningBranches";
     
    4647    }
    4748
    48     public IValueLookupParameter<IntValue> MaxFunctionDefiningBranchesParameter {
     49    public IValueLookupParameter<IntValue> MaxFunctionDefinitionsParameter {
    4950      get { return (IValueLookupParameter<IntValue>)Parameters[MaxFunctionDefiningBranchesParameterName]; }
    5051    }
     
    5354    }
    5455    public IntValue MaxFunctionDefiningBranches {
    55       get { return MaxFunctionDefiningBranchesParameter.ActualValue; }
     56      get { return MaxFunctionDefinitionsParameter.ActualValue; }
    5657    }
    5758    public IntValue MaxFunctionArguments {
    5859      get { return MaxFunctionArgumentsParameter.ActualValue; }
    5960    }
    60     public SymbolicExpressionTreeArchitectureAlteringOperator()
     61    public SymbolicExpressionTreeArchitectureManipulator()
    6162      : base() {
    6263      Parameters.Add(new ValueLookupParameter<IntValue>(MaxFunctionDefiningBranchesParameterName, "The maximal allowed number of function defining branches."));
     
    7475      IntValue maxTreeSize,
    7576      IntValue maxTreeHeight,
    76       IntValue maxFunctionDefiningBranches,
     77      IntValue maxFunctionDefinitions,
    7778      IntValue maxFunctionArguments,
    7879      out bool success
Note: See TracChangeset for help on using the changeset viewer.