Changeset 5686 for branches/DataAnalysis Refactoring/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/CutPoint.cs
- Timestamp:
- 03/15/11 13:34:38 (13 years ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
branches/DataAnalysis Refactoring/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/CutPoint.cs
r5674 r5686 22 22 23 23 namespace HeuristicLab.Encodings.SymbolicExpressionTreeEncoding { 24 internal class C rossoverPoint {24 internal class CutPoint { 25 25 public ISymbolicExpressionTreeNode Parent { get; set; } 26 26 public ISymbolicExpressionTreeNode Child { get; set; } 27 public int SubtreeIndex { 28 get { return Parent.IndexOfSubTree(Child); } 27 private int childIndex; 28 public int ChildIndex { 29 get { return childIndex; } 29 30 } 30 public C rossoverPoint(ISymbolicExpressionTreeNode parent, ISymbolicExpressionTreeNode child) {31 public CutPoint(ISymbolicExpressionTreeNode parent, ISymbolicExpressionTreeNode child) { 31 32 this.Parent = parent; 32 33 this.Child = child; 34 this.childIndex = parent.IndexOfSubTree(child); 33 35 } 34 36 }
Note: See TracChangeset
for help on using the changeset viewer.