You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

74 lines
1.9 KiB
C#

2 months ago
#region << 版 本 注 释 >>
/*--------------------------------------------------------------------
* (c) 2025 WenJY
* CLR4.0.30319.42000
* Mr.Wen's MacBook Pro
* Sln.lmm.Collection.Model.CoreCommunications.Heartbeat
* 0323D00B-274E-4A6A-885B-88835D63F95C
*
* WenJY
*
* 2025-10-16 11:26:50
* V1.0.0
*
*
*--------------------------------------------------------------------
*
*
*
*
* V1.0.0
*--------------------------------------------------------------------*/
#endregion << 版 本 注 释 >>
using Sln.Iot.Model.api.Common.Enum;
using Sln.Iot.Model.api.Common.Stage;
namespace Sln.Iot.Model.api.CoreCommunications.Heartbeat;
/// <summary>
/// 激活的配方信息
/// 用于心跳事件中报告当前正在使用的配方
/// </summary>
public class ActiveRecipe
{
/// <summary>
/// 生产通道序号
/// </summary>
public int Lane { get; set; }
/// <summary>
/// 工位信息
/// </summary>
public Stage Stage { get; set; }
/// <summary>
/// 详细配方信息(与 RecipeIdentifier 择一上报)
/// </summary>
public Recipe Recipe { get; set; }
/// <summary>
/// 基础配方信息(与 Recipe 择一上报)
/// </summary>
public RecipeIdentifier RecipeIdentifier { get; set; }
/// <summary>
/// 配方激活时间
/// 配方被启用的时间戳
/// </summary>
public DateTime ActivatedAt { get; set; }
/// <summary>
/// 使用次数统计
/// 该配方在当前会话中的使用次数
/// </summary>
public int UsageCount { get; set; }
/// <summary>
/// 配方状态
/// 配方的当前运行状态
/// </summary>
public RecipeStatus Status { get; set; }
}