viper.api.time
Class TimeEncodedIntegerVector
java.lang.Object
viper.api.time.TimeEncodedList
viper.api.time.TimeEncodedIntegerVector
- All Implemented Interfaces:
- java.lang.Cloneable, IntervalIndexList, java.io.Serializable, TemporalRange
- public class TimeEncodedIntegerVector
- extends TimeEncodedList
A list of integers encoded by time.
- See Also:
- Serialized Form
Method Summary |
void |
plus(TemporalRange o)
Adds the given values to the current vector.
|
void |
set(java.lang.Comparable start,
java.lang.Comparable end,
int i)
Sets the given span to take on the given integer value. |
Methods inherited from class viper.api.time.TimeEncodedList |
addAll, clear, clone, contains, crop, endOf, equals, firstAfter, firstAfterOrAt, firstBefore, get, get, getContiguousIntervalCount, getExtrema, hashCode, intersects, isEmpty, isFrameBased, isTimeBased, iterator, iterator, map, remove, set, set, shift, subList, toString |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
TimeEncodedIntegerVector
public TimeEncodedIntegerVector()
- Constructs an empty set of integers.
set
public void set(java.lang.Comparable start,
java.lang.Comparable end,
int i)
- Sets the given span to take on the given integer value.
- Parameters:
start
- the start of the span, inclusiveend
- the end of the span, exclusivei
- the value for the interval- See Also:
set(Comparable, Comparable, int)
plus
public void plus(TemporalRange o)
- Adds the given values to the current vector.
Regions with no integer are assumed to have the
value zero.
- Parameters:
o
- the numbers to add