SpaceObjectGraph

Source:

Local role: Graph holding spaces and object memberships.

Big-picture role: Deterministic topology service used by World and Sensor.

Inheritance:

  • dataclass

Parameters and fields:

Methods:

  • mutation: add_space, add_object_membership, remove_object_membership
  • queries: get_space, spaces_where_object_exists, shared_spaces_ids_for_objects, list_objects_in_space
  • serialization: to_dict, from_dict

See also:

Ometeotl

A Python library to build complex multi-agent simulations, wargames, and AI-driven strategies