Show / Hide Table of Contents

Class Component<P>

A class that represents a (Spice) component/device with parameters.

Inheritance
object
ParameterSet
ParameterSetCollection
Entity
Component
Component<P>
BipolarJunctionTransistor
Capacitor
CurrentControlledCurrentSource
CurrentControlledVoltageSource
CurrentSource
CurrentSwitch
Diode
Inductor
JFET
LosslessTransmissionLine
Mosfet1
Mosfet2
Mosfet3
Resistor
VoltageControlledCurrentSource
VoltageControlledVoltageSource
VoltageDelay
VoltageSource
VoltageSwitch
Implements
IComponent
IEntity
IParameterSetCollection
IParameterSet
ICloneable<IEntity>
IRuleSubject
IParameterized<P>
Inherited Members
Component.Nodes
Component.Model
Component.Connect(params string[])
Component.ToString()
Entity.LinkParameters
Entity.Name
Entity.CreateBehaviors(ISimulation)
Entity.SetParameter<P>(string, P)
ParameterSetCollection.GetParameterSet<P>()
ParameterSetCollection.TryGetParameterSet<P>(out P)
ParameterSetCollection.ParameterSets
ParameterSetCollection.TrySetParameter<P>(string, P)
ParameterSetCollection.GetProperty<P>(string)
ParameterSetCollection.TryGetProperty<P>(string, out P)
ParameterSetCollection.CreateParameterSetter<P>(string)
ParameterSetCollection.CreatePropertyGetter<P>(string)
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
Namespace: SpiceSharp.Components
Assembly: SpiceSharp.dll
Syntax
public abstract class Component<P> : Component, IComponent, IEntity, IParameterSetCollection, IParameterSet, ICloneable<IEntity>, IRuleSubject, IParameterized<P> where P : IParameterSet, ICloneable<P>, new()
Type Parameters
Name Description
P

The component parameter type.

Constructors

Component(string, int)

Initializes a new instance of the Component<P> class.

Declaration
protected Component(string name, int nodeCount)
Parameters
Type Name Description
string name

The name.

int nodeCount

The node count.

Properties

Parameters

Gets the parameter set.

Declaration
public P Parameters { get; }
Property Value
Type Description
P

The parameter set.

Methods

Clone()

Clones the instance.

Declaration
public override IEntity Clone()
Returns
Type Description
IEntity

The cloned instance.

Overrides
Component.Clone()

Implements

IComponent
IEntity
IParameterSetCollection
IParameterSet
ICloneable<T>
IRuleSubject
IParameterized<P>

Extension Methods

Utility.ThrowIfNull<T>(T, string)
Documentation.Pins(IComponent)
Documentation.ParameterValues<T>(IParameterSet, bool)
Documentation.Parameters(IParameterSet)
Documentation.ParameterValues<T>(IParameterSetCollection, bool)
Documentation.Parameters(IParameterSetCollection)
In this article
Back to top Generated by DocFX