Class Node
Inheritance
System.Object
Node
Assembly: DirectScale.Disco.Extension.Abstractions.dll
Syntax
public class Node : Object
Constructors
Node()
Declaration
Node(NodeDetail)
Declaration
public Node(NodeDetail detail)
Parameters
Properties
Detail
Declaration
public NodeDetail Detail { get; set; }
Property Value
LegCount
Declaration
public int LegCount { get; }
Property Value
Type |
Description |
System.Int32 |
|
Legs
Declaration
public Node[] Legs { get; }
Property Value
NodeId
Declaration
public NodeId NodeId { get; }
Property Value
UplineId
Declaration
public NodeId UplineId { get; }
Property Value
UplineLeg
Declaration
public LegName UplineLeg { get; }
Property Value
Methods
ForEachNode(Action<Node>)
Executes the specified action on each node in this tree (breadth-first).
Modifying the collection in the body of the action is not supported and causes undefined behavior.
Declaration
public void ForEachNode(Action<Node> action)
Parameters
Type |
Name |
Description |
System.Action<Node> |
action |
|
GetLeg(LegName)
Declaration
public Node GetLeg(LegName leg)
Parameters
Returns
HasLeg(LegName)
Declaration
public bool HasLeg(LegName leg)
Parameters
Returns
Type |
Description |
System.Boolean |
|