Class ComponentRuleParameters
Validation parameters for IComponent. This means interconnected entities.
Inherited Members
Namespace: SpiceSharp.Validation
Assembly: SpiceSharp.dll
Syntax
public class ComponentRuleParameters : ParameterSet, IParameterSet, ICloneable<ComponentRuleParameters>
Constructors
ComponentRuleParameters(IVariableFactory<IVariable>, IEqualityComparer<string>)
Initializes a new instance of the ComponentRuleParameters class.
Declaration
public ComponentRuleParameters(IVariableFactory<IVariable> factory, IEqualityComparer<string> comparer)
Parameters
Type | Name | Description |
---|---|---|
IVariableFactory<IVariable> | factory | The variable factory. |
IEqualityComparer<string> | comparer | The comparer for comparing variable names. |
Properties
Comparer
Gets the comparer used to compare variable names.
Declaration
public IEqualityComparer<string> Comparer { get; }
Property Value
Type | Description |
---|---|
IEqualityComparer<string> | The comparer. |
Factory
Gets the variables.
Declaration
public IVariableFactory<IVariable> Factory { get; }
Property Value
Type | Description |
---|---|
IVariableFactory<IVariable> | The variables. |
Methods
Clone()
Clones the instance.
Declaration
public ComponentRuleParameters Clone()
Returns
Type | Description |
---|---|
ComponentRuleParameters | The cloned instance. |
Remarks
We can't really do a deep clone for this. But both the factory and the comparer are supposed to be linking to the same thing anyway.