Show / Hide Table of Contents

Class XAxisDataStore

Generic XAxis Data Store

Inheritance
System.Object
XAxisDataStore
Implements
System.IDisposable
Namespace: MESL.SqlRace.Domain.XAxis
Assembly: MESL.SqlRace.Domain.dll
Syntax
public class XAxisDataStore : Object, IDisposable

Constructors

XAxisDataStore(SessionBase, String, String, Int32)

Initializes a new instance of the XAxisDataStore class.

Declaration
public XAxisDataStore(SessionBase session, string name, string xAxisParameter, int initialCapacity)
Parameters
Type Name Description
SessionBase session

Session supplying the data

System.String name

The identifier.

System.String xAxisParameter

The x axis parameter supplying the data from the Session.

System.Int32 initialCapacity

The initial capacity.

XAxisDataStore(String, Int32)

Initializes a new instance of the XAxisDataStore class.

Declaration
public XAxisDataStore(string name, int initialCapacity)
Parameters
Type Name Description
System.String name

The name.

System.Int32 initialCapacity

The initial capacity.

Properties

Data

The Time/X Lookup Table

Declaration
public XAxisLookupTable Data { get; }
Property Value
Type Description
XAxisLookupTable

Name

Gets or sets the Name of this Data Store.

Declaration
public string Name { get; set; }
Property Value
Type Description
System.String

name.

Session

Gets the session.

Declaration
public SessionBase Session { get; }
Property Value
Type Description
SessionBase

The session.

XAxisParameter

Gets or sets the x axis parameter supplying data to this data store.

Declaration
public string XAxisParameter { get; set; }
Property Value
Type Description
System.String

The x axis parameter.

Methods

Add(Int64, Double)

Adds a Time/X Value to the Map.

Declaration
public void Add(long time, double value)
Parameters
Type Name Description
System.Int64 time

The time.

System.Double value

The value.

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Declaration
public void Dispose()

Finalize()

Finalizes an instance of the XAxisDataStore class.

Declaration
protected override void Finalize()

Find(Double)

Finds time for the specified x.

Declaration
public List<long> Find(double x)
Parameters
Type Name Description
System.Double x

The x.

Returns
Type Description
System.Collections.Generic.List<System.Int64>

Find(Double, Double)

Finds timestamps for an X Value range.

Declaration
public IEnumerable<long> Find(double start, double end)
Parameters
Type Name Description
System.Double start

The start X Value.

System.Double end

The end X Value.

Returns
Type Description
System.Collections.Generic.IEnumerable<System.Int64>

List of Timestamps

Find(Int64)

Finds X for the specified time.

Declaration
public double Find(long time)
Parameters
Type Name Description
System.Int64 time

The time.

Returns
Type Description
System.Double

Find(Int64, Int64)

Finds X Values for a time range.

Declaration
public IEnumerable<double> Find(long start, long end)
Parameters
Type Name Description
System.Int64 start

The start timestamp.

System.Int64 end

The end timestamp.

Returns
Type Description
System.Collections.Generic.IEnumerable<System.Double>

List of X Values

Update(Int64, Double)

Updates a Time/X Value to the Map.

Declaration
public void Update(long time, double value)
Parameters
Type Name Description
System.Int64 time

The time.

System.Double value

The value.

Implements

System.IDisposable
Back to top Generated by DocFX