public class UnassignedRequestSelection extends Object implements VariableSelection<Request,Enrollment>
Modifier and Type | Field and Description |
---|---|
protected StudentFilter |
iFilter |
protected int |
iNrRounds |
protected Queue<Request> |
iRequests |
Constructor and Description |
---|
UnassignedRequestSelection() |
Modifier and Type | Method and Description |
---|---|
StudentFilter |
getFilter()
Only consider students meeting the given filter.
|
void |
init(Solver<Request,Enrollment> solver)
Initialization
|
protected Request |
nextRequest(Solution<Request,Enrollment> solution) |
Request |
selectVariable(Solution<Request,Enrollment> solution)
Variable selection
|
UnassignedRequestSelection |
withFilter(StudentFilter filter)
Only consider students meeting the given filter.
|
protected int iNrRounds
protected StudentFilter iFilter
public UnassignedRequestSelection()
public void init(Solver<Request,Enrollment> solver)
VariableSelection
init
in interface VariableSelection<Request,Enrollment>
solver
- current solverpublic Request selectVariable(Solution<Request,Enrollment> solution)
VariableSelection
selectVariable
in interface VariableSelection<Request,Enrollment>
solution
- current solutionprotected Request nextRequest(Solution<Request,Enrollment> solution)
public StudentFilter getFilter()
public UnassignedRequestSelection withFilter(StudentFilter filter)