| Constructor and Description |
|---|
PerceptionRecord(java.io.InputStream in)
Construct a new PerceptionRecord and read data from an InputStream.
|
PerceptionRecord(int time,
EntityID id,
ChangeSet visible,
java.util.Collection<Command> communications)
Construct a new PerceptionRecord.
|
| Modifier and Type | Method and Description |
|---|---|
ChangeSet |
getChangeSet()
Get the set of visible entity updates.
|
EntityID |
getEntityID()
Get the EntityID for this record.
|
java.util.Collection<Command> |
getHearing()
Get the set of communication messages heard.
|
RecordType |
getRecordType()
Get the type of this record.
|
int |
getTime()
Get the timestamp for this record.
|
void |
read(java.io.InputStream in)
Read this log record's data from a stream.
|
void |
write(java.io.OutputStream out)
Write this log record to a stream.
|
public PerceptionRecord(int time,
EntityID id,
ChangeSet visible,
java.util.Collection<Command> communications)
time - The timestep of this perception record.id - The ID of the entity.visible - The set of visible changes to entities.communications - The set of communication messages.public PerceptionRecord(java.io.InputStream in)
throws java.io.IOException,
LogException
in - The InputStream to read from.java.io.IOException - If there is a problem reading the stream.LogException - If there is a problem reading the log record.public RecordType getRecordType()
LogRecordgetRecordType in interface LogRecordpublic void write(java.io.OutputStream out)
throws java.io.IOException
LogRecordpublic void read(java.io.InputStream in)
throws java.io.IOException,
LogException
LogRecordread in interface LogRecordin - The InputStream to read from.java.io.IOException - If there is a problem reading the stream.LogException - If there is a problem reading the log record.public int getTime()
public EntityID getEntityID()
public ChangeSet getChangeSet()
public java.util.Collection<Command> getHearing()