public static void Init()
 {
     System.IO.Directory.CreateDirectory(Dir);
     SDList = new List<SecData>();
     SDS = new SecDataSmooth();
     OxygenRate = new RollingAverage(300);
 }
        public HeatDataSmoother(int lengthBuff = 50)
        {
            CO = new RollingAverage(lengthBuff);
            CO2 = new RollingAverage(lengthBuff);

            LanceHeigth = 0;
            LanceHeigthPrevious = 0;
            Oxygen = 0.0;
            HeatIsStarted = false;
        }
        public HeatDataReceiver(int smoothPeriod, int lengthBuff = 50)
        {
            SmoothPeriod = smoothPeriod;

            CO = new RollingAverage(lengthBuff);
            CO2 = new RollingAverage(lengthBuff);
            H2 = new RollingAverage(lengthBuff);
            O2 = new RollingAverage(lengthBuff);
            N2 = new RollingAverage(lengthBuff);
            Ar = new RollingAverage(lengthBuff);
            OffGasT = new RollingAverage(lengthBuff);
            OffGasV = new RollingAverage(lengthBuff);
            OffGasDecompression = new RollingAverage(lengthBuff);

            HeatIsStarted = false;
            LanceHeight = 0;
            QO2 = 0.0;
            QO2I = 0;
        }
 public static void Init()
 {
     m_sw = new Stopwatch();
     DataCurrentHeat = new HeatData();
     DataSmoothCurrent = new HeatDataSmoother(100);
     m_smoothSecondLancePosition = new RollingAverage();
     TotalCarbonMass = 0.0;
     RemainCarbonMass = 0.0;
     RemainCarbonPercent = 0.0;
     m_maxDownLancePosition = 10000;
     m_lanceSpeed = 0.0;
     TotalCarbonMassCalculated = false;
     GasCarbonMassFinished = false;
     m_noFixData = true;
     HeatIsStarted = false;
 }
 public HeatDataSmoother(int lengthBuff = 50)
 {
     CarbonMonoxideVolumePercent = new RollingAverage(lengthBuff);
     CarbonMonoxideVolumePercentPrevious = new RollingAverage(lengthBuff);
     CarbonOxideVolumePercent = new RollingAverage(lengthBuff);
     CarbonOxideVolumePercentPrevious = new RollingAverage(lengthBuff);
     OffgasVolumeRate = new RollingAverage(lengthBuff);
     HeightLanceCentimeters = new RollingAverage(lengthBuff);
     OxygenVolumeRate = new RollingAverage(lengthBuff);
     OxygenVolumeCurrent = new RollingAverage(lengthBuff);
 }
 public SecDataSmooth()
 {
     LanceHeigth = new RollingAverage();
     OxygenRate = new RollingAverage();
     H2Perc = new RollingAverage();
     O2Perc = new RollingAverage();
     COPerc = new RollingAverage();
     CO2Perc = new RollingAverage();
     N2Perc = new RollingAverage();
     ArPerc = new RollingAverage();
     VGas = new RollingAverage();
     TGas = new RollingAverage();
     CCalc = new RollingAverage();
     CSubLance = 0.0;
     Ignition = 0;
     Decompression = new RollingAverage();
     QOxygenCL = new RollingAverage();
     POxygenCL = new RollingAverage();
     TOxygenCL = new RollingAverage();
     DPOxygenCL = new RollingAverage();
     QNitrogenLanceWindow = new RollingAverage();
     QNitrogenBoiler = new RollingAverage();
     RB5 = -1.0;
     RB6 = -1.0;
     RB7 = -1.0;
     RB8 = -1.0;
     RB9 = -1.0;
     RB10 = -1.0;
     RB11 = -1.0;
     RB12 = -1.0;
     NeuralC = new RollingAverage();
     UniversalC = -1.0;
 }
 public static void Init()
 {
     m_sw = new Stopwatch();
     CurrentHeatResult = new MFCMDataFull();
     DataCurrentHeat = new HeatData();
     //CIterator.DataCurrentHeat.MatrixStateData = Program.MFCMDataGenerate(Program.MatrixStateDataFull); //!!
     DataArchSec = new SecondDataArch();
     DataSmoothCurrent = new HeatDataSmoother(100);
     m_smoothSecondLancePosition = new RollingAverage();
     TotalCarbonMass = 0.0;
     RemainCarbonMass = 0.0;
     RemainCarbonPercent = 0.0;
     m_maxDownLancePosition = 10000;
     m_lanceSpeed = 0.0;
     TotalCarbonMassCalculated = false;
     GasCarbonMassFinished = false;
     m_noFixData = true;
 }
 public Listener()
 {
     CarbonMonoxideVolumePercentSmooth = new RollingAverage(150);
 }
 public static void Init()
 {
     Oxigen = new RollingAverage();
     CarbonMonoxide = new RollingAverage();
     HotMetallMass = 0;
     HeatNumber = 0;
     m_oxygenStartValue = 0;
     m_isNotfiredB = true;
     m_isNotfiredK = true;
     m_isNotfiredPrognosis = true;
     TargetCk = -999; // не достигнем
     TargetCku = 0; // трубка 0
     Ck = 0;
     ZondIsAccepted = false;
     SIdK = SIdGen(); // присваиваем id текущей сессии для куркина
     IsBeganMetering = false;
     EndMeteringAccept = false;
     EndMeteringAlow = false;
     SublanceHeigth = Int32.MaxValue;
     PeriodNumber = 0;
     LastIterateTime = new DateTime();
     SecondFromBeginMFM = 0;
     X1 = 0.0;
     Y1 = 0.0;
     Xn = 0.0;
     Yn = 0.0;
     PrognosisMeterTime = 0.0;
     Item1IsFixed = false;
 }