Show / Hide Table of Contents

Class MountedLap

Represents a lap exposed by a MountedSession.

Inheritance
System.Object
MountedLap
Implements
System.IComparable<MountedLap>
Namespace: MESL.SqlRace.Domain.MountedSessions
Assembly: MESL.SqlRace.Domain.dll
Syntax
public sealed class MountedLap : Object, IComparable<MountedLap>

Constructors

MountedLap(Int64, Int16, Byte)

Initialises a new instance of the MountedLap class.

Declaration
public MountedLap(long startTime, short number, byte triggerSource = 0)
Parameters
Type Name Description
System.Int64 startTime

Start time, in nanoseconds relative to the session epoch.

System.Int16 number

Number.

System.Byte triggerSource

Trigger source.

Properties

Number

Number. It is possible for lap numbers to be reset multiple times over the course of a session. Laps may potentially arrive out of order in live data.

Declaration
public short Number { get; }
Property Value
Type Description
System.Int16

StartTime

Start time, in nanoseconds relative to the session epoch.

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

TriggerSource

Lap trigger source. This identifies the beacon or loop that triggered the lap. The semantics are series-specific.

Declaration
public byte TriggerSource { get; }
Property Value
Type Description
System.Byte

Methods

CompareTo(MountedLap)

Compares laps.

Declaration
public int CompareTo(MountedLap other)
Parameters
Type Name Description
MountedLap other
Returns
Type Description
System.Int32

Deconstruct(out Int64, out Int32, out Byte)

Deconstructs the lap into its StartTime, Number and TriggerSource.

Declaration
public void Deconstruct(out long startTime, out int number, out byte triggerSource)
Parameters
Type Name Description
System.Int64 startTime

Start time.

System.Int32 number

Number.

System.Byte triggerSource

Trigger source.

See Also
StartTime
Number
TriggerSource

Equals(Object)

Determines whether the specified object is equal to the current object.

Declaration
public override bool Equals(object obj)
Parameters
Type Name Description
System.Object obj
Returns
Type Description
System.Boolean

GetHashCode()

Serves as the default hash function.

Declaration
public override int GetHashCode()
Returns
Type Description
System.Int32

ToString()

Returns a string that represents the current object.

Declaration
public override string ToString()
Returns
Type Description
System.String

Operators

Equality(MountedLap, MountedLap)

Equality operator.

Declaration
public static bool operator ==(MountedLap left, MountedLap right)
Parameters
Type Name Description
MountedLap left

Lap.

MountedLap right

Lap.

Returns
Type Description
System.Boolean

true if equal.

Inequality(MountedLap, MountedLap)

Inequality operator.

Declaration
public static bool operator !=(MountedLap left, MountedLap right)
Parameters
Type Name Description
MountedLap left

Lap.

MountedLap right

Lap.

Returns
Type Description
System.Boolean

true if not equal.

Implements

System.IComparable<>
Back to top Generated by DocFX