ItEr27S06CUAsignacionGrupoRecursosAPlanificacionItEr26S07: Task uses now AggregateOfResourceAllocations to compute the assigned hours

This commit is contained in:
Óscar González Fernández 2009-09-22 19:49:44 +02:00
parent 58e86c4680
commit d419ddcb1f

View file

@ -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