Example #1
0
 public Cell(IInternals cellInternals)
 {
     this.cellInternals = cellInternals;
     if (this.cellInternals is ForwardInternals)
     {
         ((ForwardInternals)this.cellInternals).SetPartentObject(this);
     }
 }
    private void Split(int iteration)
    {
        IInternals copy  = Copy(iteration - 1);
        Cell       child = new Cell(Copy(iteration - 1));

        ((ForwardInternals)copy).SetPartentObject(child);
        //birthDate = iteration - 1;

        model.AddCell(child, iteration);
        children.Add(iteration, child);
    }
Example #3
0
 public Cell(Cell parent)
 {
     cellInternals = parent.cellInternals.Copy();
 }