Class Component<P>
A class that represents a (Spice) component/device with parameters.
Inheritance
Component<P>
Implements
Inherited Members
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. |