示例#1
0
文件: JTest.cs 项目: andreyV512/rag
        public JTest(SignalListDef _SL, DOnExec _onExec, DOnStatus _OnStatus = null)
        {
            SL     = _SL;
            onExec = _onExec;
            prst("Режим ТЕСТ");
            IsComplete   = false;
            RK.ST.result = new Result();
            IW           = new cIW(true);
            IW.Thick     = false;
            IW.SG        = false;
            bank         = new Bank(IW);

            J.Add(jAlarm = new JAlarmList());
            if (IW.Cross)
            {
                J.Add(jCollectCross = new JCollect(bank, EUnit.Cross, IW));
            }
            if (IW.Line)
            {
                J.Add(jCollectLine = new JCollect(bank, EUnit.Line, IW));
            }
            J.Add(jTransportTest = new JTransportTest(bank));
            if (ParAll.ST.Defect.Some.TestWithMagnit)
            {
                J.Add(jRectifierThCross = new JRectifierTh(ParAll.ST.Defect.Cross.Rectifiers, ParAll.CTS.Cross.Rectifier, true, false));
                J.Add(jRectifierThLine  = new JRectifierTh(ParAll.ST.Defect.Line.Rectifiers, ParAll.CTS.Line.Rectifier, true, false));
            }

            OnStatus = _OnStatus;
        }
示例#2
0
        public JWork(cIW _IW, SignalListDef _SL, bool _restart, DOnExec _OnExec, DOnStatus _OnStatus = null)
        {
            IW         = _IW;
            SL         = _SL;
            onExec     = _OnExec;
            OnStatus   = _OnStatus;
            IsComplete = false;
            bank       = new Bank(IW);

            J.Add(jAlarm     = new JAlarmList());
            J.Add(jTransport = new JTransportStrobe(bank, SL, _IW));
            if (IW.Cross)
            {
                J.Add(jCollectCross     = new JCollect(bank, EUnit.Cross, IW));
                J.Add(jRectifierThCross = new JRectifierTh(ParAll.ST.Defect.Cross.Rectifiers, ParAll.CTS.Cross.Rectifier, true, false));
            }
            else
            {
                if (IW.SG)
                {
                    J.Add(jCollectCross = new JCollect(bank, EUnit.Cross, IW));
                }
            }
            if (IW.Line)
            {
                J.Add(jCollectLine     = new JCollect(bank, EUnit.Line, IW));
                J.Add(jRectifierThLine = new JRectifierTh(ParAll.ST.Defect.Line.Rectifiers, ParAll.CTS.Line.Rectifier, true, false));
                J.Add(jInverterTh      = new JInverterTh(ParAll.ST.Defect.Line.ComPortConverters,
                                                         ParAll.ST.Defect.Line.Converter,
                                                         ParAll.ST.TSSet.Current.Line.Frequency));
            }
            if (IW.Thick)
            {
                J.Add(jThick = new JThick(bank));
            }
            if (IW.SG)
            {
                J.Add(jWorkSG = new JWorkSG(bank, SL, null, _restart));
            }
            J.Add(jResult = new JResult(bank, SL, ParAll.ST.Defect.Some.CheckZonePeriod));
            //            J.Add(jNewTube = new JNewTube(ParAll.ST.Defect.IsDBS));
            J.Add(jBankResult = new JBankResult(_IW, bank, _OnExec, _OnStatus));
        }