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#

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

#region << 版 本 注 释 >>
/*--------------------------------------------------------------------
* 版权所有 (c) 2025 WenJY 保留所有权利。
* CLR版本4.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; }
}