loadAgents
public static AgentConfiguration loadAgents(java.lang.String configPath,
ProductConfiguration productConfiguration,
java.util.Map<java.lang.String,Distribution> distributions,
java.util.Set<Value> values,
DecisionConfiguration decisionConfiguration)
throws java.lang.IllegalArgumentException,
java.io.IOException,
com.fasterxml.jackson.core.JsonParseException,
com.fasterxml.jackson.databind.JsonMappingException
Method to load an AgentConfiguration from a set of .json files.
Will load the general configuration from a provided configuration path
and the individual configuration of agent groups from individual files from a folder.
Requires an instantiation of the product and decision configuration.
For more details see configuration documentation
- Parameters:
configPath
- String representing the path where the configuration files are kept
productConfiguration
- The configuration of the products used in the simulation
distributions
- A map of the distributions used by the agents as configured with their respective names
values
- Set of Values used in the simulation to which the agents refer
decisionConfiguration
- The configuration of the decision processes
- Returns:
- An agent configuration based on the configuration of the agents within the simulation based on a set of .json files
- Throws:
java.lang.IllegalArgumentException
- Will be thrown when one of the arguments is errornous
java.io.IOException
- Will be thrown when an error occurs reading the configuration files
com.fasterxml.jackson.core.JsonParseException
- Will be thrown when a configuration that is part of the agent configuration experiences a JsonParseException
com.fasterxml.jackson.databind.JsonMappingException
- Will be thrown when a configuration that is part of the agent configuration experiences a JsonMappingException