loadProductConfiguration
public static ProductConfiguration loadProductConfiguration(java.lang.String configPath,
java.util.Map<java.lang.String,Distribution> distributions,
DecisionConfiguration decisionConfiguration)
throws java.lang.IllegalArgumentException,
java.io.IOException,
com.fasterxml.jackson.databind.JsonMappingException,
com.fasterxml.jackson.core.JsonParseException
Method to load the product configuration of the model
- Parameters:
configPath
- The path in which the product configuration files are to be found
distributions
- A map of the distributions used within the product configuration and their respective names
decisionConfiguration
- An instance of the decision configuration containing at least the decision processes overwritten by product groups
- Returns:
- The configuration object for the products used in the simulation
- Throws:
java.lang.IllegalArgumentException
- Will be thrown when any of the helper methods throws an IllegalArgumentException
java.io.IOException
- Will be thrown when an error occurs handling the file storing the configuration of the referred product configuration
com.fasterxml.jackson.core.JsonParseException
- Will be thrown upon a parse error for the json file corresponding to the file handler
com.fasterxml.jackson.databind.JsonMappingException
- Will be thrown upon a mapping error for the json file corresponding to the file handler