Sage Modeling and Simulation Library

TreeNode<(Of <(<'T>)>)> Members

The TreeNode<(Of <(<'T>)>)> type exposes the following members.

Constructors


  Name Description
Public method TreeNode<(Of <(<'T>)>)>()()()()
Initializes a new instance of the TreeNode<(Of <(<'T>)>)> class.
Public method TreeNode<(Of <(<'T>)>)>(T)
Initializes a new instance of the TreeNode<(Of <(<'T>)>)> class.

Methods


  Name Description
Public method AddChild(T, Boolean)
Public method AddChild(ITreeNode<(Of <<'(T>)>>), Boolean)
Public method DescendantNodesBreadthFirst
Returns an iterator that traverses the descendant nodes breadth first, top down.
Public method DescendantNodesDepthFirst
Returns an iterator that traverses the descendant nodes depth first, top down.
Public method DescendantsBreadthFirst
Returns an IEnumerable that traverses the descendant payloads breadth first.
Public method DescendantsDepthFirst
Returns an iterator that traverses the descendant payloads depth first.
Public method Equals
Determines whether the specified Object is equal to the current Object.
Protected method Finalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public method ForEachChild(Action<(Of <<'(T>)>>))
Public method ForEachChild(Action<(Of <<'(ITreeNode<(Of <<'(T>)>>)>)>>))
Public method GetHashCode
Serves as a hash function for a particular type. GetHashCode is suitable for use in hashing algorithms and data structures like a hash table.
Public method GetType
Gets the Type of the current instance.
(Inherited from Object.)
Public method HasChild(ITreeNode<(Of <<'(T>)>>))
Public method HasChild(T)
Public method IsChildOf
Protected method MemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public method RemoveChild(T)
Public method RemoveChild(ITreeNode<(Of <<'(T>)>>))
Public method SetParent
Protected method SetPayload
Public method Siblings
Gets an enumerator over this node's siblings in the hierarchy.
Public method SortChildren(Comparison<(Of <<'(ITreeNode<(Of <<'(T>)>>)>)>>))
Public method SortChildren(IComparer<(Of <<'(ITreeNode<(Of <<'(T>)>>)>)>>))
Public method ToString
Returns a string that represents the current object.
(Inherited from Object.)

Properties


  Name Description
Public property ChildNodes
Provides an IEnumerable over the child nodes (i.e. the payloads of the children.)
Public property Children
Gets the children, if any, of this node. Return value will be an empty collection if there are no children.
Protected property IsSelfReferential
Public property MyEventController
Public property Parent
Gets or sets the parent of this tree node.
Public property Payload
Public property Root
Gets the root node above this one.