/// <summary> /// Set the parent of the extension. /// </summary> /// <param name="parent">The parent</param> private void setParent(Extension parent) { this.parent = parent; }
/// <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); }
/// <summary> /// Remove a child of this extension. /// </summary> /// <param name="e">The extension to remove</param> public void removeExtension(Extension e) { extensions.Remove(e); }
/// <summary> /// Set the root element of the structure of the genotype /// </summary> /// <param name="e"></param> public void setRootElement(Extension e) { rootElement = e; }