|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.cpsolver.studentsct.heuristics.EnrollmentSelection
public class EnrollmentSelection
Enrollment selection criterion. It is similar to
GeneralValueSelection
, however, it is not allowed to assign a
enrollment to a dummy student Student.isDummy()
that is conflicting
with an enrollment of a real student.
Field Summary | |
---|---|
protected List<Enrollment> |
iTabu
|
protected int |
iTabuPos
|
protected int |
iTabuSize
|
Constructor Summary | |
---|---|
EnrollmentSelection()
|
|
EnrollmentSelection(DataProperties properties)
Constructor |
Method Summary | |
---|---|
void |
init(Solver<Request,Enrollment> solver)
Initialization |
boolean |
isAllowed(Enrollment value)
true, if it is allowed to assign given value |
boolean |
isAllowed(Enrollment value,
Set<Enrollment> conflicts)
true, if it is allowed to assign given value |
Enrollment |
selectValue(Solution<Request,Enrollment> solution,
Request selectedVariable)
Value selection |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected int iTabuSize
protected List<Enrollment> iTabu
protected int iTabuPos
Constructor Detail |
---|
public EnrollmentSelection()
public EnrollmentSelection(DataProperties properties)
properties
- input configurationMethod Detail |
---|
public void init(Solver<Request,Enrollment> solver)
init
in interface ValueSelection<Request,Enrollment>
public boolean isAllowed(Enrollment value)
public boolean isAllowed(Enrollment value, Set<Enrollment> conflicts)
public Enrollment selectValue(Solution<Request,Enrollment> solution, Request selectedVariable)
selectValue
in interface ValueSelection<Request,Enrollment>
solution
- current solutionselectedVariable
- selected variable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |