Ejemplo n.º 1
0
        /// <summary>
        /// Performs a deep copy of the <see cref="LinearStateEstimator.Measurements.PhasorMeasurement"/>.
        /// </summary>
        /// <returns>A deep copy of the target <see cref="LinearStateEstimator.Measurements.PhasorMeasurement"/>.</returns>
        public new PhasorMeasurement DeepCopy()
        {
            PhasorMeasurement copy = (PhasorMeasurement)this.MemberwiseClone();

            copy.BaseKV = BaseKV.DeepCopy();
            copy.Type   = Type;
            return(copy);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Performs a deep copy of the <see cref="LinearStateEstimator.Measurements.PhasorEstimate"/> object.
        /// </summary>
        /// <returns>A deep copy of the target <see cref="LinearStateEstimator.Measurements.PhasorEstimate"/> object.</returns>
        public PhasorEstimate Copy()
        {
            PhasorEstimate copy = (PhasorEstimate)this.MemberwiseClone();

            copy.BaseKV = BaseKV.DeepCopy();
            copy.Type   = Type;
            return(copy);
        }