|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectcz.cuni.amis.nb.pogamut.unreal.timeline.records.TLEntity
public abstract class TLEntity
One entity is part of TLDatabase and it contains several TLRecord s that represent various data.
| Nested Class Summary | |
|---|---|
static class |
TLEntity.Adapter
|
static interface |
TLEntity.Listener
|
static class |
TLEntity.State
|
| Field Summary | |
|---|---|
protected TLDatabase |
database
Reference to the database that contains this entity |
protected TLFolder |
storageFolder
|
| Constructor Summary | |
|---|---|
protected |
TLEntity(TLDatabase database,
long timestamp)
Create a new timeline entity belonging to db first seen at timestamp |
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected TLDatabase database
protected TLFolder storageFolder
| Constructor Detail |
|---|
protected TLEntity(TLDatabase database,
long timestamp)
database - db this entity belongs totimestamp - Starting timestamp of entity| Method Detail |
|---|
protected 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 property
NoSuchFieldException - property is not in the folder
DataFormatException - 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)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||