public class KASense extends AbstractMessage implements Control
| Constructor and Description |
|---|
KASense(EntityID agentID,
int time,
ChangeSet changes,
java.util.Collection<? extends Command> hear)
A populated KASense message.
|
KASense(java.io.InputStream in)
A KASense message that populates its data from a stream.
|
| Modifier and Type | Method and Description |
|---|---|
EntityID |
getAgentID()
Get the ID of the agent.
|
ChangeSet |
getChangeSet()
Get the changed entities.
|
java.util.Collection<Command> |
getHearing()
Get the messages the agent can hear.
|
int |
getTime()
Get the time.
|
addMessageComponent, getComponents, getURN, read, toString, writepublic KASense(java.io.InputStream in)
throws java.io.IOException
in - The InputStream to read.java.io.IOException - If there is a problem reading the stream.public KASense(EntityID agentID, int time, ChangeSet changes, java.util.Collection<? extends Command> hear)
agentID - The ID of the Entity that is receiving the update.time - The timestep of the simulation.changes - All changes that the agent can perceive.hear - The messages that the agent can hear.public EntityID getAgentID()
public int getTime()
public ChangeSet getChangeSet()
public java.util.Collection<Command> getHearing()