Sic.Framework-Nanjing-Baishi/MECF.Framework.Common/MECF/Framework/Common/Device/Bases/STPatternSetting.cs

57 lines
1.3 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using System.Xml.Serialization;
namespace MECF.Framework.Common.Device.Bases;
public class STPatternSetting
{
#region Properties
/// <summary>
/// 返回当前工作模式名称。
/// </summary>
[XmlAttribute(AttributeName = "name")]
public string Name { get; set; }
/// <summary>
/// 返回当前工作模式配置模板。
/// </summary>
[XmlAttribute(AttributeName = "pattern")]
public string Pattern { get; set; }
/// <summary>
/// 返回当前工作模式的最大循环次数。
/// </summary>
[XmlAttribute(AttributeName = "cycles")]
public int Cycles { get; set; }
/// <summary>
/// 返回当前工作模式的优先级。
/// <remarks>
/// 数字越小优先级越高。当信号塔动作合并时,优先级高的动作会覆盖优先级底的动作。
/// </remarks>
/// </summary>
[XmlAttribute(AttributeName = "priority")]
public int Priority { get; set; }
/// <summary>
/// 指定当前工作模式对应的信号塔组件。
/// <remarks>
/// 注意此属性为JobDone模式专用其它模式指定此属性无效。
/// </remarks>
/// </summary>
[XmlAttribute(AttributeName = "part")]
public string Part { get; set; }
#endregion
#region Methods
/// <inheritdoc />
public override string ToString()
{
return $"{Name}, {Pattern}";
}
#endregion
}