Package org.libreplan.business.planner.limiting.entities

Examples of org.libreplan.business.planner.limiting.entities.Gap$GapOnQueueWithQueueElement


        for (LimitingResourceQueueElement each : queue
                .getLimitingResourceQueueElements()) {
            DateAndHour startTime = each.getStartTime();
            if (!startTime.isBefore(allocationTime)) {
                if (previousEnd == null || startTime.isAfter(previousEnd)) {
                    Gap gap = Gap.create(queue.getResource(), previousEnd,
                            startTime);
                    result.add(GapOnQueueWithQueueElement.create(
                            gap.onQueue(queue), each));
                }
            }
            previousEnd = each.getEndTime();
        }
        Gap gap = Gap.create(queue.getResource(), previousEnd, null);
        result.add(GapOnQueueWithQueueElement.create(gap.onQueue(queue), null));
        return result;
    }
View Full Code Here


            limitingResourcesPanel.refreshQueue(each);
        }
    }

    private DateAndHour getSelectedAllocationTime() {
        final Gap selectedGap = getSelectedGap();
        int index = radioAllocationDate.getSelectedIndex();

        // Earliest date
        if (index == 0) {
            return getEarliestTime(selectedGap);
View Full Code Here

    private static class CandidateGapRenderer implements ListitemRenderer {

        @Override
        public void render(Listitem item, Object data) {
            Gap gap = (Gap) data;

            item.setValue(gap);
            item.appendChild(cell(gap.getStartTime()));
            item.appendChild(cell(gap.getEndTime()));
        }
View Full Code Here

TOP

Related Classes of org.libreplan.business.planner.limiting.entities.Gap$GapOnQueueWithQueueElement

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.