예제 #1
0
  public Individual[] generateChildren(Individual[] parents, Run run) {
    Individual parent = parents[0];
    Individual retVal = parent.duplicate();

    retVal.setId(parent.getId());
    retVal.setParentOne(parent.getId());
    retVal.setParentTwo(null);

    Individual[] children = {retVal};

    return children;
  }
예제 #2
0
파일: Pedigree.java 프로젝트: mrG7/biodata
 public void addIndividual(Individual ind) {
   this.individuals.put(ind.getId(), ind);
 }