aima.core.probability.proposition.AbstractTermProposition Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aima-core Show documentation
Show all versions of aima-core Show documentation
AIMA-Java Core Algorithms from the book Artificial Intelligence a Modern Approach 3rd Ed.
package aima.core.probability.proposition;
import aima.core.probability.RandomVariable;
public abstract class AbstractTermProposition extends AbstractProposition
implements TermProposition {
private RandomVariable termVariable = null;
public AbstractTermProposition(RandomVariable var) {
if (null == var) {
throw new IllegalArgumentException(
"The Random Variable for the Term must be specified.");
}
this.termVariable = var;
addScope(this.termVariable);
}
public RandomVariable getTermVariable() {
return termVariable;
}
}