using System;

namespace NcProgramManager.Cnc.Fanuc
{
    public enum FanucTransport
    {
        Ethernet = 3,
        Hssb = 2,
        Library = 0
    }

    public sealed class FanucConnectionConfig
    {
        public string Name { get; set; }
        public FanucTransport Transport { get; set; }
        public string IpAddress { get; set; }
        public ushort Port { get; set; }
        public int HssbNode { get; set; }
        public int PieceCounterMacro { get; set; }
        public TimeSpan ConnectTimeout { get; set; }

        public FanucConnectionConfig()
        {
            HssbNode = -1;
            PieceCounterMacro = -1;
            ConnectTimeout = TimeSpan.FromSeconds(4);
        }
    }
}
