/// <summary> /// Adds a BpmGene as a child of /// <param name="parent"></param> /// and gets the children of the /// <param name="parent"></param> /// as its /// own children. /// </summary> /// <param name="parent">Parent of the added gene.</param> /// <param name="newGene">Gene to add to the tree.</param> public void AddGene(BpmGene parent, BpmGene newGene) { newGene.Parent = parent; newGene.Children = parent.Children; parent.Children = new List <BpmGene> { newGene }; }
/// <summary> /// Creates an instance of the /// </summary> /// <param name="index"></param> /// <param name="parent"></param> public BpmGene(int index, BpmGene parent) { Index = index; Parent = parent; }
public BpmLeaf(int index, BpmGene parent) : base(index, parent) { _children = null; }