Changeset 13656 for branches/WebJobManager/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4
- Timestamp:
- 03/07/16 10:18:05 (8 years ago)
- Location:
- branches/WebJobManager
- Files:
-
- 1 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/WebJobManager/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/SymbolicExpressionTree.cs
r12012 r13656 22 22 using System; 23 23 using System.Collections.Generic; 24 using System.Drawing;25 24 using System.Linq; 26 25 using HeuristicLab.Common; … … 32 31 [Item("SymbolicExpressionTree", "Represents a symbolic expression tree.")] 33 32 public class SymbolicExpressionTree : Item, ISymbolicExpressionTree { 34 public static new Image StaticItemImage { 35 get { return HeuristicLab.Common.Resources.VSImageLibrary.Function; } 36 } 33 37 34 [Storable] 38 35 private ISymbolicExpressionTreeNode root; 39 public ISymbolicExpressionTreeNode Root { 36 public ISymbolicExpressionTreeNode Root 37 { 40 38 get { return root; } 41 set { 39 set 40 { 42 41 if (value == null) throw new ArgumentNullException(); 43 42 else if (value != root) { … … 48 47 } 49 48 50 public int Length { 51 get { 49 public int Length 50 { 51 get 52 { 52 53 if (root == null) 53 54 return 0; … … 56 57 } 57 58 58 public int Depth { 59 get { 59 public int Depth 60 { 61 get 62 { 60 63 if (root == null) 61 64 return 0;
Note: See TracChangeset
for help on using the changeset viewer.