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