/// <summary> /// A constructor for the <see cref="SynchrophasorAnalytics.Modeling.SeriesBranchBase"/> which takes as input the <see cref="SynchrophasorAnalytics.Modeling.INetworkDescribable"/> parameters and the <see cref="SynchrophasorAnalytics.Modeling.SwitchingDeviceNormalState"/> of the <see cref="SynchrophasorAnalytics.Modeling.SwitchingDeviceBase"/> as well as the internal id of the from node and to node. /// </summary> /// <param name="internalID">An integer identifier for each <see cref="SynchrophasorAnalytics.Modeling.SwitchingDeviceBase"/> which is intended to be unique among other objects of the same type.</param> /// <param name="number">A descriptive integer for the instance of the <see cref="SynchrophasorAnalytics.Modeling.SwitchingDeviceBase"/>. There are no restrictions on uniqueness. </param> /// <param name="name">The string name of the instance of the <see cref="SynchrophasorAnalytics.Modeling.SwitchingDeviceBase"/>.</param> /// <param name="description">A string description of the instance of the <see cref="SynchrophasorAnalytics.Modeling.SwitchingDeviceBase"/>.</param> /// <param name="normalState">The normal or default state of the switch. Either <see cref="SynchrophasorAnalytics.Modeling.SwitchingDeviceNormalState.Open"/> or <see cref="SynchrophasorAnalytics.Modeling.SwitchingDeviceNormalState.Closed"/></param> /// <param name="fromNodeID">The <see cref="SynchrophasorAnalytics.Modeling.Node.InternalID"/> of the <see cref="SynchrophasorAnalytics.Modeling.SwitchingDeviceBase.FromNode"/>.</param> /// <param name="toNodeID">The <see cref="SynchrophasorAnalytics.Modeling.Node.InternalID"/> of the <see cref="SynchrophasorAnalytics.Modeling.SwitchingDeviceBase.ToNode"/>.</param> public SwitchingDeviceBase(int internalID, int number, string name, string description, SwitchingDeviceNormalState normalState, int fromNodeID, int toNodeID) { m_internalID = internalID; m_number = number; m_name = name; m_description = description; m_normalState = normalState; m_fromNodeID = fromNodeID; m_toNodeID = toNodeID; RemoveFromManualAndRevertToDefault(); }
/// <summary> /// A constructor for the <see cref="LinearStateEstimator.Modeling.SeriesBranchBase"/> which takes as input the <see cref="LinearStateEstimator.Modeling.INetworkDescribable"/> parameters and the <see cref="LinearStateEstimator.Modeling.SwitchingDeviceNormalState"/> of the <see cref="LinearStateEstimator.Modeling.SwitchingDeviceBase"/> as well as the internal id of the from node and to node. /// </summary> /// <param name="internalID">An integer identifier for each <see cref="LinearStateEstimator.Modeling.SwitchingDeviceBase"/> which is intended to be unique among other objects of the same type.</param> /// <param name="number">A descriptive integer for the instance of the <see cref="LinearStateEstimator.Modeling.SwitchingDeviceBase"/>. There are no restrictions on uniqueness. </param> /// <param name="name">The string name of the instance of the <see cref="LinearStateEstimator.Modeling.SwitchingDeviceBase"/>.</param> /// <param name="description">A string description of the instance of the <see cref="LinearStateEstimator.Modeling.SwitchingDeviceBase"/>.</param> /// <param name="normalState">The normal or default state of the switch. Either <see cref="LinearStateEstimator.Modeling.SwitchingDeviceNormalState.Open"/> or <see cref="LinearStateEstimator.Modeling.SwitchingDeviceNormalState.Closed"/></param> /// <param name="fromNodeID">The <see cref="LinearStateEstimator.Modeling.Node.InternalID"/> of the <see cref="LinearStateEstimator.Modeling.SwitchingDeviceBase.FromNode"/>.</param> /// <param name="toNodeID">The <see cref="LinearStateEstimator.Modeling.Node.InternalID"/> of the <see cref="LinearStateEstimator.Modeling.SwitchingDeviceBase.ToNode"/>.</param> public SwitchingDeviceBase(int internalID, int number, string name, string description, SwitchingDeviceNormalState normalState, int fromNodeID, int toNodeID) { m_internalID = internalID; m_number = number; m_name = name; m_description = description; m_normalState = normalState; m_fromNodeID = fromNodeID; m_toNodeID = toNodeID; m_useInferredStateAsActualProxy = false; m_crossDeviceAngleDeltaThresholdInDegrees = 0.2; m_crossDevicePerUnitMagnitudeThreshold = 0.2; m_crossDeviceTotalVectorDeltaThreshold = 0.2; RemoveFromManualAndRevertToDefault(); }
/// <summary> /// A constructor for the <see cref="LinearStateEstimator.Modeling.SeriesBranchBase"/> which takes as input the <see cref="LinearStateEstimator.Modeling.INetworkDescribable"/> parameters and the <see cref="LinearStateEstimator.Modeling.SwitchingDeviceNormalState"/> of the <see cref="LinearStateEstimator.Modeling.SwitchingDeviceBase"/>. /// </summary> /// <param name="internalID">An integer identifier for each <see cref="LinearStateEstimator.Modeling.SwitchingDeviceBase"/> which is intended to be unique among other objects of the same type.</param> /// <param name="number">A descriptive integer for the instance of the <see cref="LinearStateEstimator.Modeling.SwitchingDeviceBase"/>. There are no restrictions on uniqueness. </param> /// <param name="name">The string name of the instance of the <see cref="LinearStateEstimator.Modeling.SwitchingDeviceBase"/>.</param> /// <param name="description">A string description of the instance of the <see cref="LinearStateEstimator.Modeling.SwitchingDeviceBase"/>.</param> /// <param name="normalState">The normal or default state of the switch. Either <see cref="LinearStateEstimator.Modeling.SwitchingDeviceNormalState.Open"/> or <see cref="LinearStateEstimator.Modeling.SwitchingDeviceNormalState.Closed"/></param> public SwitchingDeviceBase(int internalID, int number, string name, string description, SwitchingDeviceNormalState normalState) : this(internalID, number, name, description, normalState, 0, 0) { }
/// <summary> /// A constructor for the <see cref="LinearStateEstimator.Modeling.CircuitBreaker"/> class which requires all of the properties defined by the <see cref="LinearStateEstimator.Modeling.INetworkDescribable"/> interface and requires both information about the input signal and information about its location in the network. /// </summary> /// <param name="internalID">A integer identifier for the instance of the <see cref="LinearStateEstimator.Modeling.CircuitBreaker"/> which is intended to be unique among other objects of the same type.</param> /// <param name="number">A descriptive integer for the instance of the <see cref="LinearStateEstimator.Modeling.CircuitBreaker"/>. There are no restrictions on uniqueness.</param> /// <param name="name">A string name of the instance of the <see cref="LinearStateEstimator.Modeling.CircuitBreaker"/>.</param> /// <param name="description">A string description of the <see cref="LinearStateEstimator.Modeling.CircuitBreaker"/>.</param> /// <param name="normalState">The <i>NORMAL</i> physical state of the <see cref="LinearStateEstimator.Modeling.CircuitBreaker"/>; the state the breaker was designed to operate in most of the time. Defined by <see cref="LinearStateEstimator.Modeling.SwitchingDeviceNormalState"/>.</param> /// <param name="fromNodeID">The <see cref="LinearStateEstimator.Modeling.Node.InternalID"/> of the <b>From</b> <see cref="LinearStateEstimator.Modeling.Node"/></param> /// <param name="toNodeID">The <see cref="LinearStateEstimator.Modeling.Node.InternalID"/> of the <b>To</b> <see cref="LinearStateEstimator.Modeling.Node"/></param> /// <param name="status">Contains the logical state from an input measurement. Each <see cref="LinearStateEstimator.Modeling.CircuitBreaker"/> can reference only one <see cref="LinearStateEstimator.Measurements.BreakerStatus"/>.</param> public CircuitBreaker(int internalID, int number, string name, string description, SwitchingDeviceNormalState normalState, int fromNodeID, int toNodeID, BreakerStatus status) : base(internalID, number, name, description, normalState, fromNodeID, toNodeID) { m_breakerStatus = status; }
/// <summary> /// A constructor for the <see cref="LinearStateEstimator.Modeling.CircuitBreaker"/> class which requires all of the properties defined by the <see cref="LinearStateEstimator.Modeling.INetworkDescribable"/> interface and requires the <b>From</b> and <b>To</b> node to be identified but does not require information about the input signal. /// </summary> /// <param name="internalID">A integer identifier for the instance of the <see cref="LinearStateEstimator.Modeling.CircuitBreaker"/> which is intended to be unique among other objects of the same type.</param> /// <param name="number">A descriptive integer for the instance of the <see cref="LinearStateEstimator.Modeling.CircuitBreaker"/>. There are no restrictions on uniqueness.</param> /// <param name="name">A string name of the instance of the <see cref="LinearStateEstimator.Modeling.CircuitBreaker"/>.</param> /// <param name="description">A string description of the <see cref="LinearStateEstimator.Modeling.CircuitBreaker"/>.</param> /// <param name="normalState">The <i>NORMAL</i> physical state of the <see cref="LinearStateEstimator.Modeling.CircuitBreaker"/>; the state the breaker was designed to operate in most of the time. Defined by <see cref="LinearStateEstimator.Modeling.SwitchingDeviceNormalState"/>.</param> /// <param name="fromNodeID">The <see cref="LinearStateEstimator.Modeling.Node.InternalID"/> of the <b>From</b> <see cref="LinearStateEstimator.Modeling.Node"/></param> /// <param name="toNodeID">The <see cref="LinearStateEstimator.Modeling.Node.InternalID"/> of the <b>To</b> <see cref="LinearStateEstimator.Modeling.Node"/></param> public CircuitBreaker(int internalID, int number, string name, string description, SwitchingDeviceNormalState normalState, int fromNodeID, int toNodeID) : this(internalID, number, name, description, normalState, fromNodeID, toNodeID, new BreakerStatus()) { }
/// <summary> /// A constructor for the <see cref="LinearStateEstimator.Modeling.CircuitBreaker"/> class which requires all of the properties defined by the <see cref="LinearStateEstimator.Modeling.INetworkDescribable"/> interface and requires the input signal reference but does not require informatino about its location in the network. /// </summary> /// <param name="internalID">A integer identifier for the instance of the <see cref="LinearStateEstimator.Modeling.CircuitBreaker"/> which is intended to be unique among other objects of the same type.</param> /// <param name="number">A descriptive integer for the instance of the <see cref="LinearStateEstimator.Modeling.CircuitBreaker"/>. There are no restrictions on uniqueness.</param> /// <param name="name">A string name of the instance of the <see cref="LinearStateEstimator.Modeling.CircuitBreaker"/>.</param> /// <param name="description">A string description of the <see cref="LinearStateEstimator.Modeling.CircuitBreaker"/>.</param> /// <param name="normalState">The <i>NORMAL</i> physical state of the <see cref="LinearStateEstimator.Modeling.CircuitBreaker"/>; the state the breaker was designed to operate in most of the time. Defined by <see cref="LinearStateEstimator.Modeling.SwitchingDeviceNormalState"/>.</param> /// <param name="status">Contains the logical state from an input measurement. Each <see cref="LinearStateEstimator.Modeling.CircuitBreaker"/> can reference only one <see cref="LinearStateEstimator.Measurements.BreakerStatus"/>.</param> public CircuitBreaker(int internalID, int number, string name, string description, SwitchingDeviceNormalState normalState, BreakerStatus status) : this(internalID, number, name, description, normalState, 0, 0, status) { }