Fix bug when allocating an unscheduled queue element, do it like if it were like an unscheduled element in the list on unscheduled queue elements

If doing an appropriative allocation it's necessary to unscheduled
element to make room enough for a gap, later those elements should be
schedule back again like it were unscheduled elements coming from the
list of unscheduled queue elements.

It's not possile to make any guess about in which queue it make fit,
as this may change depending on the new gaps created.

FEA: ItEr66OTS08CorreccionsRecursosLimitantesItEr65OTS04
This commit is contained in:
Diego Pino Garcia 2010-12-27 13:44:06 +01:00
parent c7f51c0a72
commit 2809763f1a

View file

@ -1005,9 +1005,7 @@ public class LimitingResourceQueueModel implements ILimitingResourceQueueModel {
} while (gap != null);
for (LimitingResourceQueueElement each: unscheduledElements) {
gap = LimitingResourceAllocator.getFirstValidGap(queue, each);
result.addAll(assignLimitingResourceQueueElementToQueueAt(each, queue, gap
.getStartTime(), getEndsAfterBecauseOfGantt(element)));
assignLimitingResourceQueueElement(each);
}
return result;