public int weight() { if (cachedWeight == -1) { int weight = 1; Iterator it = new Iterator(); while (it.hasNext()) { Variable var = (Variable) it.next(); weight *= var.getNumOutcomes(); } cachedWeight = weight; } return cachedWeight; }
public int weight() { if (cachedWeight == -1) { int weight = 1; Iterator it = new Iterator(); while (it.hasNext()) { Variable var = (Variable) it.next(); weight *= var.getNumOutcomes(); } cachedWeight = weight; } return cachedWeight; }
public java.util.Iterator iterator() { return new Iterator(); }
public java.util.Iterator iterator() { return new Iterator(); }
public java.util.Iterator iterator() { return new Iterator(); }
public int weight() { if (cachedWeight == -1) { int weight = 1; Iterator it = new Iterator(); while (it.hasNext()) { Variable var = (Variable) it.next(); weight *= var.getNumOutcomes(); } cachedWeight = weight; } return cachedWeight; }
public String toString () { String foo = "(C"; Iterator it = new Iterator (); while (it.hasNext()) { Variable var = (Variable) it.next(); foo = foo + " " + var; } foo = foo + ")"; return foo; }
public String toString () { String foo = "(C"; Iterator it = new Iterator (); while (it.hasNext()) { Variable var = (Variable) it.next(); foo = foo + " " + var; } foo = foo + ")"; return foo; }
public String toString () { String foo = "(C"; Iterator it = new Iterator (); while (it.hasNext()) { Variable var = (Variable) it.next(); foo = foo + " " + var; } foo = foo + ")"; return foo; }