CounterDroneBackend/src/CounterDrone.Core/Models/CloudDispersal.cs
tian ca0ce8aa52 重命名核心模型:TargetConfig→DroneProfile, SimTask→Scenario, TaskFullConfig→ScenarioConfig, TaskId→ScenarioId
- DroneType 枚举清理:移除 Electric/Piston,重编号 HighSpeed=2
- planner_config.json / defaults.json 同步迁移
- 238 单元测试全部通过
2026-06-18 15:02:58 +08:00

57 lines
1.9 KiB
C#
Raw 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.

using SQLite;
namespace CounterDrone.Core.Models
{
/// <summary>步骤4云团抛撒配置</summary>
[Table("CloudDispersal")]
public class CloudDispersal
{
[PrimaryKey]
public string ScenarioId { get; set; } = string.Empty;
public int AerosolType { get; set; } = (int)Models.AerosolType.InertGas;
public double DisperseHeight { get; set; } = 300.0;
public int TriggerMode { get; set; } = (int)Models.TriggerMode.Time;
public double SpreadAngle { get; set; } = 0.0;
public int ReleaseMode { get; set; } = (int)Models.ReleaseMode.Single;
public double InitialScale { get; set; } = 1000.0;
public double Duration { get; set; } = 60.0;
public double ReleaseInterval { get; set; } = 5.0;
public double TotalAmount { get; set; } = 50.0;
public double PositionX { get; set; }
public double PositionY { get; set; }
public double PositionZ { get; set; }
public int PositionMode { get; set; } = (int)Models.PositionMode.ManualInput;
public string Source { get; set; } = "Manual";
// 算法推荐结果
public double? RecommendedPosX { get; set; }
public double? RecommendedPosY { get; set; }
public double? RecommendedPosZ { get; set; }
public double? RecommendedTiming { get; set; }
public double? CriticalPosX { get; set; }
public double? CriticalPosY { get; set; }
public double? CriticalPosZ { get; set; }
public double? CriticalTiming { get; set; }
/// <summary>推荐弹药数(算法填充)</summary>
public int SalvoRounds { get; set; }
/// <summary>云团展开间距m算法填充</summary>
public double SalvoSpacing { get; set; }
/// <summary>算法估计拦截概率(算法填充)</summary>
public double? EstimatedProbability { get; set; }
}
}