예제 #1
0
 /// <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
     };
 }
예제 #2
0
 /// <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;
 }
예제 #3
0
 public BpmLeaf(int index, BpmGene parent) : base(index, parent)
 {
     _children = null;
 }