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

Package class diagram package TLProperty
java.lang.Object
  extended by cz.cuni.amis.nb.pogamut.unreal.timeline.records.TLProperty<T>
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
TLLocation, TLRotation, TLVelocity

public class TLProperty<T>
extends Object
implements Serializable

This class stores value of some named property along with timestamps and allows easy retrieval.

Author:
Honza
See Also:
Serialized Form

Nested Class Summary
static class TLProperty.Record<T>
           
 
Constructor Summary
TLProperty(String name, Class propertyType)
          Create a new named proprty that will store values of type propertyType.
 
Method Summary
 void addValue(Object value, long timestamp)
           
protected  TLProperty.Record getLast()
           
 String getName()
          Get name of property.
 Class getType()
           
 Object getValue()
           
 T getValue(long time)
          Get latest value of property that is stored before time.
 List<TLProperty.Record> getValues()
           
 void printDebug()
           
 void setValue(Object arg0)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TLProperty

public TLProperty(String name,
                  Class propertyType)
Create a new named proprty that will store values of type propertyType.

Method Detail

getValue

public Object getValue()

getValue

public T getValue(long time)
Get latest value of property that is stored before time.

Parameters:
time -
Returns:

setValue

public void setValue(Object arg0)

getType

public Class getType()

addValue

public void addValue(Object value,
                     long timestamp)

getValues

public List<TLProperty.Record> getValues()

getLast

protected TLProperty.Record getLast()

getName

public String getName()
Get name of property.

Returns:
non-null string

printDebug

public void printDebug()


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