Class Conjunction
- java.lang.Object
-
- org.projog.core.predicate.AbstractPredicateFactory
-
- org.projog.core.predicate.builtin.compound.Conjunction
-
- All Implemented Interfaces:
KnowledgeBaseConsumer,PredicateFactory,PreprocessablePredicateFactory
public final class Conjunction extends AbstractPredicateFactory implements PreprocessablePredicateFactory
X,Y- conjunction.X,Yspecifies a conjunction of goals.X,Ysucceeds ifXsucceeds andYsucceeds. IfXsucceeds andYfails then an attempt is made to re-satisfyX. IfXfails the entire conjunction fails.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static classConjunction.ConjunctionPredicateprivate static classConjunction.OptimisedRetryableConjuctionprivate static classConjunction.OptimisedSingletonConjuction
-
Constructor Summary
Constructors Constructor Description Conjunction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected PredicategetPredicate(Term arg1, Term arg2)PredicateFactorypreprocess(Term term)-
Methods inherited from class org.projog.core.predicate.AbstractPredicateFactory
getArithmeticOperators, getFileHandles, getKnowledgeBase, getOperands, getPredicate, getPredicate, getPredicate, getPredicate, getPredicate, getPredicates, getProjogListeners, getSpyPoints, getTermFormatter, init, isRetryable, setKnowledgeBase
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.projog.core.predicate.PredicateFactory
getPredicate, isAlwaysCutOnBacktrack, isRetryable
-
-
-
-
Method Detail
-
getPredicate
protected Predicate getPredicate(Term arg1, Term arg2)
- Overrides:
getPredicatein classAbstractPredicateFactory
-
preprocess
public PredicateFactory preprocess(Term term)
- Specified by:
preprocessin interfacePreprocessablePredicateFactory
-
-