Пример #1
0
 public String toString() {
   StringBuffer sb = new StringBuffer();
   sb.append(StringTool.join(", ", this.cpts));
   sb.append("; ");
   sb.append(StringTool.join(", ", this.functions));
   return sb.toString();
 }
Пример #2
0
 public String toString() {
   return "Supernode["
       + StringTool.join(",", nodes)
       + "; "
       + StringTool.join("; ", this.functions)
       + "]";
 }
Пример #3
0
 public void print(PrintStream out) {
   int i = 0;
   for (Node n : nodes) {
     out.printf("Node%d: %s\n", i++, StringTool.join(", ", n.nodes));
     for (CPF cpf : n.functions) {
       out.printf(
           "  CPFS: %s | %s\n",
           cpf.getDomainProduct()[0], StringTool.join(", ", cpf.getDomainProduct()));
     }
   }
 }
Пример #4
0
 public String toString() {
   StringBuffer sb = new StringBuffer("MF[");
   sb.append("scope: " + StringTool.join(", ", scope));
   sb.append("; CPFs:");
   int i = 0;
   for (BeliefNode n : this.cpts) {
     if (i++ > 0) sb.append("; ");
     sb.append(n.getCPF().toString());
   }
   sb.append("; children: ");
   sb.append(StringTool.join("; ", this.childFunctions));
   sb.append("]");
   return sb.toString();
 }
Пример #5
0
 public String[] getParameterSet(RelationKey key, String[] keyValues) {
   // System.out.println("doing lookup for " + this.key + " with " +
   // StringTool.join(", ", keyValues));
   HashMap<String, String[]> m = functionalDependencies.get(key);
   if (m == null) return null;
   return m.get(StringTool.join(",", keyValues));
 }
Пример #6
0
 public void printDomain(PrintStream out) {
   for (Entry<String, HashSet<String>> e : domains.entrySet()) {
     out.println(e.getKey() + ": " + StringTool.join(", ", e.getValue()));
   }
 }
Пример #7
0
 public String getShortName() {
   return StringTool.join(",", nodes);
 }
Пример #8
0
 public String toString() {
   return StringTool.join(" ", vars);
 }
Пример #9
0
 public String toString() {
   return "Minibucket[" + StringTool.join(" ", items) + "]";
 }
Пример #10
0
 public String toString() {
   return "[" + StringTool.join(" ", this.nodes) + "]";
 }