public class EnrollmentSelection extends Object implements ValueSelection<Request,Enrollment>
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.Modifier and Type | Field and Description |
---|---|
protected List<Enrollment> |
iTabu |
protected int |
iTabuPos |
protected int |
iTabuSize |
Constructor and Description |
---|
EnrollmentSelection() |
EnrollmentSelection(DataProperties properties)
Constructor
|
Modifier and Type | Method and Description |
---|---|
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
|
protected int iTabuSize
protected List<Enrollment> iTabu
protected int iTabuPos
public EnrollmentSelection()
public EnrollmentSelection(DataProperties properties)
properties
- input configurationpublic 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