Class Export<T>
A template for exporting data for a simulation.
Inheritance
Export<T>
Implements
IExport<T>
Inherited Members
Namespace: SpiceSharp.Simulations
Assembly: SpiceSharp.dll
Syntax
public abstract class Export<T> : IExport<T>
Type Parameters
Name | Description |
---|---|
T | The base value type. |
Constructors
Export(ISimulation)
Creates a new Export<T>.
Declaration
protected Export(ISimulation simulation)
Parameters
Type | Name | Description |
---|---|---|
ISimulation | simulation | The simulation. |
Properties
Simulation
Gets or sets the simulation that the export applies to.
Declaration
public ISimulation Simulation { get; set; }
Property Value
Type | Description |
---|---|
ISimulation |
Value
Gets the current value from the simulation.
Declaration
public T Value { get; }
Property Value
Type | Description |
---|---|
T |
Remarks
This property will return a default if there is nothing to extract.
Methods
BuildExtractor(ISimulation)
Builds the extractor for the given simulation.
Declaration
protected abstract Func<T> BuildExtractor(ISimulation simulation)
Parameters
Type | Name | Description |
---|---|---|
ISimulation | simulation | The simulation. |
Returns
Type | Description |
---|---|
Func<T> | The extractor. |