Class VoltageSwitchModel
A model for a VoltageSwitch
Inheritance
VoltageSwitchModel
Implements
Inherited Members
Namespace: SpiceSharp.Components
Assembly: SpiceSharp.dll
Syntax
public class VoltageSwitchModel : Entity<VoltageModelParameters>, IEntity, IParameterSetCollection, IParameterSet, ICloneable<IEntity>, IParameterized<VoltageModelParameters>
Constructors
VoltageSwitchModel(string)
Initializes a new instance of the VoltageSwitchModel class.
Declaration
public VoltageSwitchModel(string name)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | The name of the model |
Methods
CreateBehaviors(ISimulation)
Creates the behaviors and stores them in the specified container.
Declaration
public override void CreateBehaviors(ISimulation simulation)
Parameters
| Type | Name | Description |
|---|---|---|
| ISimulation | simulation | The simulation. |
Overrides
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException | Thrown if |
| ArgumentException | Thrown if the simulation does not use an IComplexSimulationState. |
| TypeNotFoundException | Thrown if a required behavior or parameter set could not be found. |
| AmbiguousTypeException | Thrown if a behavior or parameter set could not be resolved unambiguously. |