using System.ComponentModel;

namespace StandardScene.Signal.Model
{
    /// <summary>
    /// PLC 机构配置。对应反编译 <c>PLCModel</c> 的可存档字段；读写运行态不进本类。
    /// </summary>
    public class PlcStationModel
    {
        [DisplayName("机构名称")]
        public string JgName { get; set; } = "";

        [DisplayName("机构IP")]
        public string Ip { get; set; } = "127.0.0.1";

        [DisplayName("端口")]
        public int Port { get; set; } = 102;

        [DisplayName("读地址")]
        public string ReadDb { get; set; } = "";

        [DisplayName("写地址")]
        public string WriteDb { get; set; } = "";

        [DisplayName("写心跳地址")]
        public string HeartDb { get; set; } = "";

        [DisplayName("机构进入地标")]
        public int JgInPointId { get; set; }

        [DisplayName("机构进入包含地标")]
        public string JgInContains { get; set; } = "";

        [DisplayName("机构地标")]
        public int JgPointId { get; set; }

        [DisplayName("机构包含地标")]
        public string JgContains { get; set; } = "";

        [DisplayName("上下机构")]
        public SignalLineType LineType { get; set; } = SignalLineType.未知;
    }
}
