long earliestStart = findEarliestTime(allocation.toIntervalMap()); if (jobArrival < earliestStart) { allocation.addInterval( long latestEnd = findLatestTime(allocation.toIntervalMap()); if (latestEnd < jobDeadline) { allocation.addInterval(new ReservationInterval(latestEnd, jobDeadline), return allocation.toIntervalMap();
allocationRequests.toIntervalMap();
mapAllocations = rleSparseVector.toIntervalMap(); Assert.assertTrue(mapAllocations.isEmpty()); rleSparseVector.addInterval(ip.getKey(), ip.getValue()); mapAllocations = rleSparseVector.toIntervalMap(); Assert.assertTrue(mapAllocations.size() == 5); for (Entry<ReservationInterval, Resource> entry : mapAllocations