|
||||||||||
| 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 ArrayList |
iTabu
|
protected int |
iTabuPos
|
protected int |
iTabuSize
|
| Constructor Summary | |
|---|---|
EnrollmentSelection()
|
|
EnrollmentSelection(DataProperties properties)
Constructor |
|
| Method Summary | |
|---|---|
void |
init(Solver solver)
Initialization |
boolean |
isAllowed(Value value)
true, if it is allowed to assign given value |
boolean |
isAllowed(Value value,
Collection conflicts)
true, if it is allowed to assign given value |
Value |
selectValue(Solution solution,
Variable selectedVariable)
Value selecion |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected int iTabuSize
protected ArrayList iTabu
protected int iTabuPos
| Constructor Detail |
|---|
public EnrollmentSelection()
public EnrollmentSelection(DataProperties properties)
properties - input configuration| Method Detail |
|---|
public void init(Solver solver)
init in interface ValueSelectionpublic boolean isAllowed(Value value)
public boolean isAllowed(Value value,
Collection conflicts)
public Value selectValue(Solution solution,
Variable selectedVariable)
selectValue in interface ValueSelectionsolution - current solutionselectedVariable - selected variable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||