public class StandardCommandCollector extends java.lang.Object implements CommandCollector
Constructor and Description |
---|
StandardCommandCollector() |
Modifier and Type | Method and Description |
---|---|
java.util.Collection<Command> |
getAgentCommands(java.util.Collection<AgentProxy> agents,
int timestep)
Collect all commands from agents.
|
void |
initialise(Config config)
Initialise this command collector.
|
java.lang.String |
toString() |
public void initialise(Config config)
CommandCollector
initialise
in interface CommandCollector
config
- The kernel configuration.public java.util.Collection<Command> getAgentCommands(java.util.Collection<AgentProxy> agents, int timestep) throws java.lang.InterruptedException
CommandCollector
getAgentCommands
in interface CommandCollector
agents
- The agents.timestep
- The timestep.java.lang.InterruptedException
- If the thread is interrupted.public java.lang.String toString()
toString
in class java.lang.Object