ItEr44S16CUAsignacionRecursosEspecificosAPlanificacionItEr37S10: Adding new type for interpolated function
This commit is contained in:
parent
4ed7fd1345
commit
d804a71142
1 changed files with 12 additions and 0 deletions
|
|
@ -50,8 +50,20 @@ public class StretchesFunction extends AssignmentFunction {
|
|||
startInclusive, endExclusive, totalHours);
|
||||
|
||||
}
|
||||
},
|
||||
INTERPOLATED {
|
||||
@Override
|
||||
public void apply(ResourceAllocation<?> allocation,
|
||||
List<Interval> intervalsDefinedByStreches,
|
||||
LocalDate startInclusive, LocalDate endExclusive,
|
||||
int totalHours) {
|
||||
// by now doing the same than default
|
||||
DEFAULT.apply(allocation, intervalsDefinedByStreches,
|
||||
startInclusive, endExclusive, totalHours);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
public void applyTo(ResourceAllocation<?> resourceAllocation,
|
||||
StretchesFunction stretchesFunction) {
|
||||
List<Interval> intervalsDefinedByStreches = stretchesFunction
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue