I was looking at the DefaultScorer to understand how it works, and I saw this function and wonder if we shouldn’t return timeWindow :
private TimeWindow getLargestTimeWindow(Activity act) {
TimeWindow timeWindow = null;
for (TimeWindow tw : act.getTimeWindows()) {
if (timeWindow == null) timeWindow = tw;
else if (tw.larger(timeWindow)) timeWindow = tw;
}
return TimeWindow.newInstance(0, Double.MAX_VALUE);
}
Thanks