Ejemplo n.º 1
0
 /// <summary>
 /// Set the parent of the extension.
 /// </summary>
 /// <param name="parent">The parent</param>
 private void SetParent(Extension parent)
 {
     this.Parent = parent;
 }
Ejemplo n.º 2
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);
 }
Ejemplo n.º 3
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);
 }
Ejemplo n.º 4
0
 /// <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;
 }
Ejemplo n.º 5
0
 public Genotype(Extension root)
 {
     Root = root;
 }