Package org.libreplan.business.workingday

Examples of org.libreplan.business.workingday.EffortDuration.divideBy()


        EffortDuration result = EffortDuration.zero();
        for (ResourceAllocation<?> each : allocationsOnInterval) {
            ICalendar allocationCalendar = each.getAllocationCalendar();
            result = result.plus(allocationCalendar.getCapacityOn(day));
        }
        return result.divideBy(allocationsOnInterval.size());
    }

    protected abstract EffortDuration getTotalAvailableEffort();

    private int calculateLoadPercentage(EffortDuration totalEffort,
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.