public String toString() { StringBuffer sb = new StringBuffer(); sb.append(StringTool.join(", ", this.cpts)); sb.append("; "); sb.append(StringTool.join(", ", this.functions)); return sb.toString(); }
public String toString() { return "Supernode[" + StringTool.join(",", nodes) + "; " + StringTool.join("; ", this.functions) + "]"; }
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())); } } }
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(); }
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)); }
public void printDomain(PrintStream out) { for (Entry<String, HashSet<String>> e : domains.entrySet()) { out.println(e.getKey() + ": " + StringTool.join(", ", e.getValue())); } }
public String getShortName() { return StringTool.join(",", nodes); }
public String toString() { return StringTool.join(" ", vars); }
public String toString() { return "Minibucket[" + StringTool.join(" ", items) + "]"; }
public String toString() { return "[" + StringTool.join(" ", this.nodes) + "]"; }