Class Flag
java.lang.Object
org.projog.core.predicate.AbstractSingleResultPredicate
org.projog.core.predicate.builtin.kb.Flag
- All Implemented Interfaces:
KnowledgeBaseConsumer, PredicateFactory
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 Summary
Constructors -
Method Summary
Methods inherited from class AbstractSingleResultPredicate
evaluate, evaluate, evaluate, evaluate, getArithmeticOperators, getFileHandles, getKnowledgeBase, getOperands, getPredicate, getPredicates, getProjogListeners, getSpyPoints, getTermFormatter, init, isRetryable, setKnowledgeBaseMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface PredicateFactory
isAlwaysCutOnBacktrack, preprocess
-
Constructor Details
-
Flag
public Flag()
-
-
Method Details
-
evaluate
- Overrides:
evaluatein classAbstractSingleResultPredicate
-