org.apache.oodt.cas.filemgr.structs.query.filter
Class TimeEvent
java.lang.Object
org.apache.oodt.cas.filemgr.structs.query.filter.TimeEvent
- All Implemented Interfaces:
- Comparable<TimeEvent>
- Direct Known Subclasses:
- ObjectTimeEvent
public class TimeEvent
- extends Object
- implements Comparable<TimeEvent>
- Version:
- $Revision: 13181 $
A basis for time-based queries results over a start/end datetime with
a duration
.
- Author:
- bfoster
Constructor Summary |
TimeEvent(long startTime,
long endTime)
|
TimeEvent(long startTime,
long endTime,
double priority)
|
startTime
protected long startTime
endTime
protected long endTime
dur
protected long dur
priority
protected double priority
TimeEvent
public TimeEvent(long startTime,
long endTime)
TimeEvent
public TimeEvent(long startTime,
long endTime,
double priority)
setPriority
public void setPriority(double priority)
getPriority
public double getPriority()
getStartTime
public long getStartTime()
getEndTime
public long getEndTime()
getDuration
public long getDuration()
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
toString
public String toString()
- Overrides:
toString
in class Object
happenAtSameTime
public static boolean happenAtSameTime(TimeEvent te1,
TimeEvent te2)
compareTo
public int compareTo(TimeEvent te)
- Specified by:
compareTo
in interface Comparable<TimeEvent>
Copyright © 1999-2011 Apache OODT. All Rights Reserved.