예제 #1
0
 public ArrayList<Gene> getCloneLinks() {
   ArrayList<Gene> temp = new ArrayList<Gene>();
   for (Gene l : links) {
     temp.add(l.clone());
   }
   return temp;
 }
예제 #2
0
  public Object clone() {
    Chromosome clone = new Chromosome();
    clone.genes = new Vector<Gene>();

    for (Gene curr : genes) {
      clone.genes.add((Gene) curr.clone());
    }

    return clone;
  }