public class SuggestionsBranchAndBound.Suggestion extends Object implements Comparable<SuggestionsBranchAndBound.Suggestion>
Constructor and Description |
---|
Suggestion(ArrayList<Request> resolvedRequests)
Create suggestion
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(SuggestionsBranchAndBound.Suggestion suggestion) |
double |
getAverageUnassignedPriority()
Average unassigned priority
|
Enrollment[] |
getEnrollments()
Current assignment for the student
|
int |
getNrChanges()
Number of changes in this schedule (comparing to the original one)
|
int |
getNrUnassigned()
Number of unassigned requests
|
double |
getValue()
Current value
|
void |
init()
initialization
|
boolean |
sameSelectedSection()
Is the same section selected (as in the current assignment)
|
public Suggestion(ArrayList<Request> resolvedRequests)
resolvedRequests
- assigned requestspublic void init()
public Enrollment[] getEnrollments()
public double getValue()
public int getNrUnassigned()
public double getAverageUnassignedPriority()
public int getNrChanges()
public boolean sameSelectedSection()
public int compareTo(SuggestionsBranchAndBound.Suggestion suggestion)
compareTo
in interface Comparable<SuggestionsBranchAndBound.Suggestion>