babylon.engine.systems.protocol
Protocol definition for simulation systems.
Classes
|
Protocol defining a historical materialist system. |
- class babylon.engine.systems.protocol.System(*args, **kwargs)[source]
Bases:
ProtocolProtocol defining a historical materialist 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)