Exemple #1
0
        /// <summary>
        /// Performs a deep copy of the <see cref="CurrentFlowPhasorGroup"/> object.
        /// </summary>
        /// <returns>A deep copy of the target <see cref="CurrentFlowPhasorGroup"/>.</returns>
        public CurrentFlowPhasorGroup Copy()
        {
            CurrentFlowPhasorGroup copy = (CurrentFlowPhasorGroup)this.MemberwiseClone();

            copy.Status           = this.Status.Copy();
            copy.PositiveSequence = PositiveSequence.Copy();
            copy.PhaseA           = PhaseA.Copy();
            copy.PhaseB           = PhaseB.Copy();
            copy.PhaseC           = PhaseC.Copy();
            return(copy);
        }
Exemple #2
0
        /// <summary>
        /// The designated constructor for the <see cref="LinearStateEstimator.Measurements.ComplexPowerGroup"/> class.
        /// </summary>
        /// <param name="voltage">The <see cref="LinearStateEstimator.Measurements.VoltagePhasorGroup"/> to use to calculate the complex power.</param>
        /// <param name="current">The <see cref="LinearStateEstimator.Measurements.CurrentFlowPhasorGroup"/> to use to calculate the complex power.</param>
        public ComplexPowerGroup(VoltagePhasorGroup voltage, CurrentFlowPhasorGroup current)
        {
            m_voltage = voltage;
            m_current = current;
            PositiveSequence.Measurement.BaseKV = m_voltage.PositiveSequence.Measurement.BaseKV;
            PositiveSequence.Estimate.BaseKV    = m_voltage.PositiveSequence.Estimate.BaseKV;

            PhaseA.Measurement.BaseKV = m_voltage.PhaseA.Measurement.BaseKV;
            PhaseA.Estimate.BaseKV    = m_voltage.PhaseA.Estimate.BaseKV;

            PhaseB.Measurement.BaseKV = m_voltage.PhaseB.Measurement.BaseKV;
            PhaseB.Estimate.BaseKV    = m_voltage.PhaseB.Estimate.BaseKV;

            PhaseC.Measurement.BaseKV = m_voltage.PhaseC.Measurement.BaseKV;
            PhaseC.Estimate.BaseKV    = m_voltage.PhaseC.Estimate.BaseKV;

            InternalID  = m_voltage.InternalID;
            Acronym     = "POWER";
            Description = m_voltage.Description + " | " + m_current.Description;
            Name        = m_voltage.Name + " | " + m_current.Name;
            Number      = m_voltage.Number;
        }