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