C# Class AK.F1.Timing.Model.Session.FastestTimesModel

Inheritance: ModelBase
Show file Open project: simoneb/ak-f1-timing Class Usage Examples

Private Properties

Property Type Description
ComputePossible void
CreateFastestTime FastestTimeModel
NotifyIsEmptyChanged void
SetLap void
SetSector void
TrySetLap void
TrySetLapUsingQuallyTime void
TrySetSector void

Public Methods

Method Description
FastestTimesModel ( IDriverModelLocator driverLocator ) : System

Initialises a new instance of the FastestTimesModel class and specifies the driver model provider.

Process ( Message message ) : void
Reset ( ) : void

Resets this model.

Private Methods

Method Description
ComputePossible ( ) : void
CreateFastestTime ( DriverModel driver, System.TimeSpan time, int lapNumber, FastestTimeModel previous ) : FastestTimeModel
NotifyIsEmptyChanged ( ) : void
SetLap ( int driverId, System.TimeSpan time, int lapNumber ) : void

Sets the new fastest lap time.

SetSector ( int sectorNumber, int driverId, System.TimeSpan time, int lapNumber ) : void

Sets the new fastest sector time for the one-based specified sector number.

TrySetLap ( int driverId, PostedTime time ) : void

Tries to set the new fastest lap time.

TrySetLapUsingQuallyTime ( int driverId, System.TimeSpan quallyTime ) : void

Tries to set the new fastest lap time using the given qually time.

TrySetSector ( int sectorNumber, int driverId, PostedTime time ) : void

Tries to set the new fastest sector time for the one-based specified sector number.

Method Details

FastestTimesModel() public method

Initialises a new instance of the FastestTimesModel class and specifies the driver model provider.
/// Thrown when is . ///
public FastestTimesModel ( IDriverModelLocator driverLocator ) : System
driverLocator IDriverModelLocator The driver model provider.
return System

Process() public method

public Process ( Message message ) : void
message Message
return void

Reset() public method

Resets this model.
public Reset ( ) : void
return void