public class TLDatabase extends Object implements Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
TLDatabase.Adapter
Adapter for
TLDatabase.TLDatabaseListener. |
static interface |
TLDatabase.TLDatabaseListener |
| Constructor and Description |
|---|
TLDatabase() |
| Modifier and Type | Method and Description |
|---|---|
void |
addDBListener(TLDatabase.TLDatabaseListener listener) |
protected void |
emitEntityLeft(TLEntity entity) |
TLEntity |
entityEntered(TLEntity entity)
When entity enters, add it to list of watched entities and notify
all listeners that we have new entity in database.
|
long |
getCurrentTime() |
long |
getDeltaTime()
Get time interval between start of recording and current time
If recording hasn't started, return 0
|
long |
getElapsedTime()
Get time interval between start of recording and end of recording.
|
long |
getEndTime() |
List<TLEntity> |
getEntities() |
Set<TLEntity> |
getEntities(long time)
Get entities that are/were present at the specified time.
|
cz.cuni.amis.pogamut.unreal.communication.worldview.map.IUnrealMap |
getMap() |
long |
getStartTime() |
void |
printInfo(PrintStream stream)
Print info about database and all entities into specified stream.
|
void |
removeDBListener(TLDatabase.TLDatabaseListener listener) |
void |
setCurrentTime(long currentTime)
Change current time and notify all listeners
|
void |
setMap(cz.cuni.amis.pogamut.unreal.communication.worldview.map.IUnrealMap map) |
void |
startRecording()
Start recording info from the environment.
|
void |
stopRecording()
Stop recording.
|
public long getStartTime()
public long getCurrentTime()
public long getEndTime()
public long getElapsedTime()
public long getDeltaTime()
public TLEntity entityEntered(TLEntity entity)
entity - protected void emitEntityLeft(TLEntity entity)
public void addDBListener(TLDatabase.TLDatabaseListener listener)
public void removeDBListener(TLDatabase.TLDatabaseListener listener)
public void startRecording()
public void stopRecording()
public void setCurrentTime(long currentTime)
currentTime - public Set<TLEntity> getEntities(long time)
newCurrent - public void printInfo(PrintStream stream)
stream - stream where to print info.public cz.cuni.amis.pogamut.unreal.communication.worldview.map.IUnrealMap getMap()
public void setMap(cz.cuni.amis.pogamut.unreal.communication.worldview.map.IUnrealMap map)
Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.