Show / Hide Table of Contents

Class XAxisLookupTable

Bi-Directional Lookup Table. Stores value against a key, and also stores keys against a value For instance; Timestamp and Value, and in reverse Value has potentially many Timestamps (Car sat still on the Grid with Engine running)

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

Constructors

XAxisLookupTable(Int32)

Initializes a new instance of the XAxisLookupTable class.

Declaration
public XAxisLookupTable(int initialCapacity)
Parameters
Type Name Description
System.Int32 initialCapacity

The initial capacity.

Properties

DataByTime

Gets the Time Based Data.

Declaration
public IDictionary<long, double> DataByTime { get; }
Property Value
Type Description
System.Collections.Generic.IDictionary<System.Int64, System.Double>

DataByXAxis

Gets the data by x axis.

Declaration
public IDictionary<double, List<long>> DataByXAxis { get; }
Property Value
Type Description
System.Collections.Generic.IDictionary<System.Double, System.Collections.Generic.List<System.Int64>>

Methods

Add(Int64, Double)

Adds the X and Time Data.

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

The time.

System.Double x

The x.

Dispose()

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

Declaration
public void Dispose()

Finalize()

Finalizes an instance of the XAxisLookupTable class.

Declaration
protected override void Finalize()

Find(Double)

Finds the specified Time for 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.

System.Double end

The end.

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

Find(Int64)

Finds the specified X for 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.

System.Int64 end

The end.

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

Update(Int64, Double)

Updates the X and Time Data.

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

The time.

System.Double x

The x.

Implements

System.IDisposable
Back to top Generated by DocFX