public class DefaultConsumerAgentMessageScheme extends ConsumerAgentMessageScheme
Constructor and Description |
---|
DefaultConsumerAgentMessageScheme(UnivariateDistribution numberMessagesPerTimeUnit) |
Modifier and Type | Method and Description |
---|---|
java.util.Set<Message> |
createMessages(SimulationContainer simulationContainer,
Agent sendingAgent)
Method to send a number (according to the NumberMessagesSentPerTimeUnit distribution of the corresponding
ConsumerAgentGroup) of ConsumerConsumerPreferenceManipulationMessages or ConsumerConsumerProductAttributePerceptionManipulationMessages
to the receiver, depending on the strength of their connection.
|
getNumberMessagesPerTimeUnit
public DefaultConsumerAgentMessageScheme(UnivariateDistribution numberMessagesPerTimeUnit)
public java.util.Set<Message> createMessages(SimulationContainer simulationContainer, Agent sendingAgent)
createMessages
in class MessageScheme
simulationContainer
- The container the simulation runs insendingAgent
- The agent from whom the messages originate