babylon.kernel.system_protocol

Protocol definition for simulation systems.

Classes

System(*args, **kwargs)

Protocol defining a historical materialist system.

class babylon.kernel.system_protocol.System(*args, **kwargs)[source]

Bases: Protocol

Protocol defining a historical materialist system.

property name: str

The identifier of the system.

step(graph, services, context)[source]

Apply system logic to the world graph.

Parameters:
  • graph (GraphProtocol) – Mutable NetworkX graph representing WorldState.

  • services (ServicesProtocol) – ServicesProtocol with config, formulas, event_bus, database.

  • context (Union[dict[str, Any], TickContext]) – TickContext or dict with ‘tick’ (int) and optional metadata. TickContext is the preferred type; dict is supported for backward compatibility with existing tests.

Return type:

None

__init__(*args, **kwargs)