Hello everyone,
I'm programming genetic processes in java for my project and I want simulate the mitosis of a human cell. A human cell contains 23 pairs of chromosome. Mitosis is basically a cell division, or reproduction, in which a cell gives rise to two genetically identical daughter cells. You can find a picture about it here (scroll a little bit down the page):
http://leilabelinda.over-blog.com/article-mitose-et-meiose-53866656.html
I think that this mitosis method would be like a java method in a class "Cell" for example. So i made a class Chromosome with it's own methods to represent a single chromosome and made a class "Cell" containing 23 pairs of chromosomes. I plan on putting the method mitosis in the class Cell and using the Cloneable interface to clone a cell. But the problem is that this method should return 2 identical cells, I think, and I don't know how to go about it. For the moment my method mitosis just returns one cell and if i want to test it, I end up testing it this way for example.
TestMitosis.java
Cell c = new Cell();
Cell d = new Cell();
Cell e = new Cell();
try{
d = c.mitosis();
e = c.mitosis();
}catch(CloneNotSupportedException e){}
Any suggestions an how to create this method? Or maybe another approach other than the one i'm using? Thanks.