public final class Flag extends AbstractSingleResultPredicate
flag(X,Y,Z)
- associates a key with a value.
The first argument must be an atom or structure. The name and arity of the first argument is used to construct the key. The second argument is the value currently associated with the key. If there is not currently a value associated with the key then it will default to 0. The third argument is the new value to associate with the key. The third argument must be a numeric value.
Constructor and Description |
---|
Flag() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
evaluate(Term key,
Term oldValue,
Term newValue) |
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
protected boolean evaluate(Term key, Term oldValue, Term newValue)
evaluate
in class AbstractSingleResultPredicate
Copyright © 2024. All rights reserved.