Interface ICircuitContext
Namespace: SpiceSharpParser.ModelReaders.Netlist.Spice.Context
Assembly: SpiceSharpParser.dll
Syntax
public interface ICircuitContext
Properties
| Improve this Doc View SourceAvailableSubcircuits
Gets the list of available subcircuit for the context.
Declaration
ICollection<SubCircuit> AvailableSubcircuits { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.ICollection<SubCircuit> |
CaseSensitivity
Gets case-sensitivity settings.
Declaration
ISpiceNetlistCaseSensitivitySettings CaseSensitivity { get; }
Property Value
Type | Description |
---|---|
ISpiceNetlistCaseSensitivitySettings |
Children
Gets the children of the reading context.
Declaration
ICollection<ICircuitContext> Children { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.ICollection<ICircuitContext> |
Evaluator
Gets or set circuit evaluator.
Declaration
ICircuitEvaluator Evaluator { get; }
Property Value
Type | Description |
---|---|
ICircuitEvaluator |
Exporters
Gets exporter mapper.
Declaration
IMapper<Exporter> Exporters { get; }
Property Value
Type | Description |
---|---|
IMapper<Exporter> |
ModelsRegistry
Gets the stochastic models registry.
Declaration
IModelsRegistry ModelsRegistry { get; }
Property Value
Type | Description |
---|---|
IModelsRegistry |
NameGenerator
Gets or set name generator.
Declaration
INameGenerator NameGenerator { get; }
Property Value
Type | Description |
---|---|
INameGenerator |
Parent
Gets the parent of the context.
Declaration
ICircuitContext Parent { get; }
Property Value
Type | Description |
---|---|
ICircuitContext |
Result
Gets the result service for the context.
Declaration
IResultService Result { get; }
Property Value
Type | Description |
---|---|
IResultService |
SimulationPreparations
Gets the simulation parameters.
Declaration
ISimulationPreparations SimulationPreparations { get; }
Property Value
Type | Description |
---|---|
ISimulationPreparations |
StatementsReader
Gets the statements reader.
Declaration
ISpiceStatementsReader StatementsReader { get; }
Property Value
Type | Description |
---|---|
ISpiceStatementsReader |
WaveformReader
Gets the waveform reader.
Declaration
IWaveformReader WaveformReader { get; }
Property Value
Type | Description |
---|---|
IWaveformReader |
WorkingDirectory
Gets working directory.
Declaration
string WorkingDirectory { get; }
Property Value
Type | Description |
---|---|
System.String |
Methods
| Improve this Doc View SourceCreateNodes(IComponent, ParameterCollection)
Creates nodes for a component.
Declaration
void CreateNodes(IComponent component, ParameterCollection parameters)
Parameters
Type | Name | Description |
---|---|---|
SpiceSharp.Components.IComponent | component | A component. |
ParameterCollection | parameters | Parameters of component. |
Read(Statements, ISpiceStatementsOrderer)
Reads the statements with given order.
Declaration
void Read(Statements statements, ISpiceStatementsOrderer orderer)
Parameters
Type | Name | Description |
---|---|---|
Statements | statements | Statements. |
ISpiceStatementsOrderer | orderer | Orderer of statements. |
SetICVoltage(String, String)
Sets the initial voltage.
Declaration
void SetICVoltage(string nodeName, string expression)
Parameters
Type | Name | Description |
---|---|---|
System.String | nodeName | Node name. |
System.String | expression | Node voltage expression. |
SetParameter(IEntity, String, Parameter, Boolean, Boolean)
Sets parameter of entity to value of expression.
Declaration
void SetParameter(IEntity entity, string parameterName, Parameter valueExpression, bool beforeTemperature = true, bool onload = true)
Parameters
Type | Name | Description |
---|---|---|
SpiceSharp.Entities.IEntity | entity | Entity. |
System.String | parameterName | Parameter name. |
Parameter | valueExpression | Value expression. |
System.Boolean | beforeTemperature | Should be re-evaluated before temperature. |
System.Boolean | onload | Should be re-evaluated OnBeforeLoad. |
SetParameter(IEntity, String, String, Boolean, Boolean, Simulation)
Sets parameter of entity to value of expression.
Declaration
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 | Entity. |
System.String | parameterName | Parameter name. |
System.String | expression | Value expression. |
System.Boolean | beforeTemperature | Should be re-evaluated before temperature. |
System.Boolean | onload | Should be re-evaluated OnBeforeLoad. |
SpiceSharp.Simulations.Simulation | simulation |