public class TemporalConstraint extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
TemporalConstraint.AggregationMode
Valid Aggregation Mode
|
static class |
TemporalConstraint.CalendarEnum
Used to map the Calendar constant to an enum value which has the same
ordinal of
TemporalConstraint.AggregationMode |
| Modifier and Type | Field and Description |
|---|---|
protected TemporalConstraint.AggregationMode |
aggregationMode |
static TimeZone |
DEFAULT_TIME_ZONE |
protected long |
endTime |
protected long |
startTime |
| Constructor and Description |
|---|
TemporalConstraint(long startTime,
long endTime,
TemporalConstraint.AggregationMode aggregationMode) |
| Modifier and Type | Method and Description |
|---|---|
TemporalConstraint.AggregationMode |
getAggregationMode() |
static Calendar |
getAlignedCalendar(long millis,
TemporalConstraint.AggregationMode aggregationMode) |
Calendar |
getAlignedEndTime() |
Calendar |
getAlignedStartTime() |
SortedSet<Calendar> |
getCalendarSequence() |
long |
getEndTime() |
static List<String> |
getSequenceAsStringList(Collection<Calendar> sequence) |
long |
getStartTime() |
void |
setAggregationMode(TemporalConstraint.AggregationMode aggregationMode) |
void |
setEndTime(long endTime) |
void |
setStartTime(long startTime) |
static String |
timeInMillisToString(long timeInMillis) |
String |
toString() |
public static final TimeZone DEFAULT_TIME_ZONE
protected long startTime
protected long endTime
protected TemporalConstraint.AggregationMode aggregationMode
public TemporalConstraint(long startTime,
long endTime,
TemporalConstraint.AggregationMode aggregationMode)
startTime - StartTimeendTime - End TimeaggregationMode - Aggregation Modepublic long getStartTime()
public void setStartTime(long startTime)
startTime - the startTime to setpublic long getEndTime()
public void setEndTime(long endTime)
endTime - the endTime to setpublic TemporalConstraint.AggregationMode getAggregationMode()
public void setAggregationMode(TemporalConstraint.AggregationMode aggregationMode)
aggregationMode - the aggregationMode to setpublic static String timeInMillisToString(long timeInMillis)
public static Calendar getAlignedCalendar(long millis, TemporalConstraint.AggregationMode aggregationMode)
public Calendar getAlignedStartTime()
public Calendar getAlignedEndTime()
public static List<String> getSequenceAsStringList(Collection<Calendar> sequence)
Copyright © 2016. All Rights Reserved.