Class BipolarJunctionTransistor
A bipolar junction transistor (BJT).
Inheritance
BipolarJunctionTransistor
Implements
Inherited Members
Namespace: SpiceSharp.Components
Assembly: SpiceSharp.dll
Syntax
[Pin(0, "Collector")]
[Pin(1, "Base")]
[Pin(2, "Emitter")]
[Pin(3, "Substrate")]
public class BipolarJunctionTransistor : Component<Parameters>, IComponent, IEntity, IParameterSetCollection, IParameterSet, ICloneable<IEntity>, IRuleSubject, IParameterized<Parameters>
Constructors
BipolarJunctionTransistor(string)
Initializes a new instance of the BipolarJunctionTransistor class.
Declaration
public BipolarJunctionTransistor(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | The name of the device. |
BipolarJunctionTransistor(string, string, string, string, string, string)
Initializes a new instance of the BipolarJunctionTransistor class.
Declaration
public BipolarJunctionTransistor(string name, string c, string b, string e, string s, string model)
Parameters
Type | Name | Description |
---|---|---|
string | name | The name of the device. |
string | c | The collector node. |
string | b | The base node. |
string | e | The emitter node. |
string | s | The substrate node. |
string | model | The model. |
Fields
PinCount
The pin count for a bipolar junction transistor.
Declaration
[ParameterName("pincount")]
[ParameterInfo("Number of pins")]
public const int PinCount = 4
Field Value
Type | Description |
---|---|
int |
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. |