aima.search.csp
Class Assignment
java.lang.Object
aima.search.csp.Assignment
public class Assignment
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Assignment
public Assignment()
Assignment
public Assignment(java.util.List<java.lang.String> variables)
setAssignment
public void setAssignment(java.lang.String variable,
java.lang.Object value)
getAssignment
public java.lang.Object getAssignment(java.lang.String variable)
isComplete
public boolean isComplete()
remove
public void remove(java.lang.String variable)
selectFirstUnassignedVariable
public java.lang.String selectFirstUnassignedVariable()
hasAssignmentFor
public boolean hasAssignmentFor(java.lang.String variable)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
copy
public Assignment copy()
getNumberOfConflictsFor
public int getNumberOfConflictsFor(java.lang.String conflictedVariable,
java.lang.Object value,
Constraint constraint)
getConflictedVariables
public java.util.List<java.lang.String> getConflictedVariables(Constraint constraint)
getMinimumConflictingValueFor
public java.lang.Object getMinimumConflictingValueFor(java.lang.String conflictedVariable,
java.util.List domain,
Constraint constraint)
satisfies
public boolean satisfies(Constraint constraint)
getVariables
public java.util.List<java.lang.String> getVariables()