ItEr44S16CUAsignacionRecursosEspecificosAPlanificacionItEr37S10: Adding new type for interpolated function

This commit is contained in:
Óscar González Fernández 2010-01-25 00:04:17 +01:00
parent 4ed7fd1345
commit d804a71142

View file

@ -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