Class CircuitContext
Reading context.
Inheritance
Implements
Inherited Members
Namespace: SpiceSharpParser.ModelReaders.Netlist.Spice.Context
Assembly: SpiceSharpParser.dll
Syntax
public class CircuitContext : ICircuitContext
Constructors
| Improve this Doc View SourceCircuitContext(String, ICircuitContext, ICircuitEvaluator, ISimulationPreparations, IResultService, INameGenerator, ISpiceStatementsReader, IWaveformReader, ISpiceNetlistCaseSensitivitySettings, IMapper<Exporter>, String)
Initializes a new instance of the CircuitContext class.
Declaration
public CircuitContext(string contextName, ICircuitContext parent, ICircuitEvaluator evaluator, ISimulationPreparations simulationPreparations, IResultService resultService, INameGenerator nameGenerator, ISpiceStatementsReader statementsReader, IWaveformReader waveformReader, ISpiceNetlistCaseSensitivitySettings caseSettings, IMapper<Exporter> exporters, string workingDirectory)
Parameters
Type | Name | Description |
---|---|---|
System.String | contextName | Name of the context. |
ICircuitContext | parent | Parent of the context. |
ICircuitEvaluator | evaluator | Circuit evaluator. |
ISimulationPreparations | simulationPreparations | Simulation preparations. |
IResultService | resultService | SpiceModel service for the context. |
INameGenerator | nameGenerator | Name generator for the models. |
ISpiceStatementsReader | statementsReader | Statements reader. |
IWaveformReader | waveformReader | Waveform reader. |
ISpiceNetlistCaseSensitivitySettings | caseSettings | Case settings. |
IMapper<Exporter> | exporters | Exporters. |
System.String | workingDirectory | Working directory. |
Properties
| Improve this Doc View SourceAvailableSubcircuits
Gets available subcircuits in context.
Declaration
public ICollection<SubCircuit> AvailableSubcircuits { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.ICollection<SubCircuit> |
CaseSensitivity
Gets the case sensitivity settings.
Declaration
public ISpiceNetlistCaseSensitivitySettings CaseSensitivity { get; }
Property Value
Type | Description |
---|---|
ISpiceNetlistCaseSensitivitySettings |
Children
Gets the children of the reading context.
Declaration
public ICollection<ICircuitContext> Children { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.ICollection<ICircuitContext> |
Evaluator
Gets the evaluator.
Declaration
public ICircuitEvaluator Evaluator { get; }
Property Value
Type | Description |
---|---|
ICircuitEvaluator |
Exporters
Gets exporter mapper.
Declaration
public IMapper<Exporter> Exporters { get; }
Property Value
Type | Description |
---|---|
IMapper<Exporter> |
ModelsRegistry
Gets the stochastic models registry.
Declaration
public IModelsRegistry ModelsRegistry { get; }
Property Value
Type | Description |
---|---|
IModelsRegistry |
Name
Gets the name of context.
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
System.String |
NameGenerator
Gets the name generator.
Declaration
public INameGenerator NameGenerator { get; }
Property Value
Type | Description |
---|---|
INameGenerator |
Parent
Gets the parent of context.
Declaration
public ICircuitContext Parent { get; }
Property Value
Type | Description |
---|---|
ICircuitContext |
Result
Gets the result service.
Declaration
public IResultService Result { get; }
Property Value
Type | Description |
---|---|
IResultService |
SimulationPreparations
Gets simulation parameters.
Declaration
public ISimulationPreparations SimulationPreparations { get; }
Property Value
Type | Description |
---|---|
ISimulationPreparations |
StatementsReader
Gets statements reader.
Declaration
public ISpiceStatementsReader StatementsReader { get; }
Property Value
Type | Description |
---|---|
ISpiceStatementsReader |
WaveformReader
Gets waveform reader.
Declaration
public IWaveformReader WaveformReader { get; }
Property Value
Type | Description |
---|---|
IWaveformReader |
WorkingDirectory
Gets the working directory.
Declaration
public string WorkingDirectory { get; }
Property Value
Type | Description |
---|---|
System.String |
Methods
| Improve this Doc View SourceCreateAvailableSubcircuitsCollection()
Declaration
protected ICollection<SubCircuit> CreateAvailableSubcircuitsCollection()
Returns
Type | Description |
---|---|
System.Collections.Generic.ICollection<SubCircuit> |
CreateModelsRegistry()
Declaration
protected IModelsRegistry CreateModelsRegistry()
Returns
Type | Description |
---|---|
IModelsRegistry |
CreateNodes(IComponent, ParameterCollection)
Creates nodes for a component.
Declaration
public void CreateNodes(IComponent component, ParameterCollection parameters)
Parameters
Type | Name | Description |
---|---|---|
SpiceSharp.Components.IComponent | component | A component. |
ParameterCollection | parameters | Parameters of component. |
Read(Statements, ISpiceStatementsOrderer)
Declaration
public virtual void Read(Statements statements, ISpiceStatementsOrderer orderer)
Parameters
Type | Name | Description |
---|---|---|
Statements | statements | |
ISpiceStatementsOrderer | orderer |
SetICVoltage(String, String)
Sets voltage initial condition for node.
Declaration
public void SetICVoltage(string nodeName, string expression)
Parameters
Type | Name | Description |
---|---|---|
System.String | nodeName | Name of node. |
System.String | expression | Expression string. |
SetParameter(IEntity, String, Parameter, Boolean, Boolean)
Declaration
public void SetParameter(IEntity entity, string parameterName, Parameter parameter, bool beforeTemperature = true, bool onload = true)
Parameters
Type | Name | Description |
---|---|---|
SpiceSharp.Entities.IEntity | entity | |
System.String | parameterName | |
Parameter | parameter | |
System.Boolean | beforeTemperature | |
System.Boolean | onload |
SetParameter(IEntity, String, String, Boolean, Boolean, Simulation)
Declaration
public void SetParameter(IEntity entity, string parameterName, string expression, bool beforeTemperature = true, bool onload = true, Simulation simulation = null)
Parameters
Type | Name | Description |
---|---|---|
SpiceSharp.Entities.IEntity | entity | |
System.String | parameterName | |
System.String | expression | |
System.Boolean | beforeTemperature | |
System.Boolean | onload | |
SpiceSharp.Simulations.Simulation | simulation |