muse2::input::agentFunction read_agents_file
Source pub fn read_agents_file(
model_dir: &Path,
commodities: &HashMap<Rc<str>, Rc<Commodity>>,
process_ids: &HashSet<Rc<str>>,
) -> Result<HashMap<Rc<str>, Agent>>
Expand description
Read agents info from the agents.csv file.
§Arguments
model_dir
- Folder containing model configuration files
commodities
- Commodities for the model
process_ids
- The possible valid process IDs
§Returns
A map of Agents, with the agent ID as the key