public interface LogReader
Modifier and Type | Method and Description |
---|---|
CommandsRecord |
getCommands(int time)
Get the agent commands at a particular timestep.
|
Config |
getConfig()
Get the configuration entry in the log file.
|
java.util.Set<EntityID> |
getEntitiesWithUpdates(int time)
Get the set of EntityIDs that have perception updates in a given timestep.
|
int |
getMaxTimestep()
Get the last timestep recorded in this log.
|
PerceptionRecord |
getPerception(int time,
EntityID entity)
Get the perception record for a particular entity at a particular time.
|
UpdatesRecord |
getUpdates(int time)
Get the simulator updates at a particular timestep.
|
WorldModel<? extends Entity> |
getWorldModel(int time)
Get the state of the world at a particular timestep.
|
Config getConfig() throws LogException
LogException
- If there is a problem reading the log.int getMaxTimestep() throws LogException
LogException
- If there is a problem reading the log.WorldModel<? extends Entity> getWorldModel(int time) throws LogException
time
- The timestep to look up. If this is zero then the world initial conditions will be returned.LogException
- If there is a problem reading the log.java.util.Set<EntityID> getEntitiesWithUpdates(int time) throws LogException
time
- The timestep to look up.LogException
- If there is a problem reading the log.PerceptionRecord getPerception(int time, EntityID entity) throws LogException
time
- The timestep to look up.entity
- The entity to look up.LogException
- If there is a problem reading the log.CommandsRecord getCommands(int time) throws LogException
time
- The timestep to look up.LogException
- If there is a problem reading the log.UpdatesRecord getUpdates(int time) throws LogException
time
- The timestep to look up.LogException
- If there is a problem reading the log.