Changeset 2211 for branches/GP-Refactoring-713/sources/HeuristicLab.GP.StructureIdentification/3.3/VariableFunctionTree.cs
- Timestamp:
- 07/29/09 19:07:21 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/GP-Refactoring-713/sources/HeuristicLab.GP.StructureIdentification/3.3/VariableFunctionTree.cs
r2210 r2211 29 29 namespace HeuristicLab.GP.StructureIdentification { 30 30 public class VariableFunctionTree : FunctionTreeBase { 31 private static readonly IList<IFunctionTree> subTrees = new List<IFunctionTree>().AsReadOnly(); 31 32 public double Weight { get; set; } 32 33 public string VariableName { get; set; } 33 34 public int SampleOffset { get; set; } 34 35 35 public VariableFunctionTree(Variable variable) 36 : base(variable) {36 public VariableFunctionTree(Variable variable) { 37 Function = variable; 37 38 } 38 39 39 protected VariableFunctionTree(VariableFunctionTree original) 40 : base(original) {40 protected VariableFunctionTree(VariableFunctionTree original) { 41 Function = original.Function; 41 42 Weight = original.Weight; 42 43 VariableName = original.VariableName; 43 44 SampleOffset = original.SampleOffset; 45 } 46 47 public override IList<IFunctionTree> SubTrees { 48 get { 49 return subTrees; 50 } 44 51 } 45 52
Note: See TracChangeset
for help on using the changeset viewer.