Package org.libreplan.business.planner.entities.AssignedEffortForResource

Examples of org.libreplan.business.planner.entities.AssignedEffortForResource.WithTheLoadOf


                .originals(modifiedAllocations);
        IAssignedEffortForResource discounting = AssignedEffortForResource
                .effortDiscounting(originals);
        List<ResourceAllocation<?>> beingModified = ModifiedAllocation
                .modified(modifiedAllocations);
        WithTheLoadOf allNewLoad = AssignedEffortForResource
                .withTheLoadOf(beingModified);
        List<GenericResourceAllocation> generic = ResourceAllocation.getOfType(
                GenericResourceAllocation.class, beingModified);
        for (GenericResourceAllocation each : generic) {
            each.setAssignedEffortForResource(AssignedEffortForResource.sum(
                    allNewLoad.withoutConsidering(each), discounting));
        }
    }
View Full Code Here


        final IAssignedEffortForResource effortForResource = AssignedEffortForResource
                .effortDiscounting(allocationsToDiscount);
        List<ResourceAllocation<?>> beingModified = AllocationRow
                .getBeingModified(rows);
        final WithTheLoadOf withTheLoadOf = AssignedEffortForResource
                .withTheLoadOf(beingModified);

        for (GenericResourceAllocation each : ResourceAllocation.getOfType(GenericResourceAllocation.class, beingModified)) {
            IAssignedEffortForResource custom = AssignedEffortForResource.sum(
                    withTheLoadOf.withoutConsidering(each), effortForResource);
            each.setAssignedEffortForResource(custom);
        }
    }
View Full Code Here

TOP

Related Classes of org.libreplan.business.planner.entities.AssignedEffortForResource.WithTheLoadOf

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.