Ejemplo n.º 1
0
        private void InsertPreviousRun(VoltVarController previousFrame)
        {
            m_substationInformation.ConsecCap = previousFrame.SubstationInformation.ConsecCap;
            m_substationInformation.ConsecTap = previousFrame.SubstationInformation.ConsecTap;
            m_substationInformation.Ntdel     = previousFrame.SubstationInformation.Ntdel;
            m_substationInformation.Ncdel     = previousFrame.SubstationInformation.Ncdel;
            m_substationInformation.OldDay    = previousFrame.SubstationInformation.OldDay;

            for (int i = 0; i < m_substationAlarmDevice.ZNTX; i++)
            {
                m_controlTransformers[i].CtlDone = previousFrame.ControlTransformers[i].CtlDone;
                m_controlTransformers[i].TapV    = previousFrame.ControlTransformers[i].TapV;
                m_controlTransformers[i].MvrV    = previousFrame.ControlTransformers[i].MvrV;
                m_controlTransformers[i].PrevCtl = previousFrame.ControlTransformers[i].PrevCtl;
            }

            for (int i = 0; i < m_substationAlarmDevice.ZNCP; i++)
            {
                m_controlCapacitorBanks[i].CtlDone = previousFrame.ControlCapacitorBanks[i].CtlDone;
                m_controlCapacitorBanks[i].PrevCtl = previousFrame.ControlCapacitorBanks[i].PrevCtl;
                m_controlCapacitorBanks[i].NcTrip  = previousFrame.ControlCapacitorBanks[i].NcTrip;
                m_controlCapacitorBanks[i].NcClose = previousFrame.ControlCapacitorBanks[i].NcClose;
                m_controlCapacitorBanks[i].TripEx  = previousFrame.ControlCapacitorBanks[i].TripEx;
                m_controlCapacitorBanks[i].CloseEx = previousFrame.ControlCapacitorBanks[i].CloseEx;
            }
        }
Ejemplo n.º 2
0
        public static VoltVarController DeserializeFromXml(string pathName)
        {
            try
            {
                VoltVarController voltVarController = null;

                XmlSerializer deserializer = new XmlSerializer(typeof(VoltVarController));

                StreamReader reader = new StreamReader(pathName);

                voltVarController = (VoltVarController)deserializer.Deserialize(reader);

                reader.Close();

                return(voltVarController);
            }
            catch (Exception exception)
            {
                throw new Exception("Failed to Deserialize");
            }
        }
Ejemplo n.º 3
0
 public void ReadPreviousRun(VoltVarController previousFrame)
 {
     InsertPreviousRun(previousFrame);
 }