babylon.engine.systems.protocol

Protocol definition for simulation systems.

Classes

System(*args, **kwargs)

Protocol defining a historical materialist system.

class babylon.engine.systems.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 – Mutable NetworkX graph representing WorldState.

  • services – ServiceContainer with config, formulas, event_bus, database.

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

__init__(*args, **kwargs)