//------------------------------------------------------------------------------
//  此代码版权声明为全文件覆盖，如有原作者特别声明，会在下方手动补充
//  此代码版权（除特别声明外的代码）归作者本人Diego所有
//  源代码使用协议遵循本仓库的开源协议及附加协议
//  Gitee源代码仓库：https://gitee.com/diego2098/ThingsGateway
//  Github源代码仓库：https://github.com/kimdiego2098/ThingsGateway
//  使用文档：https://thingsgateway.cn/
//  QQ群：605534569
//------------------------------------------------------------------------------

using ThingsGateway.Gateway.Application;

namespace ThingsGateway.Plugin.OpcDa;

/// <summary>
/// <inheritdoc/>
/// </summary>
public class OpcDaMasterProperty : CollectPropertyBase
{
    /// <summary>
    /// OpcIP
    /// </summary>
    [DynamicProperty]
    public string OpcIP { get; set; } = "localhost";

    /// <summary>
    /// Opc名称
    /// </summary>
    [DynamicProperty]
    public string OpcName { get; set; } = "Kepware.KEPServerEX.V6";

    /// <summary>
    /// 是否使用SourceTime
    /// </summary>
    [DynamicProperty]
    public bool SourceTimestampEnable { get; set; } = true;

    /// <summary>
    /// 激活订阅
    /// </summary>
    [DynamicProperty]
    public bool ActiveSubscribe { get; set; } = true;

    /// <summary>
    /// 检测重连频率min
    /// </summary>
    [DynamicProperty]
    public int CheckRate { get; set; } = 10;

    /// <summary>
    /// 死区
    /// </summary>
    [DynamicProperty]
    public float DeadBand { get; set; } = 0;

    /// <summary>
    /// 最大组大小
    /// </summary>
    [DynamicProperty]
    public int GroupSize { get; set; } = 500;

    /// <summary>
    /// 更新频率
    /// </summary>
    [DynamicProperty]
    public int UpdateRate { get; set; } = 1000;

}
