blocking accep[ted assignment deletions

This commit is contained in:
Filip Izydorczyk
2021-01-14 16:13:09 +01:00
parent 28e872ce3a
commit 8d007c259f
2 changed files with 38 additions and 2 deletions

View File

@ -38,6 +38,15 @@ public class Assignment {
this.group = group;
}
/**
*
* @param oldAssignment old assignment that we want to move to new commision
* @param newCommision commsion to move assiongment
*/
public static Assignment getNewFromAssignment(Assignment oldAssignment, Commision newCommision) {
return new Assignment(oldAssignment.getGroup(), newCommision);
}
/**
* If it returns trues it mesans u are assigned to group accepted by algorythm
*
@ -49,9 +58,10 @@ public class Assignment {
/**
* Getter of commision
*
* @return Commision Commision of given assignments
*/
public Commision getCommision(){
public Commision getCommision() {
return this.commision;
}
@ -69,8 +79,9 @@ public class Assignment {
}
public void setCommision(Commision commision) {
this.commision = commision;
this.commision = commision;
}
/**
* Id getter
*