Fixed the matching availability level to project idea level mismatch issue.
This commit is contained in:
parent
c509696290
commit
4537895ce3
src/main/java/se/su/dsv/scipro/match
@ -82,9 +82,10 @@ public class GreedyMatchingAlgorithm implements MatchingAlgorithm {
|
||||
continue;
|
||||
}
|
||||
|
||||
if(availability.getProjectClass().toString().equalsIgnoreCase(ProjectClass.BACHELOR) &&
|
||||
projectIdea.getProjectClass().toString().equalsIgnoreCase(ProjectClass.MASTER)) {
|
||||
logger.info("A bachelor supervisor cannot handle master ideas.");
|
||||
if(!availability.getProjectClass().toString().equals(
|
||||
projectIdea.getProjectClass().toString()) ) {
|
||||
//logger.info("A bachelor supervisor cannot handle master ideas.");
|
||||
logger.info("Supervisor availability level and project idea level aren't equal.");
|
||||
continue;
|
||||
}
|
||||
|
||||
|
@ -17,7 +17,7 @@ public class Availability implements Serializable {
|
||||
private Integer numCapable;
|
||||
private final Employee supervisor;
|
||||
|
||||
public Availability(final Employee supervisor,final Long numMatched,final Integer numCapable,final ProjectClass projectClass) {
|
||||
public Availability(final Employee supervisor, final Long numMatched, final Integer numCapable, final ProjectClass projectClass) {
|
||||
this.supervisor = supervisor;
|
||||
this.numMatched = numMatched;
|
||||
this.numCapable = numCapable;
|
||||
|
Loading…
x
Reference in New Issue
Block a user