Rename classes

The new names reflect better their meaning, since they don't are an
allocation, they do the allocation.

FEA: ItEr62OTS04PlanificacionHaciaAtras
This commit is contained in:
Óscar González Fernández 2010-11-03 17:02:45 +01:00
parent 197e4cfae0
commit ed34c999b8
3 changed files with 10 additions and 10 deletions

View file

@ -225,7 +225,7 @@ public class GenericResourceAllocation extends
}
}
private class GenericAllocation extends AssignmentsAllocation {
private class GenericAllocation extends AssignmentsAllocator {
private EffortDistributor hoursDistributor;
private final List<Resource> resources;

View file

@ -509,7 +509,7 @@ public abstract class ResourceAllocation<T extends DayAssignment> extends
public abstract IAllocatable withPreviousAssociatedResources();
protected abstract class AssignmentsAllocation implements IAllocatable {
protected abstract class AssignmentsAllocator implements IAllocatable {
@Override
public final void allocate(ResourcesPerDay resourcesPerDay) {

View file

@ -157,33 +157,33 @@ public class SpecificResourceAllocation extends
public void allocate(ResourcesPerDay resourcesPerDay) {
Validate.notNull(resourcesPerDay);
Validate.notNull(resource);
new SpecificAssignmentsAllocation().allocate(resourcesPerDay);
new SpecificAssignmentsAllocator().allocate(resourcesPerDay);
}
@Override
public IAllocateResourcesPerDay resourcesPerDayUntil(LocalDate endExclusive) {
return new SpecificAssignmentsAllocation()
return new SpecificAssignmentsAllocator()
.resourcesPerDayUntil(endExclusive);
}
@Override
public IAllocateResourcesPerDay resourcesPerDayFromEndUntil(LocalDate start) {
SpecificAssignmentsAllocation allocator = new SpecificAssignmentsAllocation();
SpecificAssignmentsAllocator allocator = new SpecificAssignmentsAllocator();
return allocator.resourcesPerDayFromEndUntil(start);
}
@Override
public IAllocateHoursOnInterval fromStartUntil(LocalDate endExclusive) {
return new SpecificAssignmentsAllocation().fromStartUntil(endExclusive);
return new SpecificAssignmentsAllocator().fromStartUntil(endExclusive);
}
@Override
public IAllocateHoursOnInterval fromEndUntil(LocalDate start) {
return new SpecificAssignmentsAllocation().fromEndUntil(start);
return new SpecificAssignmentsAllocator().fromEndUntil(start);
}
private final class SpecificAssignmentsAllocation extends
AssignmentsAllocation {
private final class SpecificAssignmentsAllocator extends
AssignmentsAllocator {
@Override
protected List<SpecificDayAssignment> distributeForDay(LocalDate day,
@ -200,7 +200,7 @@ public class SpecificResourceAllocation extends
@Override
public IAllocateHoursOnInterval onInterval(LocalDate start, LocalDate end) {
return new SpecificAssignmentsAllocation().onInterval(start, end);
return new SpecificAssignmentsAllocator().onInterval(start, end);
}
@Override