bf-depot-sim¶
What this service is¶
bf-depot-sim is a depot and charger simulation backend used for operational testing, integration validation, and scenario-driven charger behavior emulation.
Code anatomy¶
src/main.py: API factory and daemon start path.src/simulation/*: simulation engine modules split acrosscharger,fleet,power, and helper utilities.src/agent/*: autonomous behavior agents and HTTP control layer for scripted/random actions.src/api/*: web-service wrappers/control APIs.src/config/*: configuration models and profile loading.
Architectural characteristics¶
- Dual mode: direct simulator execution and API-wrapped daemon mode.
- Agent-driven scenario behavior for realistic charger lifecycle actions.
socatcompatibility bridge used inbf-devcompose wiring for local hostname expectations.
Documentation and tests in-repo¶
- Detailed README with OCPP behavior notes and agent descriptions.
- Test suites under
test/charger,test/power, andtest/simulation.