using System.Collections.Generic;
using NPP.SmartSchedue.Api.Contracts.Services.Work.Output;
namespace NPP.SmartSchedue.Api.Contracts.Services.Integration.Output;
///
/// 整合记录验证结果
/// 用于重新验证整合记录的分配合理性
///
public class IntegrationRecordValidationResult
{
///
/// 验证是否通过
///
public bool IsValid { get; set; }
///
/// 验证错误列表
///
public List ValidationErrors { get; set; } = new();
///
/// 冲突详情列表
///
public List ConflictDetails { get; set; } = new();
///
/// 更新后的整合指标
///
public IntegrationMetrics UpdatedMetrics { get; set; } = new();
///
/// 验证摘要信息
///
public string ValidationSummary { get; set; } = string.Empty;
}
///
/// 冲突详情
///
public partial class ConflictDetail
{
///
/// 冲突类型
///
public string ConflictType { get; set; } = string.Empty;
///
/// 相关任务ID列表
///
public List RelatedTaskIds { get; set; } = new();
///
/// 相关人员ID列表
///
public List RelatedPersonnelIds { get; set; } = new();
///
/// 相关设备ID列表
///
public List RelatedEquipmentIds { get; set; } = new();
///
/// 冲突描述
///
public string Description { get; set; } = string.Empty;
///
/// 解决建议
///
public string Suggestion { get; set; } = string.Empty;
}
///
/// 整合指标
/// 包含整合过程的各种性能指标
///
public class IntegrationMetrics
{
///
/// 公平性评分
///
public int FairnessScore { get; set; }
///
/// 总体设备利用率
///
public decimal OverallUtilizationRate { get; set; }
///
/// 成功人员匹配数
///
public int SuccessfulPersonnelMatches { get; set; }
///
/// 成功设备匹配数
///
public int SuccessfulEquipmentMatches { get; set; }
///
/// 总体匹配成功率
///
public decimal OverallMatchSuccessRate { get; set; }
///
/// 平均任务复杂度
///
public decimal AverageTaskComplexity { get; set; }
}