Esempio n. 1
0
 /// <summary>
 /// The designated constructor for the <see cref="LinearStateEstimator.Measurements.PhasorGroup"/> class.
 /// </summary>
 /// <param name="internalID">The unique integer identifier for each instance of a <see cref="LinearStateEstimator.Measurements.PhasorGroup"/> object.</param>
 /// <param name="number">A descriptive number for the <see cref="LinearStateEstimator.Measurements.PhasorGroup"/> object.</param>
 /// <param name="name">A descriptive name for the <see cref="LinearStateEstimator.Measurements.PhasorGroup"/> object.</param>
 /// <param name="description">A description of the <see cref="LinearStateEstimator.Measurements.PhasorGroup"/> object.</param>
 /// <param name="positiveSequence">The <see cref="LinearStateEstimator.Measurements.Phasor"/> representing positive sequence.</param>
 /// <param name="phaseA">The <see cref="LinearStateEstimator.Measurements.Phasor"/> representing phase A.</param>
 /// <param name="phaseB">The <see cref="LinearStateEstimator.Measurements.Phasor"/> representing phase B.</param>
 /// <param name="phaseC">The <see cref="LinearStateEstimator.Measurements.Phasor"/> representing phase C.</param>
 /// <param name="statusWord">The <see cref="LinearStateEstimator.Measurements.StatusWord"/> from the source device for the <see cref="LinearStateEstimator.Measurements.Phasor"/> objects in this <see cref="PhasorGroup"/>.</param>
 public PhasorGroup(int internalID, int number, string name, string description, Phasor positiveSequence, Phasor phaseA, Phasor phaseB, Phasor phaseC, StatusWord statusWord)
 {
     m_internalID  = internalID;
     m_number      = number;
     m_name        = name;
     m_description = description;
     m_posSeq      = positiveSequence;
     m_negSeq      = new Phasor();
     m_negSeq.Measurement.BaseKV = m_posSeq.Measurement.BaseKV;
     m_negSeq.Estimate.BaseKV    = m_posSeq.Estimate.BaseKV;
     m_zeroSeq = new Phasor();
     m_zeroSeq.Measurement.BaseKV = m_posSeq.Measurement.BaseKV;
     m_zeroSeq.Estimate.BaseKV    = m_posSeq.Estimate.BaseKV;
     m_phaseA     = phaseA;
     m_phaseB     = phaseB;
     m_phaseC     = phaseC;
     m_statusWord = statusWord;
     m_negativeSequenceToPositiveSequenceRatioKey = "Undefined";
     m_measurementIsIncludedKey = "Undefined";
     InitializeDefaultParameters();
 }
        /// <summary>
        /// The designated constructor for the <see cref="SynchrophasorAnalytics.Measurements.CurrentInjectionPhasorGroup"/> class which specifies the information required by the <see cref="SynchrophasorAnalytics.Modeling.INetworkDescribable"/> interface and the <see cref="Phasor"/> objects for +, A, B, and C, the <see cref="SynchrophasorAnalytics.Measurements.StatusWord"/> and the <see cref="SynchrophasorAnalytics.Modeling.INetworkDescribable.InternalID"/> of the <see cref="SynchrophasorAnalytics.Measurements.CurrentInjectionPhasorGroup.MeasuredConnectedNode"/>.
        /// </summary>
        /// <param name="internalID">The unique integer identifier for each instance of a <see cref="SynchrophasorAnalytics.Measurements.CurrentInjectionPhasorGroup"/> object.</param>
        /// <param name="number">A descriptive number for the <see cref="SynchrophasorAnalytics.Measurements.CurrentInjectionPhasorGroup"/> object.</param>
        /// <param name="name">A descriptive name for the <see cref="SynchrophasorAnalytics.Measurements.CurrentInjectionPhasorGroup"/> object.</param>
        /// <param name="description">A description of the <see cref="SynchrophasorAnalytics.Measurements.CurrentInjectionPhasorGroup"/> object.</param>
        /// <param name="positiveSequence">The <see cref="Phasor"/> representing positive sequence.</param>
        /// <param name="phaseA">The <see cref="SynchrophasorAnalytics.Measurements.Phasor"/> representing phase A.</param>
        /// <param name="phaseB">The <see cref="SynchrophasorAnalytics.Measurements.Phasor"/> representing phase B.</param>
        /// <param name="phaseC">The <see cref="SynchrophasorAnalytics.Measurements.Phasor"/> representing phase C.</param>
        /// <param name="statusWord">The <see cref="SynchrophasorAnalytics.Measurements.StatusWord"/> from the source device for the <see cref="SynchrophasorAnalytics.Measurements.Phasor"/> objects in this <see cref="SynchrophasorAnalytics.Measurements.PhasorGroup"/>.</param>
        /// <param name="measuredConnectedNodeId">The <see cref="SynchrophasorAnalytics.Modeling.INetworkDescribable.InternalID"/> of the <see cref="SynchrophasorAnalytics.Measurements.CurrentInjectionPhasorGroup.MeasuredConnectedNode"/>.</param>
        /// <param name="directionConvention">Specifies whether the <see cref="SynchrophasorAnalytics.Measurements.CurrentInjectionPhasorGroup"/> is measured <see cref="SynchrophasorAnalytics.Measurements.CurrentInjectionDirectionConvention.IntoTheShunt"/> or <see cref="SynchrophasorAnalytics.Measurements.CurrentInjectionDirectionConvention.OutOfTheShunt"/>.</param>
        public CurrentInjectionPhasorGroup(int internalID, int number, string name, string description, Phasor positiveSequence, Phasor phaseA, Phasor phaseB, Phasor phaseC, StatusWord statusWord, int measuredConnectedNodeId, CurrentInjectionDirectionConvention directionConvention)
            : base(internalID, number, name, description, positiveSequence, phaseA, phaseB, phaseC, statusWord)
        {
            m_measuredConnectedNodeId        = measuredConnectedNodeId;
            m_measurementDirectionConvention = directionConvention;

            PositiveSequence.Measurement.Type = PhasorType.CurrentPhasor;
            PositiveSequence.Estimate.Type    = PhasorType.CurrentPhasor;

            NegativeSequence.Measurement.Type = PhasorType.CurrentPhasor;
            NegativeSequence.Estimate.Type    = PhasorType.CurrentPhasor;

            ZeroSequence.Measurement.Type = PhasorType.CurrentPhasor;
            ZeroSequence.Estimate.Type    = PhasorType.CurrentPhasor;

            PhaseA.Measurement.Type = PhasorType.CurrentPhasor;
            PhaseA.Estimate.Type    = PhasorType.CurrentPhasor;

            PhaseB.Measurement.Type = PhasorType.CurrentPhasor;
            PhaseB.Estimate.Type    = PhasorType.CurrentPhasor;

            PhaseC.Measurement.Type = PhasorType.CurrentPhasor;
            PhaseC.Estimate.Type    = PhasorType.CurrentPhasor;
        }
 /// <summary>
 /// A constructor which specifies the information required by the <see cref="SynchrophasorAnalytics.Modeling.INetworkDescribable"/> interface and the <see cref="SynchrophasorAnalytics.Measurements.Phasor"/> objects for +, A, B, and C, and the <see cref="SynchrophasorAnalytics.Measurements.StatusWord"/>
 /// </summary>
 /// <param name="internalID">The unique integer identifier for each instance of a <see cref="SynchrophasorAnalytics.Measurements.CurrentInjectionPhasorGroup"/> object.</param>
 /// <param name="number">A descriptive number for the <see cref="SynchrophasorAnalytics.Measurements.CurrentInjectionPhasorGroup"/> object.</param>
 /// <param name="name">A descriptive name for the <see cref="SynchrophasorAnalytics.Measurements.CurrentInjectionPhasorGroup"/> object.</param>
 /// <param name="description">A description of the <see cref="SynchrophasorAnalytics.Measurements.CurrentInjectionPhasorGroup"/> object.</param>
 /// <param name="positiveSequence">The <see cref="SynchrophasorAnalytics.Measurements.Phasor"/> representing positive sequence.</param>
 /// <param name="phaseA">The <see cref="SynchrophasorAnalytics.Measurements.Phasor"/> representing phase A.</param>
 /// <param name="phaseB">The <see cref="SynchrophasorAnalytics.Measurements.Phasor"/> representing phase B.</param>
 /// <param name="phaseC">The <see cref="SynchrophasorAnalytics.Measurements.Phasor"/> representing phase C.</param>
 /// <param name="statusWord">The <see cref="SynchrophasorAnalytics.Measurements.StatusWord"/> from the source device for the <see cref="SynchrophasorAnalytics.Measurements.Phasor"/> objects in this <see cref="SynchrophasorAnalytics.Measurements.PhasorGroup"/>.</param>
 /// <param name="directionConvention">Specifies whether the <see cref="SynchrophasorAnalytics.Measurements.CurrentInjectionPhasorGroup"/> is measured <see cref="SynchrophasorAnalytics.Measurements.CurrentInjectionDirectionConvention.IntoTheShunt"/> or <see cref="SynchrophasorAnalytics.Measurements.CurrentInjectionDirectionConvention.OutOfTheShunt"/>.</param>
 public CurrentInjectionPhasorGroup(int internalID, int number, string name, string description, Phasor positiveSequence, Phasor phaseA, Phasor phaseB, Phasor phaseC, StatusWord statusWord, CurrentInjectionDirectionConvention directionConvention)
     : this(internalID, number, name, description, positiveSequence, phaseA, phaseB, phaseC, statusWord, 0, directionConvention)
 {
 }
Esempio n. 4
0
        /// <summary>
        /// The designated constructor for the <see cref="SynchrophasorAnalytics.Measurements.VoltagePhasorGroup"/> class.
        /// </summary>
        /// <param name="internalID">The unique integer identifier for each instance of a <see cref="SynchrophasorAnalytics.Measurements.VoltagePhasorGroup"/> object.</param>
        /// <param name="number">A descriptive number for the <see cref="SynchrophasorAnalytics.Measurements.VoltagePhasorGroup"/> object.</param>
        /// <param name="name">A descriptive name for the <see cref="SynchrophasorAnalytics.Measurements.VoltagePhasorGroup"/> object.</param>
        /// <param name="description">A description of the <see cref="SynchrophasorAnalytics.Measurements.VoltagePhasorGroup"/> object.</param>
        /// <param name="positiveSequence">The <see cref="SynchrophasorAnalytics.Measurements.Phasor"/> representing positive sequence.</param>
        /// <param name="phaseA">The <see cref="SynchrophasorAnalytics.Measurements.Phasor"/> representing phase A.</param>
        /// <param name="phaseB">The <see cref="SynchrophasorAnalytics.Measurements.Phasor"/> representing phase B.</param>
        /// <param name="phaseC">The <see cref="SynchrophasorAnalytics.Measurements.Phasor"/> representing phase C.</param>
        /// <param name="statusWord">The <see cref="SynchrophasorAnalytics.Measurements.StatusWord"/> from the source device for the <see cref="SynchrophasorAnalytics.Measurements.Phasor"/> objects in this <see cref="SynchrophasorAnalytics.Measurements.PhasorGroup"/>.</param>
        /// <param name="measuredNode">The <see cref="SynchrophasorAnalytics.Modeling.Node"/> measured by this <see cref="SynchrophasorAnalytics.Measurements.VoltagePhasorGroup"/>.</param>
        public VoltagePhasorGroup(int internalID, int number, string name, string description, Phasor positiveSequence, Phasor phaseA, Phasor phaseB, Phasor phaseC, StatusWord statusWord, Node measuredNode)
            : base(internalID, number, name, description, positiveSequence, phaseA, phaseB, phaseC, statusWord)
        {
            MeasuredNode = measuredNode;

            PositiveSequence.Measurement.Type = PhasorType.VoltagePhasor;
            PositiveSequence.Estimate.Type    = PhasorType.VoltagePhasor;

            NegativeSequence.Measurement.Type = PhasorType.VoltagePhasor;
            NegativeSequence.Estimate.Type    = PhasorType.VoltagePhasor;

            ZeroSequence.Measurement.Type = PhasorType.VoltagePhasor;
            ZeroSequence.Estimate.Type    = PhasorType.VoltagePhasor;

            PhaseA.Measurement.Type = PhasorType.VoltagePhasor;
            PhaseA.Estimate.Type    = PhasorType.VoltagePhasor;

            PhaseB.Measurement.Type = PhasorType.VoltagePhasor;
            PhaseB.Estimate.Type    = PhasorType.VoltagePhasor;

            PhaseC.Measurement.Type = PhasorType.VoltagePhasor;
            PhaseC.Estimate.Type    = PhasorType.VoltagePhasor;
        }
Esempio n. 5
0
 /// <summary>
 /// A constructor which specifies the information require dby the <see cref="SynchrophasorAnalytics.Modeling.INetworkDescribable"/> interface, the <see cref="SynchrophasorAnalytics.Measurements.Phasor"/> objects for +, A, B, and C, and the measured <see cref="SynchrophasorAnalytics.Measurements.StatusWord"/>. The measured <see cref="SynchrophasorAnalytics.Modeling.Node"/> is instantiated with the default initializer to prevent null references.
 /// </summary>
 /// <param name="internalID">The unique integer identifier for each instance of a <see cref="SynchrophasorAnalytics.Measurements.VoltagePhasorGroup"/> object.</param>
 /// <param name="number">A descriptive number for the <see cref="SynchrophasorAnalytics.Measurements.VoltagePhasorGroup"/> object.</param>
 /// <param name="name">A descriptive name for the <see cref="SynchrophasorAnalytics.Measurements.VoltagePhasorGroup"/> object.</param>
 /// <param name="description">A description of the <see cref="SynchrophasorAnalytics.Measurements.VoltagePhasorGroup"/> object.</param>
 /// <param name="positiveSequence">The <see cref="SynchrophasorAnalytics.Measurements.Phasor"/> representing positive sequence.</param>
 /// <param name="phaseA">The <see cref="SynchrophasorAnalytics.Measurements.Phasor"/> representing phase A.</param>
 /// <param name="phaseB">The <see cref="SynchrophasorAnalytics.Measurements.Phasor"/> representing phase B.</param>
 /// <param name="phaseC">The <see cref="SynchrophasorAnalytics.Measurements.Phasor"/> representing phase C.</param>
 /// <param name="statusWord">The <see cref="SynchrophasorAnalytics.Measurements.StatusWord"/> from the source device for the <see cref="SynchrophasorAnalytics.Measurements.Phasor"/> objects in this <see cref="SynchrophasorAnalytics.Measurements.PhasorGroup"/>.</param>
 public VoltagePhasorGroup(int internalID, int number, string name, string description, Phasor positiveSequence, Phasor phaseA, Phasor phaseB, Phasor phaseC, StatusWord statusWord)
     : this(internalID, number, name, description, positiveSequence, phaseA, phaseB, phaseC, statusWord, new Node())
 {
 }
Esempio n. 6
0
        /// <summary>
        /// The designated constructor for the <see cref="LinearStateEstimator.Measurements.CurrentFlowPhasorGroup"/> class which specifies the information required by the <see cref="LinearStateEstimator.Modeling.INetworkDescribable"/> interface and the <see cref="LinearStateEstimator.Measurements.Phasor"/> objects for +, A, B, and C, the <see cref="StatusWord"/> and the <see cref="LinearStateEstimator.Modeling.INetworkDescribable.InternalID"/> of the <see cref="MeasuredFromNode"/> and <see cref="MeasuredToNode"/>.
        /// </summary>
        /// <param name="internalID">The unique integer identifier for each instance of a <see cref="LinearStateEstimator.Measurements.CurrentFlowPhasorGroup"/> object.</param>
        /// <param name="number">A descriptive number for the <see cref="LinearStateEstimator.Measurements.CurrentFlowPhasorGroup"/> object.</param>
        /// <param name="name">A descriptive name for the <see cref="LinearStateEstimator.Measurements.CurrentFlowPhasorGroup"/> object.</param>
        /// <param name="description">A description of the <see cref="LinearStateEstimator.Measurements.CurrentFlowPhasorGroup"/> object.</param>
        /// <param name="positiveSequence">The <see cref="LinearStateEstimator.Measurements.Phasor"/> representing positive sequence.</param>
        /// <param name="phaseA">The <see cref="LinearStateEstimator.Measurements.Phasor"/> representing phase A.</param>
        /// <param name="phaseB">The <see cref="LinearStateEstimator.Measurements.Phasor"/> representing phase B.</param>
        /// <param name="phaseC">The <see cref="LinearStateEstimator.Measurements.Phasor"/> representing phase C.</param>
        /// <param name="statusWord">The <see cref="LinearStateEstimator.Measurements.StatusWord"/> from the source device for the <see cref="LinearStateEstimator.Measurements.Phasor"/> objects in this <see cref="LinearStateEstimator.Measurements.PhasorGroup"/>.</param>
        /// <param name="measuredFromNodeID">The <see cref="LinearStateEstimator.Modeling.INetworkDescribable.InternalID"/> of the <see cref="LinearStateEstimator.Measurements.CurrentFlowPhasorGroup.MeasuredFromNode"/>.</param>
        /// <param name="measuredToNodeID">The <see cref="LinearStateEstimator.Modeling.INetworkDescribable.InternalID"/> of the <see cref="LinearStateEstimator.Measurements.CurrentFlowPhasorGroup.MeasuredToNode"/>.</param>
        public CurrentFlowPhasorGroup(int internalID, int number, string name, string description, Phasor positiveSequence, Phasor phaseA, Phasor phaseB, Phasor phaseC, StatusWord statusWord, int measuredFromNodeID, int measuredToNodeID)
            : base(internalID, number, name, description, positiveSequence, phaseA, phaseB, phaseC, statusWord)
        {
            m_measuredFromNodeID = measuredFromNodeID;
            m_measuredToNodeID   = measuredToNodeID;

            PositiveSequence.Measurement.Type = PhasorType.CurrentPhasor;
            PositiveSequence.Estimate.Type    = PhasorType.CurrentPhasor;
            PositiveSequence.Measurement.MeasurementVariance = 0.01;

            NegativeSequence.Measurement.Type = PhasorType.CurrentPhasor;
            NegativeSequence.Estimate.Type    = PhasorType.CurrentPhasor;
            NegativeSequence.Measurement.MeasurementVariance = 0.01;

            ZeroSequence.Measurement.Type = PhasorType.CurrentPhasor;
            ZeroSequence.Estimate.Type    = PhasorType.CurrentPhasor;
            ZeroSequence.Measurement.MeasurementVariance = 0.01;

            PhaseA.Measurement.Type = PhasorType.CurrentPhasor;
            PhaseA.Estimate.Type    = PhasorType.CurrentPhasor;
            PhaseA.Measurement.MeasurementVariance = 0.01;

            PhaseB.Measurement.Type = PhasorType.CurrentPhasor;
            PhaseB.Estimate.Type    = PhasorType.CurrentPhasor;
            PhaseB.Measurement.MeasurementVariance = 0.01;

            PhaseC.Measurement.Type = PhasorType.CurrentPhasor;
            PhaseC.Estimate.Type    = PhasorType.CurrentPhasor;
            PhaseC.Measurement.MeasurementVariance = 0.01;
        }
Esempio n. 7
0
 /// <summary>
 /// A constructor which specifies the information required by the <see cref="LinearStateEstimator.Modeling.INetworkDescribable"/> interface and the <see cref="LinearStateEstimator.Measurements.Phasor"/> objects for +, A, B, and C, and the <see cref="StatusWord"/>
 /// </summary>
 /// <param name="internalID">The unique integer identifier for each instance of a <see cref="LinearStateEstimator.Measurements.CurrentFlowPhasorGroup"/> object.</param>
 /// <param name="number">A descriptive number for the <see cref="LinearStateEstimator.Measurements.CurrentFlowPhasorGroup"/> object.</param>
 /// <param name="name">A descriptive name for the <see cref="LinearStateEstimator.Measurements.CurrentFlowPhasorGroup"/> object.</param>
 /// <param name="description">A description of the <see cref="LinearStateEstimator.Measurements.CurrentFlowPhasorGroup"/> object.</param>
 /// <param name="positiveSequence">The <see cref="LinearStateEstimator.Measurements.Phasor"/> representing positive sequence.</param>
 /// <param name="phaseA">The <see cref="LinearStateEstimator.Measurements.Phasor"/> representing phase A.</param>
 /// <param name="phaseB">The <see cref="LinearStateEstimator.Measurements.Phasor"/> representing phase B.</param>
 /// <param name="phaseC">The <see cref="LinearStateEstimator.Measurements.Phasor"/> representing phase C.</param>
 /// <param name="statusWord">The <see cref="LinearStateEstimator.Measurements.StatusWord"/> from the source device for the <see cref="LinearStateEstimator.Measurements.Phasor"/> objects in this <see cref="LinearStateEstimator.Measurements.PhasorGroup"/>.</param>
 public CurrentFlowPhasorGroup(int internalID, int number, string name, string description, Phasor positiveSequence, Phasor phaseA, Phasor phaseB, Phasor phaseC, StatusWord statusWord)
     : this(internalID, number, name, description, positiveSequence, phaseA, phaseB, phaseC, statusWord, 0, 0)
 {
 }