Fixed time interval aligning
This commit is contained in:
parent
c37b03e969
commit
41ead0c81c
|
@ -151,7 +151,12 @@ public class TemporalConstraint {
|
||||||
}
|
}
|
||||||
|
|
||||||
public Calendar getAlignedEndTime(){
|
public Calendar getAlignedEndTime(){
|
||||||
return getAlignedCalendar(endTime, aggregationMode);
|
Calendar calendar = getAlignedCalendar(endTime, aggregationMode);
|
||||||
|
int ordinal = aggregationMode.ordinal();
|
||||||
|
int calendarToAdd = CalendarEnum.values()[ordinal].getCalendarValue();
|
||||||
|
calendar.add(calendarToAdd, 1);
|
||||||
|
calendar.add(Calendar.MILLISECOND, -1);
|
||||||
|
return calendar;
|
||||||
}
|
}
|
||||||
|
|
||||||
public SortedSet<Calendar> getCalendarSequence(){
|
public SortedSet<Calendar> getCalendarSequence(){
|
||||||
|
|
Loading…
Reference in New Issue