Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
02/17/11 13:51:04 (14 years ago)
Author:
gkronber
Message:

#1418 Fixed compiler errors in symbolic expression tree encoding

Location:
branches/DataAnalysis Refactoring/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/Creators
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/DataAnalysis Refactoring/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/Creators/ProbabilisticTreeCreator.cs

    r5499 r5510  
    9292    }
    9393
    94     protected override SymbolicExpressionTree Create(IRandom random) {
     94    protected override ISymbolicExpressionTree Create(IRandom random) {
    9595      return Create(random, SymbolicExpressionTreeGrammar, MaximumSymbolicExpressionTreeLength.Value, MaximumSymbolicExpressionTreeDepth.Value,
    9696        MaximumFunctionDefinitions.Value, MaximumFunctionArguments.Value);
    9797    }
    9898
    99     public static SymbolicExpressionTree Create(IRandom random, ISymbolicExpressionTreeGrammar grammar,
     99    public static ISymbolicExpressionTree Create(IRandom random, ISymbolicExpressionTreeGrammar grammar,
    100100      int maxTreeSize, int maxTreeHeight,
    101101      int maxFunctionDefinitions, int maxFunctionArguments
  • branches/DataAnalysis Refactoring/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/Creators/SymbolicExpressionTreeCreator.cs

    r5499 r5510  
    3535    private const string SymbolicExpressionTreeParameterName = "SymbolicExpressionTree";
    3636    #region Parameter Properties
    37     public ILookupParameter<SymbolicExpressionTree> SymbolicExpressionTreeParameter {
    38       get { return (ILookupParameter<SymbolicExpressionTree>)Parameters[SymbolicExpressionTreeParameterName]; }
     37    public ILookupParameter<ISymbolicExpressionTree> SymbolicExpressionTreeParameter {
     38      get { return (ILookupParameter<ISymbolicExpressionTree>)Parameters[SymbolicExpressionTreeParameterName]; }
    3939    }
    4040    #endregion
    4141
    4242    #region Propeties
    43     public SymbolicExpressionTree SymbolicExpressionTree {
     43    public ISymbolicExpressionTree SymbolicExpressionTree {
    4444      get { return SymbolicExpressionTreeParameter.ActualValue; }
    4545      set { SymbolicExpressionTreeParameter.ActualValue = value; }
     
    5252    protected SymbolicExpressionTreeCreator()
    5353      : base() {
    54       Parameters.Add(new LookupParameter<SymbolicExpressionTree>(SymbolicExpressionTreeParameterName, "The symbolic expression tree that should be created."));
     54      Parameters.Add(new LookupParameter<ISymbolicExpressionTree>(SymbolicExpressionTreeParameterName, "The symbolic expression tree that should be created."));
    5555    }
    5656
     
    6060    }
    6161
    62     protected abstract SymbolicExpressionTree Create(IRandom random);
     62    protected abstract ISymbolicExpressionTree Create(IRandom random);
    6363  }
    6464}
Note: See TracChangeset for help on using the changeset viewer.