public class CompositeCommandCollector extends java.lang.Object implements CommandCollector
Constructor and Description |
---|
CompositeCommandCollector()
Construct a CompositeCommandCollector with no children.
|
Modifier and Type | Method and Description |
---|---|
void |
addCommandCollector(CommandCollector child)
Add a child command collector.
|
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 CompositeCommandCollector()
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 void addCommandCollector(CommandCollector child)
child
- The child to add.public java.lang.String toString()
toString
in class java.lang.Object