public class ChannelCommunicationModel extends AbstractCommunicationModel
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
PREFIX
The prefix for channels config options.
|
| Constructor and Description |
|---|
ChannelCommunicationModel()
Construct a ChannelCommunicationModel.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.Collection<Channel> |
getAllChannels()
Get a view of all registered channels.
|
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 static final java.lang.String PREFIX
public ChannelCommunicationModel()
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.public java.util.Collection<Channel> getAllChannels()