Examples of AggregateOfResourceAllocations


Examples of org.libreplan.business.planner.entities.AggregateOfResourceAllocations

    @Test
    public void unsatisfiedAllocationsAreIgnored() {
        List<ResourceAllocation<?>> allocationsList = Collections
                .<ResourceAllocation<?>> singletonList(givenUnsatisfiedResourceAllocation());
        AggregateOfResourceAllocations aggregate = AggregateOfResourceAllocations.createFromSatisfied(allocationsList);
        assertTrue(aggregate.isEmpty());
    }
View Full Code Here

Examples of org.libreplan.business.planner.entities.AggregateOfResourceAllocations

    public static AllocationResult createCurrent(Scenario scenario, Task task) {
        Set<ResourceAllocation<?>> resourceAllocations = task
                .getSatisfiedResourceAllocations();
        List<ModifiedAllocation> modifiedAllocations = ModifiedAllocation.copy(
                scenario, resourceAllocations);
        AggregateOfResourceAllocations aggregate = AggregateOfResourceAllocations
                .createFromSatisfied(ModifiedAllocation
                        .modified(modifiedAllocations));
        return new AllocationResult(task, task.getSpecifiedWorkableDays(),
                task.getCalculatedValue(), aggregate,
                Collections.<ResourceAllocation<?>> emptyList(),
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.