org.apache.oodt.cas.filemgr.structs.query.filter
Class TimeEvent

java.lang.Object
  extended by 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: 9683 $

A basis for time-based queries results over a start/end datetime with a duration

.
Author:
bfoster

Field Summary
protected  long dur
           
protected  long endTime
           
protected  double priority
           
protected  long startTime
           
 
Constructor Summary
TimeEvent(long startTime, long endTime)
           
TimeEvent(long startTime, long endTime, double priority)
           
 
Method Summary
 int compareTo(TimeEvent te)
           
 boolean equals(Object obj)
           
 long getDuration()
           
 long getEndTime()
           
 double getPriority()
           
 long getStartTime()
           
static boolean happenAtSameTime(TimeEvent te1, TimeEvent te2)
           
 void setPriority(double priority)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

startTime

protected long startTime

endTime

protected long endTime

dur

protected long dur

priority

protected double priority
Constructor Detail

TimeEvent

public TimeEvent(long startTime,
                 long endTime)

TimeEvent

public TimeEvent(long startTime,
                 long endTime,
                 double priority)
Method Detail

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.