ItEr27S06CUAsignacionGrupoRecursosAPlanificacionItEr26S07: Task uses now AggregateOfResourceAllocations to compute the assigned hours
This commit is contained in:
parent
58e86c4680
commit
d419ddcb1f
1 changed files with 2 additions and 5 deletions
|
|
@ -58,11 +58,8 @@ public class Task extends TaskElement {
|
|||
}
|
||||
|
||||
public int getAssignedHours() {
|
||||
int result = 0;
|
||||
for (ResourceAllocation<?> resourceAllocation : resourceAllocations) {
|
||||
result += resourceAllocation.getAssignedHours();
|
||||
}
|
||||
return result;
|
||||
return new AggregateOfResourceAllocations(resourceAllocations)
|
||||
.getTotalHours();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue