Class Not
java.lang.Object
org.projog.core.predicate.AbstractSingleResultPredicate
org.projog.core.predicate.builtin.compound.Not
- All Implemented Interfaces:
KnowledgeBaseConsumer, PredicateFactory, PreprocessablePredicateFactory
public final class Not
extends AbstractSingleResultPredicate
implements PreprocessablePredicateFactory
\+ X - "not".
The \+ X goal succeeds if an attempt to satisfy the goal represented by the term X fails.
The \+ X goal fails if an attempt to satisfy the goal represented by the term X succeeds.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanprivate static booleanevaluateNot(Term t, PredicateFactory pf) preprocess(Term term) Methods inherited from class AbstractSingleResultPredicate
evaluate, 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
getPredicate, isAlwaysCutOnBacktrack, isRetryable
-
Constructor Details
-
Not
public Not()
-
-
Method Details
-
evaluate
- Overrides:
evaluatein classAbstractSingleResultPredicate
-
evaluateNot
-
preprocess
- Specified by:
preprocessin interfacePreprocessablePredicateFactory
-