* @param result The resulting probability.
* @param args The arguments.
*/
public void addLine(double prob, int result, int... args) {
if (args.length != this.event.getParents().size()) {
throw new BayesianError("Truth table line with " + args.length
+ ", specied for event with "
+ this.event.getParents().size()
+ " parents. These numbers must be the same");
}
TableLine line = findLine(result, args);
if (line == null) {
if (this.lines.size() == this.getMaxLines()) {
throw new BayesianError("This truth table is already full.");
}
line = new TableLine(prob, result, args);
this.lines.add(line);
} else {