createConsumers
public static java.util.Set<SynchronousConsumerAgent> createConsumers(ConsumerAgentGroup correspondingConsumerAgentGroup,
int numberOfConsumersToCreate,
SimulationContainer simulationContainer,
Configuration configuration)
throws java.lang.UnsupportedOperationException
creates a set of synchronous consumer agents and links them other entities of the simulations.
Requires the products of the simulation to be created in the simulation already!
if a social network is already associated with the simulation container, the agents will be added as nodes.
- Parameters:
correspondingConsumerAgentGroup
- The ConsumerAgentGroup corresponding to the consumer agents to be created
numberOfConsumersToCreate
- The number of synchronous ConsumerAgents that are to be created in this batch.
configuration
- The configuration of the simulation
simulationContainer
- The simulationContainer containing all entities the consumerAgent refers to. Needs to include the products of the simulation!
- Returns:
- batch of SynchronousConsumerAgent that are linked to other entities of the simulation with corresponding batch number in the ID
- Throws:
java.lang.UnsupportedOperationException
- Will be thrown when the social network is set already (i.e. nodes need to be added to an existing social graph, which is not yet supported).