Changeset 5510 for branches/DataAnalysis Refactoring/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/Creators
- Timestamp:
- 02/17/11 13:51:04 (14 years ago)
- 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 92 92 } 93 93 94 protected override SymbolicExpressionTree Create(IRandom random) {94 protected override ISymbolicExpressionTree Create(IRandom random) { 95 95 return Create(random, SymbolicExpressionTreeGrammar, MaximumSymbolicExpressionTreeLength.Value, MaximumSymbolicExpressionTreeDepth.Value, 96 96 MaximumFunctionDefinitions.Value, MaximumFunctionArguments.Value); 97 97 } 98 98 99 public static SymbolicExpressionTree Create(IRandom random, ISymbolicExpressionTreeGrammar grammar,99 public static ISymbolicExpressionTree Create(IRandom random, ISymbolicExpressionTreeGrammar grammar, 100 100 int maxTreeSize, int maxTreeHeight, 101 101 int maxFunctionDefinitions, int maxFunctionArguments -
branches/DataAnalysis Refactoring/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/Creators/SymbolicExpressionTreeCreator.cs
r5499 r5510 35 35 private const string SymbolicExpressionTreeParameterName = "SymbolicExpressionTree"; 36 36 #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]; } 39 39 } 40 40 #endregion 41 41 42 42 #region Propeties 43 public SymbolicExpressionTree SymbolicExpressionTree {43 public ISymbolicExpressionTree SymbolicExpressionTree { 44 44 get { return SymbolicExpressionTreeParameter.ActualValue; } 45 45 set { SymbolicExpressionTreeParameter.ActualValue = value; } … … 52 52 protected SymbolicExpressionTreeCreator() 53 53 : 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.")); 55 55 } 56 56 … … 60 60 } 61 61 62 protected abstract SymbolicExpressionTree Create(IRandom random);62 protected abstract ISymbolicExpressionTree Create(IRandom random); 63 63 } 64 64 }
Note: See TracChangeset
for help on using the changeset viewer.