using System.Collections.Generic; using NPP.SmartSchedue.Api.Contracts.Services.Integration.Output; namespace NPP.SmartSchedue.Api.Contracts.Services.Integration.Internal { /// /// 最终业务规则验证结果 /// 业务用途:对遗传算法输出进行严格的业务规则二次验证的结果 /// public class FinalValidationResult { /// /// 是否通过验证 /// public bool IsValid { get; set; } /// /// 错误消息 /// public string ErrorMessage { get; set; } = string.Empty; /// /// 违规详情列表 /// public List Violations { get; set; } = new List(); /// /// 验证的任务数量 /// public int ValidatedTaskCount { get; set; } /// /// 检测到的违规数量 /// public int ViolationCount => Violations.Count; } }