Exemplo n.º 1
0
        /// <summary>
        /// Initialization of copies
        /// </summary>
        private void SetUp()
        {
            foreach (AnalogValue av in AnalogPoints)
            {
                AnalogPointsCopy.Add(av);
            }

            foreach (DiscreteValue dv in DiscretPoints)
            {
                DiscretPointsCopy.Add(dv);
            }

            foreach (SynchronousMachine sm in Ders.Values)
            {
                DersCopy.Add(sm.GlobalId, sm);
            }
        }
Exemplo n.º 2
0
        /// <summary>
        /// Radi inicijalizaciju kopije
        /// </summary>
        private void SetUp()
        {
            foreach (AnalogValue av in AnalogPointsOriginal)
            {
                AnalogPointsCopy.Add(av);
            }

            foreach (DiscreteValue dv in DiscretePointsOriginal)
            {
                DiscretePointsCopy.Add(dv);
            }

            foreach (SynchronousMachine sm in DersOriginal)
            {
                DersCopy.Add(sm);
            }
        }