public class KVTimestep extends AbstractMessage implements Control
| Constructor and Description |
|---|
KVTimestep(java.io.InputStream in)
A KVTimestep message that populates its data from a stream.
|
KVTimestep(int id,
int time,
java.util.Collection<? extends Command> commands,
ChangeSet changes)
A populated KVTimestep message.
|
| Modifier and Type | Method and Description |
|---|---|
ChangeSet |
getChangeSet()
Get the list of changes.
|
java.util.List<Command> |
getCommands()
Get the list of agent commands.
|
int |
getTargetID()
Get the id of the component that this message is addressed to.
|
int |
getTime()
Get the time of the simulation.
|
addMessageComponent, getComponents, getURN, read, toString, writepublic KVTimestep(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 KVTimestep(int id,
int time,
java.util.Collection<? extends Command> commands,
ChangeSet changes)
id - The id of the viewer receiving the update.time - The timestep of the simulation.commands - All agent Commands.changes - Summary of changes during the timestep.public int getTargetID()
public int getTime()
public java.util.List<Command> getCommands()
public ChangeSet getChangeSet()