public class TimeEvent extends Object implements Comparable<TimeEvent>
A basis for time-based queries results over a start/end datetime with a duration
.Modifier and Type | Field and Description |
---|---|
protected long |
dur |
protected long |
endTime |
protected double |
priority |
protected long |
startTime |
Constructor and Description |
---|
TimeEvent(long startTime,
long endTime) |
TimeEvent(long startTime,
long endTime,
double priority) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(TimeEvent te) |
boolean |
equals(Object obj) |
long |
getDuration() |
long |
getEndTime() |
double |
getPriority() |
long |
getStartTime() |
static List<? extends TimeEvent> |
getTimeOrderedEvents(List<? extends TimeEvent> events) |
static boolean |
happenAtSameTime(TimeEvent te1,
TimeEvent te2) |
void |
setPriority(double priority) |
String |
toString() |
protected long startTime
protected long endTime
protected long dur
protected double priority
public TimeEvent(long startTime, long endTime)
public TimeEvent(long startTime, long endTime, double priority)
public void setPriority(double priority)
public double getPriority()
public long getStartTime()
public long getEndTime()
public long getDuration()
public int compareTo(TimeEvent te)
compareTo
in interface Comparable<TimeEvent>
Copyright © 1999-2015 Apache OODT. All Rights Reserved.