Examples of dividedByAndResultAsBigDecimal()


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

        EffortDuration totalTheoreticalCompletedTime = this.getTheoreticalCompletedTimeUntilDate(date);
        if (totalAllocatedTime.isZero() || totalTheoreticalCompletedTime.isZero()) {
            return BigDecimal.ZERO;
        }
        Validate.isTrue(totalTheoreticalCompletedTime.getSeconds() <= totalAllocatedTime.getSeconds());
        return totalTheoreticalCompletedTime.dividedByAndResultAsBigDecimal(totalAllocatedTime);
    }

    public abstract boolean isFinished();

    public abstract boolean isInProgress();
View Full Code Here

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

    @Override
    public BigDecimal getOvertimeRatio() {
        EffortDuration totalLoad = sumAll(resourceLoadCalculator.getAllLoad());
        EffortDuration overload = sumAll(resourceLoadCalculator
                .getAllOverload());
        return overload.dividedByAndResultAsBigDecimal(totalLoad).setScale(2,
                RoundingMode.HALF_UP);
    }

    private EffortDuration sumAll(
            ContiguousDaysLine<EffortDuration> contiguousDays) {
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.