Class Resolve
java.lang.Object
org.projog.core.predicate.AbstractPredicateFactory
org.projog.core.predicate.builtin.clp.Resolve
- All Implemented Interfaces:
KnowledgeBaseConsumer, PredicateFactory
label([X]) - assigns concrete values to the given CLP variables.-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate org.projog.clp.BruteForceSearchcreateBruteForceSearch(org.projog.clp.ClpConstraintStore.Builder builder, Map<ClpVariable, org.projog.clp.Variable> variables) private Set<ClpVariable> getAllVariables(Term arg) find all variables in input argument, and all variables connected to them via constraintsprivate Set<org.projog.clp.Constraint> getConstraints(Set<ClpVariable> variables) return all constraints of all of the given variablesgetPredicate(Term arg) private Set<ClpVariable> find all variables in the input argument - input argument could be a single variable or a list of variablesMethods inherited from class AbstractPredicateFactory
getArithmeticOperators, getFileHandles, getKnowledgeBase, getOperands, getPredicate, getPredicate, getPredicate, getPredicate, 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
-
Constructor Details
-
Resolve
public Resolve()
-
-
Method Details
-
getPredicate
- Overrides:
getPredicatein classAbstractPredicateFactory
-
getAllVariables
find all variables in input argument, and all variables connected to them via constraints -
getVariablesFromInputArgument
find all variables in the input argument - input argument could be a single variable or a list of variables -
getConstraints
return all constraints of all of the given variables -
createBruteForceSearch
private org.projog.clp.BruteForceSearch createBruteForceSearch(org.projog.clp.ClpConstraintStore.Builder builder, Map<ClpVariable, org.projog.clp.Variable> variables)
-