Skip to content

需求追踪矩阵

本章建立功能需求(FR)到实现模块、代码位置与完成状态的追踪关系,确保每条需求可追溯、可验证。

FR-1:场景与配置管理

FR 编号需求名称实现模块关键代码位置完成状态
FR-1.1场景加载与校验configsrc/unet_dt/config/schema.py (Scenario/Pydantic 校验)Done
FR-1.2场景版本化orchestratorsrc/unet_dt/orchestrator/runner.py (run 目录写入 scenario.yaml)Done
FR-1.3业务流配置configsrc/unet_dt/config/schema.py (TrafficFlow 模型)Done

FR-2:UNET 接入与运行管理

FR 编号需求名称实现模块关键代码位置完成状态
FR-2.1网关探测与连接unet_adaptersrc/unet_dt/unet_adapter/base.py (UnetAdapter.probe)Done
FR-2.2运行启停控制service + apisrc/unet_dt/service/run_service.py; src/unet_dt/api/routes/runs.pyDone
FR-2.3LogOnly 回退unet_adaptersrc/unet_dt/unet_adapter/logonly_impl.pyDone
FR-2.4PHY Preflightorchestratorsrc/unet_dt/orchestrator/gateway_preflight.py (run_phy_preflight)Done
FR-2.5智能节点选择orchestratorsrc/unet_dt/orchestrator/gateway_preflight.py (PreflightSelection)Done
FR-2.6UNet 地址解析unet_adaptersrc/unet_dt/unet_adapter/base.py (query_node_address)Done

FR-3:调度策略

FR 编号需求名称实现模块关键代码位置完成状态
FR-3.1轮询策略orchestratorsrc/unet_dt/orchestrator/runner.py (round_robin 分支)Done
FR-3.2自适应策略orchestratorsrc/unet_dt/orchestrator/runner.py (adaptive 分支)Done
FR-3.3调度决策记录orchestratorsrc/unet_dt/orchestrator/runner.py (schedule_decisions.csv 写入)Done

FR-4:同步与逻辑时间

FR 编号需求名称实现模块关键代码位置完成状态
FR-4.1逻辑时间步进orchestratorsrc/unet_dt/orchestrator/clock.pyDone
FR-4.2Barrier 同步orchestratorsrc/unet_dt/orchestrator/barrier.pyDone
FR-4.3同步质量指标orchestratorsrc/unet_dt/orchestrator/runner.py (sync_error_ms 计算)Done

FR-5:数据采集与指标

FR 编号需求名称实现模块关键代码位置完成状态
FR-5.1Trace 采集orchestrator + adaptersrc/unet_dt/orchestrator/trace_collector.py; src/unet_dt/unet_adapter/rx_parse.pyDone
FR-5.2Payload Header 编解码unet_adaptersrc/unet_dt/unet_adapter/utils.py (pack/unpack header)Done
FR-5.3指标计算orchestratorsrc/unet_dt/orchestrator/runner.py (metrics 聚合逻辑)Done
FR-5.4结果落盘orchestrator + persistencesrc/unet_dt/orchestrator/runner.py; src/unet_dt/persistence/trace_repo.pyDone

FR-6:可视化与控制

FR 编号需求名称实现模块关键代码位置完成状态
FR-6.1实时指标曲线ui (React)src/unet_dt/ui/src/ (Recharts 图表组件)In Progress
FR-6.2拓扑视图ui (React)src/unet_dt/ui/src/ (节点可视化组件)Planned
FR-6.3运行控制api + uisrc/unet_dt/api/routes/runs.py; src/unet_dt/ui/src/In Progress
FR-6.4历史列表与详情api + uisrc/unet_dt/api/routes/runs.py (list/detail); src/unet_dt/ui/src/In Progress
FR-6.5WebSocket 实时推送apisrc/unet_dt/api/main.py (WS endpoint)Done
FR-6.6节点健康检查页api + uisrc/unet_dt/api/routes/health.py; src/unet_dt/ui/src/In Progress

FR-7:实验对比与回放

FR 编号需求名称实现模块关键代码位置完成状态
FR-7.1A/B 对比api + uisrc/unet_dt/api/routes/runs.py (metrics 查询); src/unet_dt/ui/src/In Progress
FR-7.2回放ui (React)src/unet_dt/ui/src/ (前端回放逻辑)Planned
FR-7.3报告导出orchestratorsrc/unet_dt/orchestrator/runner.py (report.md 生成)Done

完成度统计

类别DoneIn ProgressPlanned合计
FR-1 场景配置3003
FR-2 UNET 接入6006
FR-3 调度策略3003
FR-4 同步时间3003
FR-5 数据采集4004
FR-6 可视化控制1416
FR-7 对比回放1113
合计215228