|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.cpsolver.ifs.model.Constraint<Request,Enrollment>
net.sf.cpsolver.studentsct.constraint.LinkedSections.LinkedSectionsConstraint
public class LinkedSections.LinkedSectionsConstraint
Linked sections constraint -- to be created for each student that requests two or more offerings of this link
| Field Summary |
|---|
| Fields inherited from class net.sf.cpsolver.ifs.model.Constraint |
|---|
iAssignedVariables, iConstraintListeners, iId |
| Constructor Summary | |
|---|---|
protected |
LinkedSections.LinkedSectionsConstraint(Student student,
Collection<Request> requests)
Constructor |
| Method Summary | |
|---|---|
void |
computeConflicts(Enrollment value,
Set<Enrollment> conflicts)
Compute conflicts using LinkedSections.computeConflicts(Enrollment, ConflictHandler) |
LinkedSections |
getLinkedSections()
Return linked section |
Student |
getStudent()
Return student |
boolean |
inConflict(Enrollment value)
Check for conflict using LinkedSections.inConflict(Enrollment) |
boolean |
isConsistent(Enrollment enrollment,
Enrollment other)
Check consistency using LinkedSections.inConflict(Enrollment, Assignment) |
String |
toString()
|
| Methods inherited from class net.sf.cpsolver.ifs.model.Constraint |
|---|
addConstraintListener, addVariable, assigned, assignedVariables, compareTo, constraintListeners, countAssignedVariables, countVariables, equals, getDescription, getId, getModel, getName, hashCode, isHard, removeConstraintListener, removeVariable, setModel, unassigned, variables |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected LinkedSections.LinkedSectionsConstraint(Student student,
Collection<Request> requests)
student - a studentrequests - sub-set of student requests Student.getRequests() that contains offerings of this link| Method Detail |
|---|
public Student getStudent()
public LinkedSections getLinkedSections()
public void computeConflicts(Enrollment value,
Set<Enrollment> conflicts)
LinkedSections.computeConflicts(Enrollment, ConflictHandler)
computeConflicts in class Constraint<Request,Enrollment>value - value to be assigned to its varaibleconflicts - resultant set of conflicting values
public boolean isConsistent(Enrollment enrollment,
Enrollment other)
LinkedSections.inConflict(Enrollment, Assignment)
isConsistent in class Constraint<Request,Enrollment>public boolean inConflict(Enrollment value)
LinkedSections.inConflict(Enrollment)
inConflict in class Constraint<Request,Enrollment>public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||