Table of Contents

Class Waveform

Namespace
Loehnert.Waveforms
Assembly
Loehnert.Waveforms.dll

Represents a waveform.

public class Waveform : IWaveformWithUnits, IWaveform, IHasKey
Inheritance
Waveform
Implements
Derived
Inherited Members

Constructors

Waveform(string, DateTime?, IEnumerable<Point>, string, string)

Initializes a new instance of the Waveform class.

public Waveform(string key, DateTime? startTime, IEnumerable<Point> points = null, string xUnit = null, string yUnit = null)

Parameters

key string

Key of the waveform.

startTime DateTime?

Start time of waveform. Can be null.

points IEnumerable<Point>

Points of waveform. Can be null.

xUnit string

The unit for the x-direction.

yUnit string

The unit for the y-direction.

Exceptions

ArgumentNullException

Thrown when key is null.

Properties

Key

Gets the key of the waveform.

public string Key { get; }

Property Value

string

Points

Gets the points of the waveform.

public IPointCollection Points { get; }

Property Value

IPointCollection

StartTime

Gets the start time.

public DateTime? StartTime { get; }

Property Value

DateTime?

XUnit

Gets the x unit.

public virtual string XUnit { get; }

Property Value

string

YUnit

Gets the y unit.

public virtual string YUnit { get; }

Property Value

string