mesa_frames.AgentSetRegistry.__setitem__#

AgentSetRegistry.__setitem__(key: int | str, value: AbstractAgentSet) None#

Assign/replace a single AgentSet at an index or name.

Mirrors the invariants of replace for single-key assignment: - Names remain unique across the registry - value.model is self.model - For name keys, the key is authoritative for the assigned set’s name - For index keys, collisions on a different entry’s name must raise