private void FillTree() { while (this.NodeJobList.Count > 0) { DecisionNode currentNode = this.NodeJobList[0]; DecisionNode[] branches = currentNode.Split(); if (branches != null) { this.NodeJobList.AddRange(branches); } this.NodeJobList.RemoveAt(0); } }
public DecisionNode(DecisionTree owner, DecisionNode parent, List <Video> inputs) { this.Owner = owner; this.Parent = parent; this.Inputs = inputs; if (IsRoot) { this.Level = 0; } else { this.Level = this.Parent.Level + 1; } }