blocking accep[ted assignment deletions
This commit is contained in:
@ -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
|
||||
*
|
||||
|
Reference in New Issue
Block a user