public class UniformMessageScheme extends CompanyAgentMessageScheme
Constructor and Description |
---|
UniformMessageScheme() |
Modifier and Type | Method and Description |
---|---|
java.util.Set<Message> |
createMessages(SimulationContainer simulationContainer,
Agent sendingAgent)
For agents of an unspecified type, the UniformMessageScheme will create the messages
according to how it does for a CompanyAgent if the sendingAgent is a CompanyAgent
and throw an UnsupportedOperationException if the agent is of a different type
(for whom this scheme is not yet implemented)
|
java.util.Set<Message> |
createMessages(SimulationContainer simulationContainer,
CompanyAgent sender)
The UniformMessageScheme will uniformly (for each ConsumerAgent and each product managed
by the CompanyAgent and each of its ProductAttributes) create a CompanyConsumerPerceptionManipulationMessage
from the respective CompanyAgent to the respective ConsumerAgent with the true value
of the product attribute and an advertisement factor of 1.0.
|
public java.util.Set<Message> createMessages(SimulationContainer simulationContainer, CompanyAgent sender)
createMessages
in class CompanyAgentMessageScheme
simulationContainer
- The container the scheme is associated withsender
- The CompanyAgent sending the messagespublic java.util.Set<Message> createMessages(SimulationContainer simulationContainer, Agent sendingAgent) throws java.lang.UnsupportedOperationException
createMessages
in class MessageScheme
simulationContainer
- The container the simulation runs insendingAgent
- The agent from whom the messages originatejava.lang.UnsupportedOperationException
- Will be thrown when the sendingAgent is not a CompanyAgent