cz.cuni.amis.nb.pogamut.unreal.timeline.records
Class TLRecord<T>

Package class diagram package TLRecord
java.lang.Object
  extended by cz.cuni.amis.nb.pogamut.unreal.timeline.records.TLRecord<T>

public class TLRecord<T>
extends Object

Record of one variable during time. Variable is stored in pairs (timestamp, value) and is changed only if two subsequent values are not equal to keep small memory footprint. T has to have a properly implemented equal() method because otherwise the record could row quite large.

Author:
Honza

Nested Class Summary
 class TLRecord.Record<T>
          fixme: lookat class overload and possibly try to
 
Method Summary
 TLRecord.Record addRecord(long timestamp, T value)
          Add value to the record.
 cz.cuni.amis.nb.pogamut.unreal.timeline.records.TLRecord.TLVarInfo getInfo()
           
protected  ArrayList<TLRecord.Record<T>> getRecords()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInfo

public cz.cuni.amis.nb.pogamut.unreal.timeline.records.TLRecord.TLVarInfo getInfo()

getRecords

protected ArrayList<TLRecord.Record<T>> getRecords()

addRecord

public TLRecord.Record addRecord(long timestamp,
                                 T value)
Add value to the record.

Parameters:
timestamp - Number of ms since 1970
value - Current value of recorded variable. Can't be null.


Copyright © 2013 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.