Google Sign-In Required

Use your company Google account to access the BetterFleet private content.

Back to private home

BetterFleet Support Private
Skip to content
BetterFleet Dev Wiki
bf-digital-twin
Initializing search
    bf-dev
    • Home
    • Product Capabilities
    • Process
    • Current Work
    • System Design
    • Software Reference
    • Operations
    bf-dev
    • Home
      • Overview
      • Manage
      • Overview
      • Product Engineering Workflow
      • Product Engineering Delivery
      • Product Engineering Workflow in Linear
        • GitLab Feature Flags
        • In-App Docs Authoring
        • Release Notes
      • Templates
      • Publishing
      • Workflow Companions
      • Overview
      • Active Artifacts
      • Backlog Artifacts
      • Archived Artifacts
      • Overview
      • Microgrid
      • OSCP
        • Challenge
        • Specification
        • Spec
        • Architecture
        • Overview
        • Script Runtime Model
        • Compose Profiles and Modes
        • Repo Topology
        • CI and Release Integration
        • Overview
        • Internal Application Diagrams
          • Overview
          • Web Model
          • Core Model
        • Service Interaction Flows
        • Data and State
          • Index
          • bf-manage-web
          • bf-manage-core
          • bf-manage-connect
          • bf-manage-sitepwrmon
          • bf-manage-incidents
          • bf-telematics
          • bf-depot-sim
          • bf-manage-roaming
          • bf-support-microsite
          • bf-digital-twin
            • What this service is in Manage mode
            • Core anatomy (shared with Plan)
            • Manage-relevant characteristics
            • Cloud dependency map
          • bf-schedule-creator
        • Overview
        • Internal Application Diagrams
        • Migration and Flags
        • Simulation Request Lifecycle
          • Index
          • bf-bnl-ui
          • bf-bnl-settings
          • bf-bnl-schedule-analysis-compute
          • bf-route-modelling
          • bf-schedule-creator
          • bf-digital-twin
        • Overview
        • Secrets and Env Strategy
        • Vendors and Local Dependencies
        • ADRs
        • Service Matrix
        • Cloud Dependencies
        • Ports and URLs
      • Onboarding
      • Daily Operations Runbook
        • Overview
        • Staging Hotfix Release
        • Production Hotfix Release
        • Terraform Plan Dry Runs
      • Troubleshooting
      • Testing Guide
    • What this service is in Manage mode
    • Core anatomy (shared with Plan)
    • Manage-relevant characteristics
    • Cloud dependency map

    bf-digital-twin (Manage Role)¶

    What this service is in Manage mode¶

    In Manage mode, bf-digital-twin is mostly a shared dependency that exposes modeling/simulation capabilities consumed by selected Manage flows and integrations.

    Core anatomy (shared with Plan)¶

    • src/app.py: FastAPI app and lifecycle.
    • src/plan/*: domain-driven plan modules (adapters, application, domain, models).
    • src/service/*: functional service modules (depot, trip, vehicle, charge_point, weather, geography, hvac).
    • src/output_service/*: output-oriented APIs (time_to_charge, range_remaining).
    • src/ml_models/*: ML estimator packaging and model support.

    Manage-relevant characteristics¶

    • Depends on Manage services (bf-manage-core, bf-manage-connect, bf-manage-sitepwrmon) in this local stack.
    • Acts as a cross-domain integration point, so regressions can impact both Manage and Plan local environments.
    • Persists simulation artifacts and run metadata via AWS S3 and DynamoDB.

    Cloud dependency map¶

    flowchart LR
      DT[bf-digital-twin] --> S3[(aws s3)]
      DT --> DDB[(aws dynamodb)]
      DT --> Core[bf-manage-core]
      DT --> Connect[bf-manage-connect]
      DT --> SitePwr[bf-manage-sitepwrmon]
    Made with Material for MkDocs