public final class Assert extends AbstractSingleResultPredicate
asserta(X)
/ assertz(X)
- adds a clause to the knowledge base.
asserta(X)
adds the clause X
to the front of the knowledge base. assertz(X)
adds the clause X
to the end of the knowledge base. X
must be suitably instantiated that
the predicate of the clause can be determined.
This is not undone as part of backtracking.
Modifier and Type | Method and Description |
---|---|
static Assert |
assertA() |
static Assert |
assertZ() |
protected boolean |
evaluate(Term clause) |
evaluate, evaluate, evaluate, evaluate, evaluate, getArithmeticOperators, getFileHandles, getKnowledgeBase, getOperands, getPredicate, getPredicates, getProjogListeners, getSpyPoints, getTermFormatter, init, isRetryable, setKnowledgeBase
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isAlwaysCutOnBacktrack
public static Assert assertA()
public static Assert assertZ()
protected boolean evaluate(Term clause)
evaluate
in class AbstractSingleResultPredicate
Copyright © 2024. All rights reserved.