No need to make it abstract
It can be implemented directly in UntilFillingHoursAllocator. FEA: ItEr71S07FragmentationDeletionItEr70S09
This commit is contained in:
parent
7a00bd09e5
commit
6e3bc7bea1
2 changed files with 6 additions and 11 deletions
|
|
@ -312,13 +312,6 @@ public abstract class ResourceAllocation<T extends DayAssignment> extends
|
|||
direction,
|
||||
task, allocations) {
|
||||
|
||||
@Override
|
||||
protected List<DayAssignment> createAssignmentsAtDay(
|
||||
ResourcesPerDayModification allocation, PartialDay day,
|
||||
EffortDuration limit) {
|
||||
return allocation.createAssignmentsAtDay(day, limit);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected <T extends DayAssignment> void setNewDataForAllocation(
|
||||
ResourceAllocation<T> allocation,
|
||||
|
|
|
|||
|
|
@ -233,10 +233,6 @@ public abstract class UntilFillingHoursAllocator {
|
|||
ResourceAllocation<T> allocation, IntraDayDate resultDate,
|
||||
ResourcesPerDay resourcesPerDay, List<T> dayAssignments);
|
||||
|
||||
protected abstract List<DayAssignment> createAssignmentsAtDay(
|
||||
ResourcesPerDayModification allocation, PartialDay day,
|
||||
EffortDuration limit);
|
||||
|
||||
protected abstract CapacityResult thereAreAvailableHoursFrom(
|
||||
IntraDayDate dateFromWhichToAllocate,
|
||||
ResourcesPerDayModification resourcesPerDayModification,
|
||||
|
|
@ -262,6 +258,12 @@ public abstract class UntilFillingHoursAllocator {
|
|||
getMaxAssignment(newAssignments));
|
||||
}
|
||||
|
||||
private List<DayAssignment> createAssignmentsAtDay(
|
||||
ResourcesPerDayModification allocation, PartialDay day,
|
||||
EffortDuration limit) {
|
||||
return allocation.createAssignmentsAtDay(day, limit);
|
||||
}
|
||||
|
||||
private EffortDuration getMaxAssignment(List<DayAssignment> newAssignments) {
|
||||
if (newAssignments.isEmpty()) {
|
||||
return zero();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue