|
@@ -1,6 +1,7 @@
|
|
|
using KYFramework;
|
|
|
using Model;
|
|
|
using OpenQA.Selenium.Remote;
|
|
|
+using SimulationCommon;
|
|
|
using SimulationServer.Utils;
|
|
|
|
|
|
namespace SimulationServer;
|
|
@@ -544,7 +545,16 @@ public class TaskComponentUpdateSystem : UpdateSystem<TaskComponent>
|
|
|
if (任务是否成功 == 1)
|
|
|
self.seaSuccessCount++;
|
|
|
|
|
|
- allTotalTaskPerformance.识别成功率 = (识别成功率 / 人员数量).ToString();
|
|
|
+ if (人员数量 != 0)
|
|
|
+ {
|
|
|
+ allTotalTaskPerformance.识别成功率 = (识别成功率 / 人员数量).ToString();
|
|
|
+ allTotalTaskPerformance.人员存活率 = (人员存活率 / 人员数量).ToString();
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ allTotalTaskPerformance.识别成功率 = "0";
|
|
|
+ allTotalTaskPerformance.人员存活率 = "0";
|
|
|
+ }
|
|
|
allTotalTaskPerformance.任务准备时间 = 任务准备时间.ToString();
|
|
|
if (searchCount != 0)
|
|
|
allTotalTaskPerformance.平均搜索时间 = (平均搜索时间 / searchCount).ToString("f4");
|
|
@@ -555,18 +565,17 @@ public class TaskComponentUpdateSystem : UpdateSystem<TaskComponent>
|
|
|
else
|
|
|
allTotalTaskPerformance.平均救助时间 = "0";
|
|
|
allTotalTaskPerformance.总飞行时间 = 总飞行时间.ToString("f4");
|
|
|
- allTotalTaskPerformance.海情覆盖率 = "0.6".ToString();
|
|
|
+ allTotalTaskPerformance.海上搜索覆盖面积 = Rectangular_Area_Search_Function.min_area.ToString();
|
|
|
allTotalTaskPerformance.任务是否成功 = 任务是否成功.ToString();
|
|
|
- allTotalTaskPerformance.人员存活率 = (人员存活率 / 人员数量).ToString();
|
|
|
- allTotalTaskPerformance.环境覆盖率 = "0.6".ToString();
|
|
|
+ allTotalTaskPerformance.环境搜索覆盖面积 = "0.6".ToString();
|
|
|
|
|
|
Console.WriteLine("单轮次总体指标识别成功率:" + allTotalTaskPerformance.识别成功率);
|
|
|
Console.WriteLine("单轮次总体指标任务准备时间:" + allTotalTaskPerformance.任务准备时间);
|
|
|
Console.WriteLine("单轮次总体指标平均搜索时间:" + allTotalTaskPerformance.平均搜索时间);
|
|
|
Console.WriteLine("单轮次总体指标平均救助时间:" + allTotalTaskPerformance.平均救助时间);
|
|
|
Console.WriteLine("单轮次总体指标总飞行时间:" + allTotalTaskPerformance.总飞行时间);
|
|
|
- Console.WriteLine("单轮次总体指标海情覆盖率:" + allTotalTaskPerformance.海情覆盖率);
|
|
|
- Console.WriteLine("单轮次总体指标环境覆盖率:" + allTotalTaskPerformance.环境覆盖率);
|
|
|
+ Console.WriteLine("单轮次总体指标海上搜索覆盖面积:" + allTotalTaskPerformance.海上搜索覆盖面积);
|
|
|
+ Console.WriteLine("单轮次总体指标环境搜索覆盖面积:" + allTotalTaskPerformance.环境搜索覆盖面积);
|
|
|
Console.WriteLine("单轮次总体指标任务是否成功:" + allTotalTaskPerformance.任务是否成功);
|
|
|
Console.WriteLine("单轮次总体指标人员存活率:" + allTotalTaskPerformance.人员存活率);
|
|
|
Console.WriteLine("===============================================================");
|
|
@@ -582,7 +591,7 @@ public class TaskComponentUpdateSystem : UpdateSystem<TaskComponent>
|
|
|
{ "平均搜索时间", allTotalTaskPerformance.平均搜索时间.ToString() },
|
|
|
{ "平均救助时间", allTotalTaskPerformance.平均救助时间.ToString() },
|
|
|
{ "总飞行时间", allTotalTaskPerformance.总飞行时间.ToString() },
|
|
|
- { "海情覆盖率", allTotalTaskPerformance.海情覆盖率.ToString() },
|
|
|
+ { "海上搜索覆盖面积", allTotalTaskPerformance.海上搜索覆盖面积.ToString() },
|
|
|
{ "任务是否成功", allTotalTaskPerformance.任务是否成功.ToString() },
|
|
|
{ "人员存活率", allTotalTaskPerformance.人员存活率.ToString() }
|
|
|
};
|
|
@@ -596,7 +605,7 @@ public class TaskComponentUpdateSystem : UpdateSystem<TaskComponent>
|
|
|
{ "平均搜索时间", allTotalTaskPerformance.平均搜索时间.ToString() },
|
|
|
{ "平均救助时间", allTotalTaskPerformance.平均救助时间.ToString() },
|
|
|
{ "总飞行时间", allTotalTaskPerformance.总飞行时间.ToString() },
|
|
|
- { "环境覆盖率", allTotalTaskPerformance.环境覆盖率.ToString() },
|
|
|
+ { "环境搜索覆盖面积", allTotalTaskPerformance.环境搜索覆盖面积.ToString() },
|
|
|
{ "任务是否成功", allTotalTaskPerformance.任务是否成功.ToString() },
|
|
|
{ "人员存活率", allTotalTaskPerformance.人员存活率.ToString() }
|
|
|
};
|