|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectedu.umd.cfar.lamp.viper.util.Range
viper.api.time.InstantRange
A range of Instants - basically, a set of non-overlapping Intervals, or a set of Instant objects.
| Nested Class Summary |
| Nested classes inherited from class edu.umd.cfar.lamp.viper.util.IntervalIndexList |
IntervalIndexList.Change |
| Constructor Summary | |
InstantRange()
|
|
| Method Summary | |
boolean |
add(java.lang.Object o)
|
java.lang.Object |
clone()
|
Interval |
createInterval(java.lang.Comparable s,
java.lang.Comparable e)
Creates a new interval. This is used instead of a constructor, so subclasses of this range which wish to return subclasses of interval should override this method. |
void |
crop(InstantInterval validSpan)
Crops the range so that it is down to this size. |
Interval |
getExtrema()
Gets the Span that starts at the beginning of the first Span and ends at the end of the last Span. |
static boolean |
intersect(TemporalRange alpha,
TemporalRange beta)
Tests to see if the two ranges intersect somewhere. |
boolean |
intersects(TemporalRange other)
Test to see if this range intersects another. Implementations will likely assume that the two use compatable instant types. |
boolean |
isFrameBased()
Tests to see if the range uses Frame instants. |
boolean |
isTimeBased()
Tests to see if the range uses Time instants. |
static InstantRange |
parseFrameRange(java.lang.String val)
Parses a Range of Frames in the form of a white-space delimited sequence of Span tokens. |
static InstantRange |
parseTimeRange(java.lang.String val)
Parses a Range of Times in the form of a white-space delimited sequence of Span tokens. |
boolean |
remove(java.lang.Object o)
|
void |
shift(Instant amount)
Shifts the range by the given amount of time. |
boolean |
withinRangeInclusive(Instant s,
Instant e)
Checks to see if the span is inside the Range. |
| Methods inherited from class edu.umd.cfar.lamp.viper.util.Range |
add, addAll, addAll, addAll, clear, cloneInto, contains, containsAll, endOf, equals, firstAfter, firstAfterOrAt, firstBefore, get, getContiguousIntervalCount, hashCode, intersect, intersectComplement, intersects, intersects, intersects, isEmpty, iterator, iterator, map, remove, removeAll, retainAll, set, setSpans, size, subList, toArray, toArray, toString, union, withinRange, withinRange |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface viper.api.time.TemporalRange |
contains |
| Methods inherited from interface edu.umd.cfar.lamp.viper.util.IntervalIndexList |
addAll, clear, endOf, firstAfter, firstAfterOrAt, firstBefore, get, getContiguousIntervalCount, isEmpty, iterator, iterator, map, remove, set, subList |
| Constructor Detail |
public InstantRange()
| Method Detail |
public static InstantRange parseFrameRange(java.lang.String val)
val - white space delimited sequence of numbers
or two increasing numbers seperated by a colon.
public static InstantRange parseTimeRange(java.lang.String val)
val - white space delimited sequence of numbers
or two increasing numbers seperated by a colon.
public boolean withinRangeInclusive(Instant s,
Instant e)
s - The first Instant to check for.e - The last Instant to check.
true iff all Instants in [s,e] are in thispublic boolean add(java.lang.Object o)
add in interface java.util.Setadd in class RangeSet.add(java.lang.Object)public boolean remove(java.lang.Object o)
remove in interface java.util.Setremove in class RangeSet.remove(java.lang.Object)public Interval getExtrema()
getExtrema in interface TemporalRangegetExtrema in class Rangepublic boolean isFrameBased()
isFrameBased in interface TemporalRangepublic boolean isTimeBased()
isTimeBased in interface TemporalRange
public static boolean intersect(TemporalRange alpha,
TemporalRange beta)
alpha - a range to testbeta - another range
public boolean intersects(TemporalRange other)
intersects in interface TemporalRangeother - the range to check
public java.lang.Object clone()
clone in interface TemporalRangeclone in class RangeObject.clone()
public Interval createInterval(java.lang.Comparable s,
java.lang.Comparable e)
createInterval in class Ranges - e -
public void shift(Instant amount)
TemporalRange
shift in interface TemporalRangeamount - the number of frames to shiftpublic void crop(InstantInterval validSpan)
validSpan -
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||