Class CurrentSwitchModel
A model for a CurrentSwitch
Inheritance
CurrentSwitchModel
  Implements
Inherited Members
Namespace: SpiceSharp.Components
Assembly: SpiceSharp.dll
Syntax
public class CurrentSwitchModel : Entity<CurrentModelParameters>, IEntity, IParameterSetCollection, IParameterSet, ICloneable<IEntity>, IParameterized<CurrentModelParameters>Constructors
CurrentSwitchModel(string)
Initializes a new instance of the CurrentSwitchModel class.
Declaration
public CurrentSwitchModel(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. |