Show / Hide Table of Contents

Class Pwl

Piecewise linear waveform.

Inheritance
object
ParameterSet
Pwl
Implements
IWaveformDescription
ICloneable<IWaveformDescription>
IImportParameterSet<IEnumerable<Point>>
IExportPropertySet<IEnumerable<Point>>
IImportParameterSet<double[]>
IParameterSet
Inherited Members
ParameterSet.SetParameter<P>(string, P)
ParameterSet.TrySetParameter<P>(string, P)
ParameterSet.GetProperty<P>(string)
ParameterSet.TryGetProperty<P>(string, out P)
ParameterSet.CreateParameterSetter<P>(string)
ParameterSet.CreatePropertyGetter<P>(string)
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
Namespace: SpiceSharp.Components
Assembly: SpiceSharp.dll
Syntax
public class Pwl : ParameterSet, IWaveformDescription, ICloneable<IWaveformDescription>, IImportParameterSet<IEnumerable<Point>>, IExportPropertySet<IEnumerable<Point>>, IImportParameterSet<double[]>, IParameterSet

Properties

Points

Gets or sets the waveform points.

Declaration
[ParameterName("points")]
[ParameterInfo("The points of the waveform")]
public IEnumerable<Point> Points { get; set; }
Property Value
Type Description
IEnumerable<Point>

The waveform points

Methods

Clone()

Clones the instance.

Declaration
public IWaveformDescription Clone()
Returns
Type Description
IWaveformDescription

The cloned instance.

Create(IBindingContext)

Creates a waveform instance for the specified simulation and entity.

Declaration
public IWaveform Create(IBindingContext context)
Parameters
Type Name Description
IBindingContext context

The binding context.

Returns
Type Description
IWaveform

The waveform instance.

SetPoints(params double[])

Sets the waveform points using a vector sequence of times and values.

Declaration
[ParameterName("points")]
[ParameterInfo("The vector of time and point values")]
public void SetPoints(params double[] vector)
Parameters
Type Name Description
double[] vector

The array of alternating timepoints and values.

ToString()

Returns a string that represents the current piece-wise linear waveform.

Declaration
public override string ToString()
Returns
Type Description
string

A string that represents the current piece-wise linear waveform.

Overrides
object.ToString()

Implements

IWaveformDescription
ICloneable<T>
IImportParameterSet<P>
IExportPropertySet<P>
IImportParameterSet<P>
IParameterSet

Extension Methods

Utility.ThrowIfNull<T>(T, string)
Documentation.ParameterValues<T>(IParameterSet, bool)
Documentation.Parameters(IParameterSet)

See Also

ParameterSet
IWaveformDescription
In this article
Back to top Generated by DocFX