public final class Erase extends AbstractSingleResultPredicate
erase(X) - removes a record from the recorded database.
Removes from the recorded database the term associated with the reference specified by X. The goal
succeeds even if there is no term associated with the specified reference.
| Constructor and Description |
|---|
Erase() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
evaluate(Term arg) |
protected void |
init()
This method is called by
AbstractSingleResultPredicate.setKnowledgeBase(KnowledgeBase). |
evaluate, evaluate, evaluate, evaluate, evaluate, getArithmeticOperators, getFileHandles, getKnowledgeBase, getOperands, getPredicate, getPredicates, getProjogListeners, getSpyPoints, getTermFormatter, isRetryable, setKnowledgeBaseclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisAlwaysCutOnBacktrackprotected void init()
AbstractSingleResultPredicateAbstractSingleResultPredicate.setKnowledgeBase(KnowledgeBase).
Can be overridden by subclasses to perform initialisation before any calls to AbstractSingleResultPredicate.evaluate(Term...) are made.
As AbstractSingleResultPredicate.setKnowledgeBase(KnowledgeBase) will have already been called before this method is invoked,
overridden versions will be able to access the KnowledgeBase using AbstractSingleResultPredicate.getKnowledgeBase().
init in class AbstractSingleResultPredicateprotected boolean evaluate(Term arg)
evaluate in class AbstractSingleResultPredicateCopyright © 2024. All rights reserved.