Show / Hide Table of Contents

Class CircuitContext

Reading context.

Inheritance
System.Object
CircuitContext
Implements
ICircuitContext
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: SpiceSharpParser.ModelReaders.Netlist.Spice.Context
Assembly: SpiceSharpParser.dll
Syntax
public class CircuitContext : ICircuitContext

Constructors

| Improve this Doc View Source

CircuitContext(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 Source

AvailableSubcircuits

Gets available subcircuits in context.

Declaration
public ICollection<SubCircuit> AvailableSubcircuits { get; }
Property Value
Type Description
System.Collections.Generic.ICollection<SubCircuit>
| Improve this Doc View Source

CaseSensitivity

Gets the case sensitivity settings.

Declaration
public ISpiceNetlistCaseSensitivitySettings CaseSensitivity { get; }
Property Value
Type Description
ISpiceNetlistCaseSensitivitySettings
| Improve this Doc View Source

Children

Gets the children of the reading context.

Declaration
public ICollection<ICircuitContext> Children { get; }
Property Value
Type Description
System.Collections.Generic.ICollection<ICircuitContext>
| Improve this Doc View Source

Evaluator

Gets the evaluator.

Declaration
public ICircuitEvaluator Evaluator { get; }
Property Value
Type Description
ICircuitEvaluator
| Improve this Doc View Source

Exporters

Gets exporter mapper.

Declaration
public IMapper<Exporter> Exporters { get; }
Property Value
Type Description
IMapper<Exporter>
| Improve this Doc View Source

ModelsRegistry

Gets the stochastic models registry.

Declaration
public IModelsRegistry ModelsRegistry { get; }
Property Value
Type Description
IModelsRegistry
| Improve this Doc View Source

Name

Gets the name of context.

Declaration
public string Name { get; }
Property Value
Type Description
System.String
| Improve this Doc View Source

NameGenerator

Gets the name generator.

Declaration
public INameGenerator NameGenerator { get; }
Property Value
Type Description
INameGenerator
| Improve this Doc View Source

Parent

Gets the parent of context.

Declaration
public ICircuitContext Parent { get; }
Property Value
Type Description
ICircuitContext
| Improve this Doc View Source

Result

Gets the result service.

Declaration
public IResultService Result { get; }
Property Value
Type Description
IResultService
| Improve this Doc View Source

SimulationPreparations

Gets simulation parameters.

Declaration
public ISimulationPreparations SimulationPreparations { get; }
Property Value
Type Description
ISimulationPreparations
| Improve this Doc View Source

StatementsReader

Gets statements reader.

Declaration
public ISpiceStatementsReader StatementsReader { get; }
Property Value
Type Description
ISpiceStatementsReader
| Improve this Doc View Source

WaveformReader

Gets waveform reader.

Declaration
public IWaveformReader WaveformReader { get; }
Property Value
Type Description
IWaveformReader
| Improve this Doc View Source

WorkingDirectory

Gets the working directory.

Declaration
public string WorkingDirectory { get; }
Property Value
Type Description
System.String

Methods

| Improve this Doc View Source

CreateAvailableSubcircuitsCollection()

Declaration
protected ICollection<SubCircuit> CreateAvailableSubcircuitsCollection()
Returns
Type Description
System.Collections.Generic.ICollection<SubCircuit>
| Improve this Doc View Source

CreateModelsRegistry()

Declaration
protected IModelsRegistry CreateModelsRegistry()
Returns
Type Description
IModelsRegistry
| Improve this Doc View Source

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.

| Improve this Doc View Source

Read(Statements, ISpiceStatementsOrderer)

Declaration
public virtual void Read(Statements statements, ISpiceStatementsOrderer orderer)
Parameters
Type Name Description
Statements statements
ISpiceStatementsOrderer orderer
| Improve this Doc View Source

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.

| Improve this Doc View Source

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
| Improve this Doc View Source

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

Implements

ICircuitContext
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX