muse2::input::agent::region

Function read_agent_regions

Source
pub fn read_agent_regions(
    model_dir: &Path,
    agent_ids: &HashSet<Rc<str>>,
    region_ids: &HashSet<Rc<str>>,
) -> Result<HashMap<Rc<str>, RegionSelection>>
Expand description

Read the agent regions file.

§Arguments

  • model_dir - Folder containing model configuration files
  • agent_ids - The possible valid agent IDs
  • region_ids - The possible valid region IDs

§Returns

A map of RegionSelections, with the agent ID as the key.