public ArrayList<Gene> getCloneLinks() { ArrayList<Gene> temp = new ArrayList<Gene>(); for (Gene l : links) { temp.add(l.clone()); } return temp; }
public Object clone() { Chromosome clone = new Chromosome(); clone.genes = new Vector<Gene>(); for (Gene curr : genes) { clone.genes.add((Gene) curr.clone()); } return clone; }