Class CircuitEvaluator
Inheritance
System.Object
CircuitEvaluator
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()
Assembly: SpiceSharpParser.dll
Syntax
public class CircuitEvaluator : ICircuitEvaluator
Constructors
|
Improve this Doc
View Source
CircuitEvaluator(SimulationEvaluationContexts, EvaluationContext)
Declaration
public CircuitEvaluator(SimulationEvaluationContexts simulationContexts, EvaluationContext parsingContext)
Parameters
Properties
|
Improve this Doc
View Source
ParsingContext
Declaration
protected EvaluationContext ParsingContext { get; }
Property Value
|
Improve this Doc
View Source
Seed
Declaration
public int? Seed { get; set; }
Property Value
Type |
Description |
System.Nullable<System.Int32> |
|
|
Improve this Doc
View Source
SimulationContexts
Declaration
protected SimulationEvaluationContexts SimulationContexts { get; }
Property Value
Methods
|
Improve this Doc
View Source
AddFunction(String, IFunction<Double, Double>)
Declaration
public void AddFunction(string functionName, IFunction<double, double> function)
Parameters
Type |
Name |
Description |
System.String |
functionName |
|
IFunction<System.Double, System.Double> |
function |
|
|
Improve this Doc
View Source
AddFunction(String, List<String>, String)
Declaration
public void AddFunction(string functionName, List<string> arguments, string body)
Parameters
Type |
Name |
Description |
System.String |
functionName |
|
System.Collections.Generic.List<System.String> |
arguments |
|
System.String |
body |
|
|
Improve this Doc
View Source
CreateChildContext(String, Boolean)
Declaration
public EvaluationContext CreateChildContext(string name, bool addToChildren)
Parameters
Type |
Name |
Description |
System.String |
name |
|
System.Boolean |
addToChildren |
|
Returns
|
Improve this Doc
View Source
EvaluateDouble(Parameter)
Declaration
public double EvaluateDouble(Parameter parameter)
Parameters
Returns
Type |
Description |
System.Double |
|
|
Improve this Doc
View Source
EvaluateDouble(String)
Declaration
public double EvaluateDouble(string expression)
Parameters
Type |
Name |
Description |
System.String |
expression |
|
Returns
Type |
Description |
System.Double |
|
|
Improve this Doc
View Source
EvaluateDouble(String, Simulation)
Parses an expression to double.
Declaration
public double EvaluateDouble(string expression, Simulation simulation)
Parameters
Type |
Name |
Description |
System.String |
expression |
Expression to parse.
|
SpiceSharp.Simulations.Simulation |
simulation |
|
Returns
Type |
Description |
System.Double |
A value of expression..
|
|
Improve this Doc
View Source
GetEvaluationContext(Simulation)
Declaration
public EvaluationContext GetEvaluationContext(Simulation simulation)
Parameters
Type |
Name |
Description |
SpiceSharp.Simulations.Simulation |
simulation |
|
Returns
|
Improve this Doc
View Source
GetExpression(String)
Declaration
public Expression GetExpression(string expressionName)
Parameters
Type |
Name |
Description |
System.String |
expressionName |
|
Returns
|
Improve this Doc
View Source
GetExpressionNames()
Declaration
public IEnumerable<string> GetExpressionNames()
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<System.String> |
|
|
Improve this Doc
View Source
GetSeed(Simulation)
Declaration
public int? GetSeed(Simulation sim)
Parameters
Type |
Name |
Description |
SpiceSharp.Simulations.Simulation |
sim |
|
Returns
Type |
Description |
System.Nullable<System.Int32> |
|
|
Improve this Doc
View Source
HaveParameter(Simulation, String)
Declaration
public bool HaveParameter(Simulation simulation, string parameterName)
Parameters
Type |
Name |
Description |
SpiceSharp.Simulations.Simulation |
simulation |
|
System.String |
parameterName |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
SetNamedExpression(String, String)
Declaration
public void SetNamedExpression(string expressionName, string expression)
Parameters
Type |
Name |
Description |
System.String |
expressionName |
|
System.String |
expression |
|
|
Improve this Doc
View Source
SetParameter(Simulation, String, Double)
Declaration
public void SetParameter(Simulation simulation, string parameterName, double value)
Parameters
Type |
Name |
Description |
SpiceSharp.Simulations.Simulation |
simulation |
|
System.String |
parameterName |
|
System.Double |
value |
|
|
Improve this Doc
View Source
SetParameter(String, Parameter)
Declaration
public void SetParameter(string parameterName, Parameter parameter)
Parameters
Type |
Name |
Description |
System.String |
parameterName |
|
Parameter |
parameter |
|
|
Improve this Doc
View Source
SetParameter(String, Double)
Declaration
public void SetParameter(string parameterName, double value)
Parameters
Type |
Name |
Description |
System.String |
parameterName |
|
System.Double |
value |
|
|
Improve this Doc
View Source
SetParameter(String, String)
Declaration
public void SetParameter(string parameterName, string parameterExpression)
Parameters
Type |
Name |
Description |
System.String |
parameterName |
|
System.String |
parameterExpression |
|
Implements