CounterDroneBackend/README.md

53 lines
1.7 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 反无人机仿真系统后端
> C# 仿真引擎,集成到 Unity 22.3.62 前端。
## 项目概述
本系统对气溶胶武器的三种防空毁伤机制(吸入式灭火、爆燃式、吸入式爆炸)进行数字化仿真。通过参数化配置与可视化推演,量化评估新型气溶胶武器对不同类型空中威胁源目标的毁伤效能。
## 目录结构
```
├── src/CounterDrone.Core/ # 核心类库(.NET Standard 2.1,零 Unity 依赖)
│ ├── Models/ # 数据模型POCO + 枚举)
│ ├── Repository/ # 数据访问层SQLite
│ ├── Services/ # 业务逻辑 + 报告生成
│ ├── Algorithms/ # 扩散/毁伤/推荐算法
│ └── Simulation/ # 仿真引擎(纯执行器)
├── test/unit/ # 单元测试xUnit128 测试)
├── test/reports/ # 集成测试生成的报告
└── docs/ # 架构设计文档
```
## 快速开始
```bash
# 构建
dotnet build src/CounterDrone.Core/
# 运行测试
dotnet test test/unit/CounterDrone.Core.Tests/
# 查看覆盖率
dotnet test test/unit/CounterDrone.Core.Tests/ --collect:"XPlat Code Coverage"
reportgenerator -reports:test/unit/CounterDrone.Core.Tests/TestResults/*/coverage.cobertura.xml -targetdir:coverage_report -reporttypes:Html
```
## 测试状态
| 指标 | 值 |
|------|------|
| 测试总数 | 128 |
| 行覆盖率 | 95.4% |
| 分支覆盖率 | 80.5% |
| 执行时间 | ~9 秒 |
## 架构
详见 [docs/design/architecture/总体架构设计.md](docs/design/architecture/总体架构设计.md)
## 维护者
- [@Tellme](https://github.com/Tellme)