/*
 * This file is part of NavalPlan
 *
 * Copyright (C) 2009-2010 Fundación para o Fomento da Calidade Industrial e
 *                         Desenvolvemento Tecnolóxico de Galicia
 * Copyright (C) 2010-2011 Igalia, S.L.
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

package org.navalplanner.business.planner.entities;

import org.joda.time.LocalDate;

/**
 * This interface represents an object on which an allocation can be done
 * @author Óscar González Fernández <ogonzalez@igalia.com>
 */
public interface IAllocatable extends IAllocateResourcesPerDay {

    public IAllocateResourcesPerDay resourcesPerDayUntil(LocalDate endExclusive);

    public IAllocateResourcesPerDay resourcesPerDayFromEndUntil(LocalDate start);

    public IAllocateHoursOnInterval onInterval(LocalDate start, LocalDate end);

    public IAllocateHoursOnInterval fromStartUntil(LocalDate endExclusive);

    public IAllocateHoursOnInterval fromEndUntil(LocalDate start);

}
@@ -1346,24 +1346,631 @@
 te start);%0A%0A
+    /**%0A     * %3Cp%3E%0A     * It does the allocation in the intersection of the underlying task's%0A     * bounds and the interval specified. This ensures it can't modify the start%0A     * and end of the task. The start and end of the allocation can grow, but%0A     * they can't be shrunk.%0A     * %3C/p%3E%0A     * %3Cp%3E%0A     * Putting it in another way: This method can't be used to expand an%0A     * allocation beyond the task's bounds.%0A     * %3C/p%3E%0A     *%0A     * @param startInclusive%0A     * @param endExclusive%0A     * @return an object which can be used to allocate hours on the interval%0A     *         specified%0A     */%0A
     public I
@@ -2019,17 +2019,38 @@
 te start
-,
+Inclusive,%0A           
  LocalDa
@@ -2055,16 +2055,25 @@
 Date end
+Exclusive
 );%0A%0A    

Add documentation for method