/// <summary> /// Set the parent of the extension. /// </summary> /// <param name="parent">The parent</param> private void SetParent(Extension parent) { this.Parent = parent; }
/// <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> /// 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> /// Clone the extension without the children. /// </summary> /// <returns>The copy</returns> public Extension LocalClone() { Extension result = new Extension(); result.GeneticData = (GeneticData) GeneticData.DeepClone(); return result; }
public Genotype(Extension root) { Root = root; }