Class VoltageLoopRuleViolation
A rule violation of a VoltageLoopRule.
Implements
Inherited Members
Namespace: SpiceSharp.Validation
Assembly: SpiceSharp.dll
Syntax
public class VoltageLoopRuleViolation : IRuleViolation
Constructors
VoltageLoopRuleViolation(VoltageLoopRule, IRuleSubject, IVariable, IVariable)
Initializes a new instance of the VoltageLoopRuleViolation class.
Declaration
public VoltageLoopRuleViolation(VoltageLoopRule rule, IRuleSubject subject, IVariable first, IVariable second)
Parameters
Type | Name | Description |
---|---|---|
VoltageLoopRule | rule | The rule. |
IRuleSubject | subject | The subject. |
IVariable | first | The first node. |
IVariable | second | The second node. |
Properties
First
Gets the first node that is being fixed.
Declaration
public IVariable First { get; }
Property Value
Type | Description |
---|---|
IVariable | The first node. |
Rule
Gets the rule that was violated.
Declaration
public IRule Rule { get; }
Property Value
Type | Description |
---|---|
IRule | The violated rule. |
Second
Gets the second node that is being fixed.
Declaration
public IVariable Second { get; }
Property Value
Type | Description |
---|---|
IVariable | The second node. |
Subject
Gets the subject that caused the rule violation (if any).
Declaration
public IRuleSubject Subject { get; }
Property Value
Type | Description |
---|---|
IRuleSubject | The subject that caused the violation. |