public abstract class TLEntity extends Object implements Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
TLEntity.Adapter |
static interface |
TLEntity.Listener |
static class |
TLEntity.State |
| Modifier and Type | Field and Description |
|---|---|
protected TLDatabase |
database
Reference to the database that contains this entity
|
protected TLFolder |
storageFolder |
| Modifier | Constructor and Description |
|---|---|
protected |
TLEntity(TLDatabase database,
long timestamp)
Create a new timeline entity belonging to db first seen at timestamp
|
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(TLEntity.Listener listener) |
void |
addLogRecording(Logger logger)
Adds TLLogRecorder = this TLEntity will store all log messages that will
come from the log.
|
void |
finish()
Finsih this entity, after calling this method, new data are not expected to appear.
|
Color |
getColor() |
TLDatabase |
getDatabase() |
abstract String |
getDisplayName() |
protected Double |
getDoublePropertyValue(TLFolder folder,
String propName,
long time)
Get property with name
propName in folder folder. |
long |
getEndTime() |
TLFolder |
getFolder() |
protected TLEntity.Listener[] |
getListeners()
Get all listeners in array
|
abstract cz.cuni.amis.pogamut.base3d.worldview.object.Location |
getLocation(long time) |
Set<TLLogRecorder> |
getLogRecorders()
Get unmodifiable set of all log recorders this entity has.
|
abstract cz.cuni.amis.pogamut.base3d.worldview.object.Rotation |
getRotation(long time) |
long |
getStartTime() |
TLEntity.State |
getState() |
abstract cz.cuni.amis.pogamut.base3d.worldview.object.Velocity |
getVelocity(long time) |
void |
printInfo(PrintStream stream) |
void |
removeListener(TLEntity.Listener listener) |
protected void |
setColor(Color color) |
protected void |
setEndTime(long newEnd)
Set new timestamp indicating when was last seen some info from the entity.
|
protected TLDatabase database
protected TLFolder storageFolder
protected TLEntity(TLDatabase database, long timestamp)
database - db this entity belongs totimestamp - Starting timestamp of entityprotected TLEntity.Listener[] getListeners()
public void addListener(TLEntity.Listener listener)
public void removeListener(TLEntity.Listener listener)
public long getStartTime()
public long getEndTime()
protected void setEndTime(long newEnd)
newEnd - public void finish()
public TLDatabase getDatabase()
public abstract String getDisplayName()
public void addLogRecording(Logger logger)
public Set<TLLogRecorder> getLogRecorders()
public TLEntity.State getState()
protected Double getDoublePropertyValue(TLFolder folder, String propName, long time) throws NoSuchFieldException, DataFormatException
propName in folder folder.folder - folder we are looking in.propName - Name of propertyNoSuchFieldException - property is not in the folderDataFormatException - If property is not double of value is not specifiedprotected void setColor(Color color)
public Color getColor()
public abstract cz.cuni.amis.pogamut.base3d.worldview.object.Location getLocation(long time)
public abstract cz.cuni.amis.pogamut.base3d.worldview.object.Rotation getRotation(long time)
public abstract cz.cuni.amis.pogamut.base3d.worldview.object.Velocity getVelocity(long time)
public TLFolder getFolder()
public void printInfo(PrintStream stream)
Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.