|
||||||||||
| 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.TLDatabase
public class TLDatabase
Structure containing all information about whole experiment and all agents inside.
| Nested Class Summary | |
|---|---|
static class |
TLDatabase.Adapter
Adapter for TLDatabase.TLDatabaseListener. |
static interface |
TLDatabase.TLDatabaseListener
|
| Constructor Summary | |
|---|---|
TLDatabase()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TLDatabase()
| Method Detail |
|---|
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 List<TLEntity> getEntities()
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)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||