Package org.libreplan.business.planner.entities

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


    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

Related Classes of org.libreplan.business.planner.entities.AggregateOfResourceAllocations

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.