private List<ResourcesPerDayModification> getUnsatisfied(
IntraDayDate dateFromWhichToAllocate,
List<EffortPerAllocation> hoursPerAllocations) {
List<ResourcesPerDayModification> cannotSatisfy = new ArrayList<ResourcesPerDayModification>();
for (EffortPerAllocation each : hoursPerAllocations) {
CapacityResult capacityResult = thereAreAvailableHoursFrom(
dateFromWhichToAllocate, each.allocation, each.duration);
if (!capacityResult.thereIsCapacityAvailable()) {
cannotSatisfy.add(each.allocation);
markUnsatisfied(each.allocation, capacityResult);
}
}
return cannotSatisfy;