Class FloatingNodeRuleViolation
An IRuleViolation for a FloatingNodeRule.
Implements
Inherited Members
Namespace: SpiceSharp.Validation
Assembly: SpiceSharp.dll
Syntax
public class FloatingNodeRuleViolation : IRuleViolation
Constructors
FloatingNodeRuleViolation(IRule, IVariable, IVariable, ConductionTypes)
Initializes a new instance of the FloatingNodeRuleViolation class.
Declaration
public FloatingNodeRuleViolation(IRule rule, IVariable floatingVariable, IVariable fixedVariable, ConductionTypes type)
Parameters
| Type | Name | Description |
|---|---|---|
| IRule | rule | The rule. |
| IVariable | floatingVariable | The floating node variable. |
| IVariable | fixedVariable | The fixed node variable. |
| ConductionTypes | type | The path type. |
Properties
FixedVariable
Gets the fixed node variable.
Declaration
public IVariable FixedVariable { get; }
Property Value
| Type | Description |
|---|---|
| IVariable | The fixed node variable. |
FloatingVariable
Gets the floating node variable.
Declaration
public IVariable FloatingVariable { get; }
Property Value
| Type | Description |
|---|---|
| IVariable | The floating node variable. |
Rule
Gets the rule that was violated.
Declaration
public IRule Rule { get; }
Property Value
| Type | Description |
|---|---|
| IRule | The violated rule. |
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. |
Type
Gets the type of connection to the fixed variable.
Declaration
public ConductionTypes Type { get; }
Property Value
| Type | Description |
|---|---|
| ConductionTypes | The type. |