Class Distinct
java.lang.Object
org.projog.core.predicate.AbstractSingleResultPredicate
org.projog.core.predicate.builtin.clp.Distinct
- All Implemented Interfaces:
KnowledgeBaseConsumer,PredicateFactory
all_different([X,Y,Z]) - enforce that none of the given CLP variables share the same value.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate List<org.projog.clp.Constraint> createConstraints(List<org.projog.clp.Expression> expressions) booleanprivate List<org.projog.clp.Expression> getOrCreateVariables(Term arg) Methods inherited from class org.projog.core.predicate.AbstractSingleResultPredicate
evaluate, evaluate, evaluate, evaluate, evaluate, getArithmeticOperators, getFileHandles, getKnowledgeBase, getOperands, getPredicate, getPredicates, getProjogListeners, getSpyPoints, getTermFormatter, init, isRetryable, setKnowledgeBaseMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.projog.core.predicate.PredicateFactory
isAlwaysCutOnBacktrack
-
Constructor Details
-
Distinct
public Distinct()
-
-
Method Details
-
evaluate
- Overrides:
evaluatein classAbstractSingleResultPredicate
-
getOrCreateVariables
-
createConstraints
-