viper.api.time
Class TimeEncodedIntegerVector

java.lang.Object
  extended byviper.api.time.TimeEncodedList
      extended byviper.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

Nested Class Summary
 
Nested classes inherited from class viper.api.time.TimeEncodedList
TimeEncodedList.DynamicAttributeValueImpl
 
Nested classes inherited from class edu.umd.cfar.lamp.viper.util.IntervalIndexList
IntervalIndexList.Change
 
Constructor Summary
TimeEncodedIntegerVector()
          Constructs an empty set of integers.
 
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
 

Constructor Detail

TimeEncodedIntegerVector

public TimeEncodedIntegerVector()
Constructs an empty set of integers.

Method Detail

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, inclusive
end - the end of the span, exclusive
i - 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