cz.cuni.amis.nb.pogamut.unreal.timeline.records
Class TLProperty<T>
java.lang.Object
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
|
Constructor Summary |
TLProperty(String name,
Class propertyType)
Create a new named proprty that will store values of type propertyType. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TLProperty
public TLProperty(String name,
Class propertyType)
- Create a new named proprty that will store values of type propertyType.
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.