Пример #1
0
 public Tosa25G(BaseProtocol protocolControl, BaseOvenControl ovenControl, Dictionary <string, string> param, ILog logger)
 {
     Log = new DriverLog(logger, "TOSA25G", param["Name"]);
     InitParam(param);
     CtrlCom     = protocolControl;
     OvenControl = ovenControl;
 }
Пример #2
0
 protected BaseProtocol(int slotNum, BaseCom com, DriverLog log)
 {
     SeatsCount = 16;
     BoardNum   = slotNum;
     Comm       = com;
     Log        = log;
 }
Пример #3
0
        public void TestMethodInfo()
        {
            var log  = LogManager.GetLogger("BiBspLocolLog");
            var log1 = new DriverLog(log, "CFP8", "A");

            log1.LogInfo("This is a test");
            log1.LogError("This is a test");
            log1.LogWarn("This is a test");
            log1.LogDebug("This is a test");
        }
Пример #4
0
 public TestType(Dictionary <string, string> param, ILog logger)
 {
     Log                  = new DriverLog(logger, "QSFP28G", param["Name"]);
     SeatsCount           = 26;
     TempInit             = new InitTemp(GetTempFile());
     DataMember.BoardName = param["Name"];
     DataMember.FloorNum  = int.Parse(param["Floor"]);
     DataMember.BoardNum  = int.Parse(param["Locate"]);
     Log.LogInfo("Construct Driver TestType success");
 }
Пример #5
0
 public Tosa25G(Dictionary <string, string> param, ILog logger)
 {
     Log      = new DriverLog(logger, "TOSA25G", param["Name"]);
     TempInit = new InitTemp(GetTempFile());
     InitParam(param);
     if (OvenControl == null)
     {
         OvenControl = new OvenControl(new Comm(DataMember.OvenPort, 9600));
     }
     CtrlCom = new ProtocolTosa25G(DataMember.BoardNum, new Comm(DataMember.CtrlPort), Log);
 }
Пример #6
0
        public IqmGenI(Dictionary <string, string> param, ILog uiLog)
        {
            ProductType = "IQMGenI";
            Log         = new DriverLog(uiLog, ProductType, "");
            Log.LogInfo("IqmGenI start");

            InitParam(param);

            Log    = new DriverLog(uiLog, ProductType, _name);
            Seats  = new List <int>();
            SnDict = new Dictionary <int, string>();
        }
Пример #7
0
 public ProtocolTosa32G(int boardNum, BaseCom com, DriverLog log) : base(boardNum, com, log)
 {
     _delayTime = 10000;
 }
Пример #8
0
 public ProtocolQsfp28G(int slotNum, BaseCom com, DriverLog log) : base(slotNum, com, log)
 {
     _delayTime = 10000;
 }
Пример #9
0
 public ParallelQsfp28(Dictionary <string, string> param, IParallelProtocol parallelProtocol, ILog logger)
 {
     ParallelProtocol = parallelProtocol;
     Log = new DriverLog(logger, "ParallelQsfp28g", param["Name"]);
     InitParam(param);
 }