Ejemplo n.º 1
0
 /**
  * Answer a perfect copy of <code>this</code> that points to another dataset
  *
  * @param dataSet the dataSet the copied gene will be part of.
  * @return a perfect copy of <code>this</code> that points to another dataset
  */
 public DefaultGene deepCopyFor(DataSet dataSet) {
   DefaultGene gene = new DefaultGene(dataSet, index);
   Iterator i = userAttributes.iterator();
   while (i.hasNext()) {
     String att = (String) i.next();
     gene.addAttribute(att);
   }
   return gene;
 }
Ejemplo n.º 2
0
 /** Add the standard empty attribute placeholder, new String(). */
 public void addEmptyAttribute() {
   addAttribute(new String());
 }