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); }
public Cell(Cell parent) { cellInternals = parent.cellInternals.Copy(); }