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, setKnowledgeBaseclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisAlwaysCutOnBacktrackpublic static Assert assertA()
public static Assert assertZ()
protected boolean evaluate(Term clause)
evaluate in class AbstractSingleResultPredicateCopyright © 2024. All rights reserved.