public class KSCommands extends AbstractMessage implements Control
Constructor and Description |
---|
KSCommands(java.io.InputStream in)
A KSCommands message that populates its data from a stream.
|
KSCommands(int id,
int time,
java.util.Collection<? extends Command> commands)
A populated KSCommands message.
|
Modifier and Type | Method and Description |
---|---|
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, write
public KSCommands(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 KSCommands(int id, int time, java.util.Collection<? extends Command> commands)
id
- The id of the simulator receiving the update.time
- The timestep of the simulation.commands
- All agent Commands.public int getTargetID()
public int getTime()
public java.util.List<Command> getCommands()