Class Rules
Necessary rules for biasing simulations.
Implements
Inherited Members
Namespace: SpiceSharp.Simulations.Biasing
Assembly: SpiceSharp.dll
Syntax
public class Rules : BaseRules, IRules, IParameterSetCollection, IParameterSet, IEnumerable<IRule>, IEnumerable, IParameterized<ComponentRuleParameters>
Constructors
Rules(IVariableFactory<IVariable>, IEqualityComparer<string>)
Initializes a new instance of the Rules class.
Declaration
public Rules(IVariableFactory<IVariable> factory, IEqualityComparer<string> comparer)
Parameters
| Type | Name | Description |
|---|---|---|
| IVariableFactory<IVariable> | factory | The variable factory. |
| IEqualityComparer<string> | comparer | The comparer for variable names. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException | Thrown if |
Properties
Parameters
Gets the parameter set.
Declaration
public ComponentRuleParameters Parameters { get; }
Property Value
| Type | Description |
|---|---|
| ComponentRuleParameters | The parameter set. |
Methods
GetEnumerator()
Returns an enumerator that iterates through the collection.
Declaration
public override IEnumerator<IRule> GetEnumerator()
Returns
| Type | Description |
|---|---|
| IEnumerator<IRule> | An enumerator that can be used to iterate through the collection. |