Show / Hide Table of Contents

Class CurrentControlledCurrentSource

A current-controlled current source.

Inheritance
object
ParameterSet
ParameterSetCollection
Entity
Component
Component<Parameters>
CurrentControlledCurrentSource
Implements
IParameterized<Parameters>
ICurrentControllingComponent
IComponent
IEntity
IParameterSetCollection
IParameterSet
ICloneable<IEntity>
IRuleSubject
Inherited Members
Component<Parameters>.Parameters
Component<Parameters>.Clone()
Component.Nodes
Component.Model
Component.Connect(params string[])
Component.ToString()
Entity.LinkParameters
Entity.Name
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
[Pin(0, "F+")]
[Pin(1, "F-")]
[Connected(0, 0)]
public class CurrentControlledCurrentSource : Component<Parameters>, IParameterized<Parameters>, ICurrentControllingComponent, IComponent, IEntity, IParameterSetCollection, IParameterSet, ICloneable<IEntity>, IRuleSubject

Constructors

CurrentControlledCurrentSource(string)

Initializes a new instance of the CurrentControlledCurrentSource class.

Declaration
public CurrentControlledCurrentSource(string name)
Parameters
Type Name Description
string name

The name of the current controlled current source.

Exceptions
Type Condition
ArgumentNullException

Thrown if name is null.

CurrentControlledCurrentSource(string, string, string, string, double)

Initializes a new instance of the CurrentControlledCurrentSource class.

Declaration
public CurrentControlledCurrentSource(string name, string pos, string neg, string voltageSource, double gain)
Parameters
Type Name Description
string name

The name of the current controlled current source.

string pos

The positive node.

string neg

The negative node.

string voltageSource

The name of the voltage source.

double gain

The current gain.

Exceptions
Type Condition
ArgumentNullException

Thrown if name is null.

Fields

PinCount

The number of pins for a CurrentControlledCurrentSource.

Declaration
[ParameterName("pincount")]
[ParameterInfo("Number of pins")]
public const int PinCount = 2
Field Value
Type Description
int

Properties

ControllingSource

Gets or sets the name of the controlling entity.

Declaration
[ParameterName("control")]
[ParameterInfo("Name of the controlling entity/source")]
public string ControllingSource { get; set; }
Property Value
Type Description
string

The name of the controlling entity.

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
Entity.CreateBehaviors(ISimulation)
Exceptions
Type Condition
ArgumentNullException

Thrown if simulation is null.

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.

Implements

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

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)

See Also

Component
IParameterized<P>
Parameters
IRuleSubject
In this article
Back to top Generated by DocFX