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, getHearingpublic StandardCommunicationModel()
public java.lang.String toString()
toString in class java.lang.Objectpublic void initialise(Config config, WorldModel<? extends Entity> model)
CommunicationModelinitialise in interface CommunicationModelinitialise in class AbstractCommunicationModelconfig - The kernel configuration.model - The world model.public void process(int time,
java.util.Collection<? extends Command> agentCommands)
CommunicationModelprocess in interface CommunicationModelprocess in class AbstractCommunicationModeltime - The current time.agentCommands - The set of all agent commands this timestep.