public class StandardCommunicationModel extends AbstractCommunicationModel
Constructor and Description |
---|
StandardCommunicationModel()
Construct a StandardCommunicationModel.
|
Modifier and Type | Method and Description |
---|---|
void |
initialise(Config config,
WorldModel<? extends Entity> model)
Initialise this communication model.
|
void |
process(int time,
java.util.Collection<? extends Command> agentCommands)
Process a set of agent commands and work out what communications each agent can hear.
|
java.lang.String |
toString() |
addHearing, addHearing, getHearing
public StandardCommunicationModel()
public java.lang.String toString()
toString
in class java.lang.Object
public void initialise(Config config, WorldModel<? extends Entity> model)
CommunicationModel
initialise
in interface CommunicationModel
initialise
in class AbstractCommunicationModel
config
- The kernel configuration.model
- The world model.public void process(int time, java.util.Collection<? extends Command> agentCommands)
CommunicationModel
process
in interface CommunicationModel
process
in class AbstractCommunicationModel
time
- The current time.agentCommands
- The set of all agent commands this timestep.