public final class AddPredicateFactory extends AbstractSingleResultPredicate
pj_add_predicate(X,Y)
- defines a Java class as a built-in predicate.
X
represents the name and arity of the predicate. Y
represents the full class name of an
implementation of org.projog.core.PredicateFactory
.
This predicate provides an easy way to configure and extend the functionality of Projog - including adding functionality not possible to define in pure Prolog syntax.
Constructor and Description |
---|
AddPredicateFactory(KnowledgeBase kb) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
evaluate(Term arg1,
Term arg2) |
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
public AddPredicateFactory(KnowledgeBase kb)
protected boolean evaluate(Term arg1, Term arg2)
evaluate
in class AbstractSingleResultPredicate
Copyright © 2024. All rights reserved.