mesa_frames.AgentSetRegistry.add#

AgentSetRegistry.add(sets: AgentSet | Iterable[AgentSet], inplace: bool = True) Self[source]#

Add AgentSets to the AbstractAgentSetRegistry.

Parameters:
  • sets (mesa_frames.abstract.agentset.AbstractAgentSet | Collection[mesa_frames.abstract.agentset.AbstractAgentSet]) – The AgentSet(s) to add.

  • inplace (bool) – Whether to add in place. Defaults to True.

Returns:

The updated AbstractAgentSetRegistry.

Return type:

Self