Class RepeatingLapCompareDataProvider
Repeating Lap and Fastest Lap Data Provider
Inheritance
Namespace: MESL.SqlRace.Domain
Assembly: MESL.SqlRace.Domain.dll
Syntax
public class RepeatingLapCompareDataProvider : Object, IRepeatingLapCompareDataProvider
Constructors
RepeatingLapCompareDataProvider(ICompositeSession, ICompositeParameterDataAccess)
Initializes a new instance of the RepeatingLapCompareDataProvider class.
Declaration
public RepeatingLapCompareDataProvider(ICompositeSession primaryCompositeSession, ICompositeParameterDataAccess slavePda)
Parameters
Type | Name | Description |
---|---|---|
ICompositeSession | primaryCompositeSession | The primary composite session. |
ICompositeParameterDataAccess | slavePda | The slave pda. |
Methods
GetDataForCompare(Int64, Int64, Int64, ref MinimumMaximumMeanDouble[], ref DataStatusType[])
Gets the data for compare.
Declaration
public void GetDataForCompare(long startTime, long endTime, long interval, ref MinimumMaximumMeanDouble[] data, ref DataStatusType[] dataStatus)
Parameters
Type | Name | Description |
---|---|---|
System.Int64 | startTime | The start time. |
System.Int64 | endTime | The end time. |
System.Int64 | interval | The interval. |
MinimumMaximumMeanDouble[] | data | The data dictionary. |
DataStatusType[] | dataStatus | The status dictionary. |
GetDataForCompare(Int64, Int64, Int64, ref Double[], ref DataStatusType[])
Gets the data for compare.
Declaration
public void GetDataForCompare(long startTime, long endTime, long interval, ref double[] data, ref DataStatusType[] dataStatus)
Parameters
Type | Name | Description |
---|---|---|
System.Int64 | startTime | The start time. |
System.Int64 | endTime | The end time. |
System.Int64 | interval | The interval. |
System.Double[] | data | The data dictionary. |
DataStatusType[] | dataStatus | The status dictionary. |
GetDataForCompare(Int64, Int64, Int64, ref Double[], ref Double[], ref DataStatusType[])
Gets the data for compare.
Declaration
public void GetDataForCompare(long startTime, long endTime, long interval, ref double[] dataMin, ref double[] dataMax, ref DataStatusType[] dataStatus)
Parameters
Type | Name | Description |
---|---|---|
System.Int64 | startTime | The start time. |
System.Int64 | endTime | The end time. |
System.Int64 | interval | The interval. |
System.Double[] | dataMin | The minimum data. |
System.Double[] | dataMax | The maximum data. |
DataStatusType[] | dataStatus | The statuses. |
GetDataForCompare(Int64[], Int64, ref MinimumMaximumMeanDouble[], ref DataStatusType[])
Gets the data for compare.
Declaration
public void GetDataForCompare(long[] timestamps, long interval, ref MinimumMaximumMeanDouble[] data, ref DataStatusType[] dataStatus)
Parameters
Type | Name | Description |
---|---|---|
System.Int64[] | timestamps | The timestamps. |
System.Int64 | interval | The interval. |
MinimumMaximumMeanDouble[] | data | The data dictionary. |
DataStatusType[] | dataStatus | The status dictionary. |
GetDataForCompare(Int64[], Int64, ref Double[], ref DataStatusType[])
Gets the data for compare.
Declaration
public void GetDataForCompare(long[] timestamps, long interval, ref double[] data, ref DataStatusType[] dataStatus)
Parameters
Type | Name | Description |
---|---|---|
System.Int64[] | timestamps | The timestamps. |
System.Int64 | interval | The interval. |
System.Double[] | data | The data dictionary. |
DataStatusType[] | dataStatus | The status dictionary. |
GetDataForCompare(Int64[], Int64, ref Double[], ref Double[], ref DataStatusType[])
Gets the data for compare.
Declaration
public void GetDataForCompare(long[] timestamps, long interval, ref double[] dataMin, ref double[] dataMax, ref DataStatusType[] dataStatus)
Parameters
Type | Name | Description |
---|---|---|
System.Int64[] | timestamps | The timestamps. |
System.Int64 | interval | The interval. |
System.Double[] | dataMin | The minimum data. |
System.Double[] | dataMax | The maximum data. |
DataStatusType[] | dataStatus | The statuses. |
GetDataStatisticsForCompare(Int64, Int64, Boolean, StatisticOption)
Gets the data statistics for compare.
Declaration
public CompositeStatistics GetDataStatisticsForCompare(long startTimeStamp, long duration, bool weightStatistics, StatisticOption statisticOption)
Parameters
Type | Name | Description |
---|---|---|
System.Int64 | startTimeStamp | The start time stamp. |
System.Int64 | duration | The duration. |
System.Boolean | weightStatistics | if set to |
StatisticOption | statisticOption | The statistic option. |
Returns
Type | Description |
---|---|
CompositeStatistics |
GetNextSamplesForCompare(Int64, Int32)
Gets the next samples for compare.
Declaration
public ParameterValues GetNextSamplesForCompare(long startTime, int numberOfSamples)
Parameters
Type | Name | Description |
---|---|---|
System.Int64 | startTime | The start time. |
System.Int32 | numberOfSamples | The number of samples. |
Returns
Type | Description |
---|---|
ParameterValues |
GetPreviousSamplesForCompare(Int64, Int32)
Gets the previous samples for compare.
Declaration
public ParameterValues GetPreviousSamplesForCompare(long startTime, int numberOfSamples)
Parameters
Type | Name | Description |
---|---|---|
System.Int64 | startTime | The start time. |
System.Int32 | numberOfSamples | The number of samples. |
Returns
Type | Description |
---|---|
ParameterValues |
GetPreviousSamplesForCompare(Int64, Int64)
Gets the previous samples for compare.
Declaration
public ParameterValues GetPreviousSamplesForCompare(long startTime, long endTime)
Parameters
Type | Name | Description |
---|---|---|
System.Int64 | startTime | The start time. |
System.Int64 | endTime | The end time. |
Returns
Type | Description |
---|---|
ParameterValues |
GetRepeatingLapData(Int64[], ref MinimumMaximumMeanDouble[], ref DataStatusType[])
Gets the repeating lap data.
Declaration
public void GetRepeatingLapData(long[] actualTimestamps, ref MinimumMaximumMeanDouble[] data, ref DataStatusType[] status)
Parameters
Type | Name | Description |
---|---|---|
System.Int64[] | actualTimestamps | The actual timestamps. |
MinimumMaximumMeanDouble[] | data | The data. |
DataStatusType[] | status | The status. |
GetRepeatingLapData(Int64[], ref MinimumMaximumMeanDouble[], ref DataStatusType[], Int64)
Gets the repeating lap data.
Declaration
public void GetRepeatingLapData(long[] actualTimestamps, ref MinimumMaximumMeanDouble[] data, ref DataStatusType[] status, long interval)
Parameters
Type | Name | Description |
---|---|---|
System.Int64[] | actualTimestamps | The actual timestamps. |
MinimumMaximumMeanDouble[] | data | The data. |
DataStatusType[] | status | The status. |
System.Int64 | interval | Interval in nanoseconds for Data. |
GetRepeatingLapData(Int64[], ref Double[], ref DataStatusType[])
Gets the repeating lap data.
Declaration
public void GetRepeatingLapData(long[] actualTimestamps, ref double[] data, ref DataStatusType[] status)
Parameters
Type | Name | Description |
---|---|---|
System.Int64[] | actualTimestamps | The actual timestamps. |
System.Double[] | data | The data. |
DataStatusType[] | status | The status. |
GetRepeatingLapData(Int64[], ref Double[], ref DataStatusType[], Int64)
Gets the repeating lap data.
Declaration
public void GetRepeatingLapData(long[] actualTimestamps, ref double[] data, ref DataStatusType[] status, long interval)
Parameters
Type | Name | Description |
---|---|---|
System.Int64[] | actualTimestamps | The actual timestamps. |
System.Double[] | data | The data. |
DataStatusType[] | status | The status. |
System.Int64 | interval | Interval in nanoseconds for Data |
GetRepeatingLapData(Int64[], ref Double[], ref Double[], ref DataStatusType[])
Gets the repeating lap data.
Declaration
public void GetRepeatingLapData(long[] actualTimestamps, ref double[] minData, ref double[] maxData, ref DataStatusType[] status)
Parameters
Type | Name | Description |
---|---|---|
System.Int64[] | actualTimestamps | The actual timestamps. |
System.Double[] | minData | The minimum data. |
System.Double[] | maxData | The maximum data. |
DataStatusType[] | status | The status. |
GetRepeatingLapData(Int64[], ref Double[], ref Double[], ref DataStatusType[], Int64)
Gets the repeating lap data.
Declaration
public void GetRepeatingLapData(long[] actualTimestamps, ref double[] minData, ref double[] maxData, ref DataStatusType[] status, long interval)
Parameters
Type | Name | Description |
---|---|---|
System.Int64[] | actualTimestamps | The actual timestamps. |
System.Double[] | minData | The minimum data. |
System.Double[] | maxData | The maximum data. |
DataStatusType[] | status | The status. |
System.Int64 | interval | Interval in nanoseconds for Data |
GetRepeatingLapSamples(TimeRange)
Gets the repeating lap samples.
Declaration
public ParameterValues GetRepeatingLapSamples(TimeRange timeRange)
Parameters
Type | Name | Description |
---|---|---|
TimeRange | timeRange | The time range of the lap. |
Returns
Type | Description |
---|---|
ParameterValues |
GetSamplesForCompare(Int64, Int64, Boolean, Nullable<Int32>)
Gets the samples for compare.
Declaration
public ParameterValues GetSamplesForCompare(long startTime, long endTime, bool useRelativeTimes = false, Nullable<int> numberOfSamples = null)
Parameters
Type | Name | Description |
---|---|---|
System.Int64 | startTime | The primary session start time |
System.Int64 | endTime | The primary session end time |
System.Boolean | useRelativeTimes | Indicates if the time range for the request for the compare session should be built relative to the duration of the single lap. E.g.for the first compare lap, then add compare lap duration to the timestamps for each subsequent lap, so if compare lap is 2 mins long and time stamps run from 15:00:00 to 15:02:00, the first lap would use these timestamps, the second lap would add 2 mins and use timetstamps between 15:02:00 to 15:04:00 etc |
System.Nullable<System.Int32> | numberOfSamples | Optional parameter to specify number of parameters returned on the compare session. |
Returns
Type | Description |
---|---|
ParameterValues |