EffortDuration totalLoad = EffortDuration.zero(), totalOverload = EffortDuration
.zero(), totalCapacity = EffortDuration.zero();
for (Map.Entry<LocalDate, EffortDuration> each : getAllEffortPerDateFor(
scenario, startDate, endDate, resource).entrySet()) {
totalLoad = totalLoad.plus(each.getValue());
totalOverload = addOverload(totalOverload, resource,
each.getValue(), each.getKey());
}
totalCapacity = calculateTotalCapacity(resource, startDate, endDate);