Class Op
java.lang.Object
org.projog.core.predicate.AbstractSingleResultPredicate
org.projog.core.predicate.builtin.io.Op
- All Implemented Interfaces:
KnowledgeBaseConsumer, PredicateFactory
op(X,Y,Z)
Allows functors (names of predicates) to be defined as "operators". The use of operators allows syntax to be easier
to write and read. Z is the atom that we want to be an operator, X is the precedence class
(an integer), and Y the associativity specifier. e.g. op(1200,xfx,':-')
-
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
-
Op
public Op()
-
-
Method Details
-
evaluate
- Overrides:
evaluatein classAbstractSingleResultPredicate
-