Class LosslessTransmissionLine
A lossless transmission line
Inheritance
Implements
Inherited Members
Namespace: SpiceSharp.Components
Assembly: SpiceSharp.dll
Syntax
[Pin(0, "Pos1")]
[Pin(1, "Neg1")]
[Pin(2, "Pos2")]
[Pin(3, "Neg2")]
[Connected(0, 2)]
[Connected(1, 3)]
[VoltageDriver(0, 2)]
[VoltageDriver(1, 3)]
public class LosslessTransmissionLine : Component<Parameters>, IComponent, IEntity, IParameterSetCollection, IParameterSet, ICloneable<IEntity>, IRuleSubject, IParameterized<Parameters>
Constructors
LosslessTransmissionLine(string)
Initializes a new instance of the LosslessTransmissionLine class.
Declaration
public LosslessTransmissionLine(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | The name of the entity. |
Exceptions
Type | Condition |
---|---|
ArgumentNullException | Thrown if |
LosslessTransmissionLine(string, string, string, string, string)
Initializes a new instance of the LosslessTransmissionLine class.
Declaration
public LosslessTransmissionLine(string name, string pos1, string neg1, string pos2, string neg2)
Parameters
Type | Name | Description |
---|---|---|
string | name | The name of the entity. |
string | pos1 | The positive terminal on one side. |
string | neg1 | The negative terminal on one side. |
string | pos2 | The positive terminal on the other side. |
string | neg2 | The negative terminal on the other side. |
Exceptions
Type | Condition |
---|---|
ArgumentNullException | Thrown if |
LosslessTransmissionLine(string, string, string, string, string, double, double)
Initializes a new instance of the LosslessTransmissionLine class.
Declaration
public LosslessTransmissionLine(string name, string pos1, string neg1, string pos2, string neg2, double impedance, double delay)
Parameters
Type | Name | Description |
---|---|---|
string | name | The name of the entity. |
string | pos1 | The positive terminal on one side. |
string | neg1 | The negative terminal on one side. |
string | pos2 | The positive terminal on the other side. |
string | neg2 | The negative terminal on the other side. |
double | impedance | The characteristic impedance. |
double | delay | The delay. |
Exceptions
Type | Condition |
---|---|
ArgumentNullException | Thrown if |
Fields
PinCount
The number of pins for a lossless transmission line
Declaration
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. |