Changeset 5499 for branches/DataAnalysis Refactoring/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/SymbolicExpressionTreeOperator.cs
- Timestamp:
- 02/16/11 19:01:00 (13 years ago)
- Location:
- branches/DataAnalysis Refactoring/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/DataAnalysis Refactoring/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4
- Property svn:ignore
-
old new 2 2 obj 3 3 HeuristicLabEncodingsSymbolicExpressionTreeEncodingPlugin.cs 4 *.user
-
- Property svn:ignore
-
branches/DataAnalysis Refactoring/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/SymbolicExpressionTreeOperator.cs
r5473 r5499 23 23 using HeuristicLab.Core; 24 24 using HeuristicLab.Data; 25 using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Interfaces;26 25 using HeuristicLab.Operators; 27 26 using HeuristicLab.Optimization; … … 37 36 public abstract class SymbolicExpressionTreeOperator : SingleSuccessorOperator, IStochasticOperator, ISymbolicExpressionTreeOperator { 38 37 private const string RandomParameterName = "Random"; 39 private const string MaxTreeSizeParameterName = "MaxTreeSize";40 private const string MaxTreeHeightParameterName = "MaxTreeHeight";41 private const string SymbolicExpressionGrammarParameterName = "SymbolicExpressionGrammar";42 38 43 39 public override bool CanChangeName { … … 49 45 get { return (LookupParameter<IRandom>)Parameters[RandomParameterName]; } 50 46 } 51 public IValueLookupParameter<IntValue> MaxTreeSizeParameter {52 get { return (IValueLookupParameter<IntValue>)Parameters[MaxTreeSizeParameterName]; }53 }54 public IValueLookupParameter<IntValue> MaxTreeHeightParameter {55 get { return (IValueLookupParameter<IntValue>)Parameters[MaxTreeHeightParameterName]; }56 }57 public ILookupParameter<ISymbolicExpressionGrammar> SymbolicExpressionGrammarParameter {58 get { return (ILookupParameter<ISymbolicExpressionGrammar>)Parameters[SymbolicExpressionGrammarParameterName]; }59 }60 47 #endregion 61 48 … … 63 50 public IRandom Random { 64 51 get { return RandomParameter.ActualValue; } 65 }66 public IntValue MaxTreeSize {67 get { return MaxTreeSizeParameter.ActualValue; }68 }69 public IntValue MaxTreeHeight {70 get { return MaxTreeHeightParameter.ActualValue; }71 }72 public ISymbolicExpressionGrammar SymbolicExpressionGrammar {73 get { return SymbolicExpressionGrammarParameter.ActualValue; }74 52 } 75 53 #endregion … … 81 59 : base() { 82 60 Parameters.Add(new LookupParameter<IRandom>(RandomParameterName, "The pseudo random number generator which should be used for symbolic expression tree operators.")); 83 Parameters.Add(new ValueLookupParameter<IntValue>(MaxTreeSizeParameterName, "The maximal size (number of nodes) of the symbolic expression tree."));84 Parameters.Add(new ValueLookupParameter<IntValue>(MaxTreeHeightParameterName, "The maximal height of the symbolic expression tree (a tree with one node has height = 0)."));85 Parameters.Add(new LookupParameter<ISymbolicExpressionGrammar>(SymbolicExpressionGrammarParameterName, "The grammar that defines the allowed symbols and syntax of the symbolic expression trees."));86 61 } 87 62 }
Note: See TracChangeset
for help on using the changeset viewer.