Changeset 2216 for branches/GP-Refactoring-713/sources/HeuristicLab.GP.StructureIdentification/3.3/Symbols/ConstantFunctionTree.cs
- Timestamp:
- 07/30/09 19:41:58 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/GP-Refactoring-713/sources/HeuristicLab.GP.StructureIdentification/3.3/Symbols/ConstantFunctionTree.cs
r2212 r2216 26 26 27 27 namespace HeuristicLab.GP.StructureIdentification { 28 public class ConstantFunctionTree : FunctionTreeBase { 29 private static readonly IList<IFunctionTree> subTrees = new List<IFunctionTree>().AsReadOnly(); 28 public class ConstantFunctionTree : TerminalTreeNode { 30 29 public double Value { get; set; } 31 30 32 public ConstantFunctionTree(Constant constant) { 33 Function = constant; 31 public ConstantFunctionTree(Constant constant) : base(constant){ 34 32 } 35 33 36 protected ConstantFunctionTree(ConstantFunctionTree original) { 37 Function = original.Function; 34 protected ConstantFunctionTree(ConstantFunctionTree original) : base(original){ 38 35 Value = original.Value; 39 }40 41 public override IList<IFunctionTree> SubTrees {42 get {43 return subTrees;44 }45 36 } 46 37
Note: See TracChangeset
for help on using the changeset viewer.