Example #1
0
 /// <summary>
 /// Set the parent of the extension.
 /// </summary>
 /// <param name="parent">The parent</param>
 private void setParent(Extension parent)
 {
     this.parent = parent;
 }
Example #2
0
 /// <summary>
 /// Add an extension as a son.
 /// </summary>
 /// <param name="extension">New son.</param>
 public void addExtension(Extension extension)
 {
     extensions.Add(extension);
     extension.setParent(this);
 }
Example #3
0
 /// <summary>
 /// Remove a child of this extension.
 /// </summary>
 /// <param name="e">The extension to remove</param>
 public void removeExtension(Extension e)
 {
     extensions.Remove(e);
 }
Example #4
0
 /// <summary>
 /// Set the root element of the structure of the genotype
 /// </summary>
 /// <param name="e"></param>
 public void setRootElement(Extension e)
 {
     rootElement = e;
 }