Show / Hide Table of Contents

Class DriverBase

Inheritance
System.Object
DriverBase
Namespace: MESL.SqlRace.Domain.FileDrivers
Assembly: MESL.SqlRace.Domain.dll
Syntax
public abstract class DriverBase : Object, IDataFileDriver

Constructors

DriverBase()

Declaration
protected DriverBase()

Fields

DefaultLap1Name

Default name for first lap

Declaration
protected const string DefaultLap1Name = "Lap 1"
Field Value
Type Description
System.String

ParametersName

Parameter names

Declaration
protected string[] ParametersName
Field Value
Type Description
System.String[]

Values

Values

Declaration
protected double[][] Values
Field Value
Type Description
System.Double[][]

Properties

EndTime

EndTime

Declaration
public long EndTime { get; protected set; }
Property Value
Type Description
System.Int64

Identifier

Identifier

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

IsDataLoaded

True if the data has been loaded

Declaration
public bool IsDataLoaded { get; protected set; }
Property Value
Type Description
System.Boolean

ParameterIdentifiers

ParameterIdentifiers

Declaration
public IList<string> ParameterIdentifiers { get; protected set; }
Property Value
Type Description
System.Collections.Generic.IList<System.String>

ParameterUnits

ParameterIdentifiers

Declaration
public IDictionary<string, string> ParameterUnits { get; protected set; }
Property Value
Type Description
System.Collections.Generic.IDictionary<System.String, System.String>

StartTime

StartTime

Declaration
public long StartTime { get; protected set; }
Property Value
Type Description
System.Int64

TimeOfRecording

TimeOfRecording

Declaration
public DateTime TimeOfRecording { get; protected set; }
Property Value
Type Description
System.DateTime

Methods

GetConstants()

Gets the session constants.

Declaration
public virtual IEnumerable<Constant> GetConstants()
Returns
Type Description
System.Collections.Generic.IEnumerable<Constant>

GetLaps()

Gets the laps.

Declaration
public virtual IEnumerable<Lap> GetLaps()
Returns
Type Description
System.Collections.Generic.IEnumerable<Lap>

GetMarkers()

Gets the session markers.

Declaration
public virtual IEnumerable<Marker> GetMarkers()
Returns
Type Description
System.Collections.Generic.IEnumerable<Marker>

GetNextSample(String, Int64, out Double, out Int64)

GetNextSample

Declaration
public DataStatusType GetNextSample(string parameterIdentifier, long startTime, out double sample, out long timestamp)
Parameters
Type Name Description
System.String parameterIdentifier
System.Int64 startTime
System.Double sample
System.Int64 timestamp
Returns
Type Description
MAT.OCS.Core.DataStatusType

GetNextSamples(String, Int64, Int32)

GetNextSamples

Declaration
public ISamplesDataResult GetNextSamples(string parameterIdentifier, long startTime, int maximumNumberOfSamples)
Parameters
Type Name Description
System.String parameterIdentifier
System.Int64 startTime
System.Int32 maximumNumberOfSamples
Returns
Type Description
ISamplesDataResult

GetParameterApplicationGroup(String)

Declaration
public virtual string GetParameterApplicationGroup(string parameterIdentifier)
Parameters
Type Name Description
System.String parameterIdentifier
Returns
Type Description
System.String

GetParameterApplicationGroupDescription(String)

Declaration
public virtual string GetParameterApplicationGroupDescription(string parameterIdentifier)
Parameters
Type Name Description
System.String parameterIdentifier
Returns
Type Description
System.String

GetParameterDescription(String)

Gets the description of the parameter.

Declaration
public virtual string GetParameterDescription(string parameterIdentifier)
Parameters
Type Name Description
System.String parameterIdentifier

The parameter identifier.

Returns
Type Description
System.String

GetParameterFormat(String, Double)

Gets the parameter format.

Declaration
public virtual string GetParameterFormat(string parameterIdentifier, double value)
Parameters
Type Name Description
System.String parameterIdentifier

The parameter identifier

System.Double value

The value.

Returns
Type Description
System.String

GetParameterGroup(String)

Gets the parameter group.

Declaration
public virtual string GetParameterGroup(string parameterIdentifier)
Parameters
Type Name Description
System.String parameterIdentifier

The parameter identifier.

Returns
Type Description
System.String

GetParameterMaxValue(String)

Maximums the parameter value.

Declaration
public virtual double GetParameterMaxValue(string parameterIdentifier)
Parameters
Type Name Description
System.String parameterIdentifier

The parameter identifier.

Returns
Type Description
System.Double

GetParameterMinValue(String)

Gets the parameter minimum value.

Declaration
public virtual double GetParameterMinValue(string parameterIdentifier)
Parameters
Type Name Description
System.String parameterIdentifier

The parameter identifier.

Returns
Type Description
System.Double

GetParameterName(String)

Gets the name of the parameter.

Declaration
public virtual string GetParameterName(string parameterIdentifier)
Parameters
Type Name Description
System.String parameterIdentifier

The parameter identifier.

Returns
Type Description
System.String

GetParameterUnit(String)

GetParameterUnit

Declaration
public virtual string GetParameterUnit(string parameterIdentifier)
Parameters
Type Name Description
System.String parameterIdentifier
Returns
Type Description
System.String

GetPrevSample(String, Int64, out Double, out Int64)

GetPrevSample

Declaration
public DataStatusType GetPrevSample(string parameterIdentifier, long startTime, out double sample, out long timestamp)
Parameters
Type Name Description
System.String parameterIdentifier
System.Int64 startTime
System.Double sample
System.Int64 timestamp
Returns
Type Description
MAT.OCS.Core.DataStatusType

GetPrevSamples(String, Int64, Int32)

GetPrevSamples

Declaration
public ISamplesDataResult GetPrevSamples(string parameterIdentifier, long startTime, int maximumNumberOfSamples)
Parameters
Type Name Description
System.String parameterIdentifier
System.Int64 startTime
System.Int32 maximumNumberOfSamples
Returns
Type Description
ISamplesDataResult

GetSamplesForParameter(String, Int64, Int64)

GetSamplesForParameter

Declaration
public ISamplesDataResult GetSamplesForParameter(string parameterIdentifier, long startTime, long endTime)
Parameters
Type Name Description
System.String parameterIdentifier
System.Int64 startTime
System.Int64 endTime
Returns
Type Description
ISamplesDataResult

GetSessionEpochDate()

Gets the session epoch date.

Declaration
public virtual Nullable<DateTime> GetSessionEpochDate()
Returns
Type Description
System.Nullable<System.DateTime>

GetTimeStamps(Int32)

Gets the time stamps.

Declaration
protected virtual long[] GetTimeStamps(int parameterIdentifierIndex)
Parameters
Type Name Description
System.Int32 parameterIdentifierIndex

Index of the parameter identifier.

Returns
Type Description
System.Int64[]

LoadForData()

LoadForData

Declaration
public abstract bool LoadForData()
Returns
Type Description
System.Boolean

LoadForInfoAndConfig()

LoadForInfoAndConfig

Declaration
public abstract bool LoadForInfoAndConfig()
Returns
Type Description
System.Boolean

SetTimeStamps(Int64[])

Sets the time stamps.

Declaration
protected void SetTimeStamps(long[] standardTimeStamps)
Parameters
Type Name Description
System.Int64[] standardTimeStamps

The standard time stamps.

SystemToAtlasTime(DateTime)

SystemToAtlasTime

Declaration
protected virtual long SystemToAtlasTime(DateTime time)
Parameters
Type Name Description
System.DateTime time
Returns
Type Description
System.Int64
Back to top Generated by DocFX