Пример #1
0
 /**
  * Prints on a string the set of rules
  *
  * @return A strign that stores the set of rules
  */
 public String printString() {
   String cad = "";
   for (int i = 0; i < reglas.size(); i++) {
     Complejo c = (Complejo) reglas.get(i);
     cad += "\nRule " + (i + 1) + ": IF  ";
     cad += c.printString();
     cad += " THEN " + nombreClase + " -> " + valorNombreClases[c.getClase()] + "  ";
     cad += c.printDistribucionString();
   }
   return cad;
 }