Interface ILapCollection
The lap collection is responsible for managing the collection of laps for a session i.e. modifying end times for laps as they are added, and for ensuring that changes get persisted.
Inherited Members
Namespace: MESL.SqlRace.Domain.Collections
Assembly: MESL.SqlRace.Domain.dll
Syntax
public interface ILapCollection : IPersistableCollection<Lap>, IList<Lap>, ICollection<Lap>, IEnumerable<Lap>, IEnumerableProperties
Constants
Gets the collection lap constants. Items containing binary data will not contain their data, however the data can be retrieved by calling GetBinaryData.
Declaration
SessionDataItemsCollection<LapConstant> Constants { get; }Property Value
| Type | Description | 
|---|---|
| SessionDataItemsCollection<LapConstant> | The lap items. | 
DebouncePeriod
Gets or sets the de-bounce period for a lap.
Declaration
long DebouncePeriod { get; set; }Property Value
| Type | Description | 
|---|---|
| System.Int64 | The de-bounce period. | 
FastestLap
Gets the fastest lap in the collection. This is the lap with the shortest lap time where CountForFastestLap is true.
Declaration
Lap FastestLap { get; }Property Value
| Type | Description | 
|---|---|
| Lap | The fastest lap, or null if there is no suitable match. | 
LapItems
Gets the collection lap data items. Items containing binary data will not contain their data, however the data can be retrieved by calling GetBinaryData.
Declaration
SessionDataItemsCollection<LapDataItem> LapItems { get; }Property Value
| Type | Description | 
|---|---|
| SessionDataItemsCollection<LapDataItem> | The lap items. | 
Maps
Gets the collection lap maps. Items containing binary data will not contain their data, however the data can be retrieved by calling PopulateDataPoints.
Declaration
MapCollection<LapMapBase> Maps { get; }Property Value
| Type | Description | 
|---|---|
| MapCollection<LapMapBase> | 
Methods
RemoveAll(Predicate<Lap>)
Removes all items matching predicate.
Declaration
bool RemoveAll(Predicate<Lap> func)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Predicate<Lap> | func | The predicate func. | 
Returns
| Type | Description | 
|---|---|
| System.Boolean | True if items were removed | 
Update(Lap)
Updates the specified lap, overwriting it's data with that in the passed lap instance. The lap instance passed must have been previously persisted to the session.
Declaration
void Update(Lap lap)Parameters
| Type | Name | Description | 
|---|---|---|
| Lap | lap | The lap to update. |