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/Manipulators/SymbolicExpressionTreeManipulator.cs

    r3462 r3534  
    2727using HeuristicLab.Parameters;
    2828using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     29using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Interfaces;
    2930
    3031namespace HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Manipulators {
     
    3435  [Item("SymbolicExpressionTreeManipulator", "A base class for operators that manipulate symbolic expression trees.")]
    3536  [StorableClass]
    36   public abstract class SymbolicExpressionTreeManipulator : SymbolicExpressionTreeOperator, IManipulator {
     37  public abstract class SymbolicExpressionTreeManipulator : SymbolicExpressionTreeOperator, ISymbolicExpressionTreeManipulator {
    3738    private const string FailedManipulationEventsParameterName = "FailedManipulationEvents";
     39    private const string SymbolicExpressionTreeParameterName = "SymbolicExpressionTree";
    3840
    3941    #region Parameter Properties
    4042    public IValueParameter<IntValue> FailedManipulationEventsParameter {
    4143      get { return (IValueParameter<IntValue>)Parameters[FailedManipulationEventsParameterName]; }
     44    }
     45    public ILookupParameter<SymbolicExpressionTree> SymbolicExpressionTreeParameter {
     46      get { return (ILookupParameter<SymbolicExpressionTree>)Parameters[SymbolicExpressionTreeParameterName]; }
    4247    }
    4348    #endregion
     
    4752      get { return FailedManipulationEventsParameter.Value; }
    4853    }
     54    public SymbolicExpressionTree SymbolicExpressionTree {
     55      get { return SymbolicExpressionTreeParameter.ActualValue; }
     56    }
    4957    #endregion
    5058
     
    5260      : base() {
    5361      Parameters.Add(new ValueParameter<IntValue>(FailedManipulationEventsParameterName, "The number of failed manipulation events.", new IntValue()));
     62      Parameters.Add(new LookupParameter<SymbolicExpressionTree>(SymbolicExpressionTreeParameterName, "The symbolic expression tree on which the operator should be applied."));
    5463    }
    5564
Note: See TracChangeset for help on using the changeset viewer.