public class StreamLogReader extends AbstractLogReader
registry| Constructor and Description |
|---|
StreamLogReader(java.io.InputStream in,
Registry registry)
Construct a StreamLogReader.
|
| 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.
|
public StreamLogReader(java.io.InputStream in,
Registry registry)
throws LogException
in - The InputStream to read.registry - The registry to use for reading log entries.LogException - If there is a problem reading the log.public Config getConfig() throws LogException
LogReaderLogException - If there is a problem reading the log.public int getMaxTimestep()
throws LogException
LogReaderLogException - If there is a problem reading the log.public WorldModel<? extends Entity> getWorldModel(int time) throws LogException
LogReadertime - 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.public java.util.Set<EntityID> getEntitiesWithUpdates(int time) throws LogException
LogReadertime - The timestep to look up.LogException - If there is a problem reading the log.public PerceptionRecord getPerception(int time, EntityID entity) throws LogException
LogReadertime - The timestep to look up.entity - The entity to look up.LogException - If there is a problem reading the log.public CommandsRecord getCommands(int time) throws LogException
LogReadertime - The timestep to look up.LogException - If there is a problem reading the log.public UpdatesRecord getUpdates(int time) throws LogException
LogReadertime - The timestep to look up.LogException - If there is a problem reading the log.