Show / Hide Table of Contents

Class VoltageLoopRule

An implementation for a IAppliedVoltageRule. This class will check for voltage loops.

Inheritance
object
VoltageLoopRule
Implements
IAppliedVoltageRule
IRule
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: SpiceSharp.Validation
Assembly: SpiceSharp.dll
Syntax
public class VoltageLoopRule : IAppliedVoltageRule, IRule

Properties

ViolationCount

Gets the number of violations of this rule.

Declaration
public int ViolationCount { get; }
Property Value
Type Description
int

The violation count.

Violations

Gets the rule violations.

Declaration
public IEnumerable<IRuleViolation> Violations { get; }
Property Value
Type Description
IEnumerable<IRuleViolation>

The rule violations.

Methods

Fix(IRuleSubject, IVariable, IVariable)

Fixes the voltage difference between two node variables.

Declaration
public void Fix(IRuleSubject subject, IVariable a, IVariable b)
Parameters
Type Name Description
IRuleSubject subject

The subject that applies to the rule.

IVariable a

The first variable.

IVariable b

The second variable.

Reset()

Resets the rule.

Declaration
public void Reset()

Implements

IAppliedVoltageRule
IRule

Extension Methods

Utility.ThrowIfNull<T>(T, string)

See Also

IAppliedVoltageRule
In this article
Back to top Generated by DocFX