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/SymbolicExpressionTreeOperator.cs

    r3376 r3534  
    2828using HeuristicLab.Parameters;
    2929using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     30using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Interfaces;
    3031
    3132namespace HeuristicLab.Encodings.SymbolicExpressionTreeEncoding {
     
    3738  public abstract class SymbolicExpressionTreeOperator : SingleSuccessorOperator, IStochasticOperator, ISymbolicExpressionTreeOperator {
    3839    private const string RandomParameterName = "Random";
    39     private const string SymbolicExpressionTreeParameterName = "SymbolicExpressionTree";
    4040    private const string MaxTreeSizeParameterName = "MaxTreeSize";
    4141    private const string MaxTreeHeightParameterName = "MaxTreeHeight";
     
    4949    public ILookupParameter<IRandom> RandomParameter {
    5050      get { return (LookupParameter<IRandom>)Parameters[RandomParameterName]; }
    51     }
    52     public ILookupParameter<SymbolicExpressionTree> SymbolicExpressionTreeParameter {
    53       get { return (ILookupParameter<SymbolicExpressionTree>)Parameters[SymbolicExpressionTreeParameterName]; }
    5451    }
    5552    public IValueLookupParameter<IntValue> MaxTreeSizeParameter {
     
    6865      get { return RandomParameter.ActualValue; }
    6966    }
    70     public SymbolicExpressionTree SymbolicExpressionTree {
    71       get { return SymbolicExpressionTreeParameter.ActualValue; }
    72     }
    7367    public IntValue MaxTreeSize {
    7468      get { return MaxTreeSizeParameter.ActualValue; }
     
    8579      : base() {
    8680      Parameters.Add(new LookupParameter<IRandom>(RandomParameterName, "The pseudo random number generator which should be used for symbolic expression tree operators."));
    87       Parameters.Add(new LookupParameter<SymbolicExpressionTree>(SymbolicExpressionTreeParameterName, "The symbolic expression tree on which the operator should be applied."));
    8881      Parameters.Add(new ValueLookupParameter<IntValue>(MaxTreeSizeParameterName, "The maximal size (number of nodes) of the symbolic expression tree."));
    8982      Parameters.Add(new ValueLookupParameter<IntValue>(MaxTreeHeightParameterName, "The maximal height of the symbolic expression tree (a tree with one node has height = 0)."));
Note: See TracChangeset for help on using the changeset viewer.