ItEr37S06ValidacionEProbasFuncionaisItEr36S07: Checking that assignment function exists
This commit is contained in:
parent
c2c58fa7c7
commit
65aa0b1fdb
1 changed files with 3 additions and 1 deletions
|
|
@ -452,7 +452,9 @@ public abstract class ResourceAllocation<T extends DayAssignment> extends
|
|||
|
||||
public void setAssignmentFunction(AssignmentFunction assignmentFunction) {
|
||||
this.assignmentFunction = assignmentFunction;
|
||||
this.assignmentFunction.applyTo(this);
|
||||
if (this.assignmentFunction != null) {
|
||||
this.assignmentFunction.applyTo(this);
|
||||
}
|
||||
}
|
||||
|
||||
public int getAssignedHours() {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue