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

Provides detailed information about a single F1 timing session.
Inheritance: ModelBase, IMessageProcessor, IDriverModelLocator
Afficher le fichier Open project: simoneb/ak-f1-timing Class Usage Examples

Private Properties

Свойство Type Description
ChangeSessionType void
OnSessionEnded void
OnSessionTimeCountDownStarted void
OnSessionTimeCountDownStopped void
SortDrivers void
UpdateElapsedSessionTime void

Méthodes publiques

Méthode Description
GetDriver ( int id ) : DriverModel
Process ( Message message ) : void

Processes the specified message.

Reset ( ) : void

Resets this session.

SessionModel ( ) : System

Initialises a new instance of the SessionModel class.

Méthodes protégées

Méthode Description
OnOneSecondElapsed ( ) : void

Event handler invoked when a second has elapsed. This callback handler is only invoked when the session has started.

Private Methods

Méthode Description
ChangeSessionType ( SessionType newSessionType ) : void
OnSessionEnded ( ) : void
OnSessionTimeCountDownStarted ( ) : void
OnSessionTimeCountDownStopped ( ) : void
SortDrivers ( ) : void
UpdateElapsedSessionTime ( System.TimeSpan elapsed ) : void

Method Details

GetDriver() public méthode

public GetDriver ( int id ) : DriverModel
id int
Résultat AK.F1.Timing.Model.Driver.DriverModel

OnOneSecondElapsed() protected méthode

Event handler invoked when a second has elapsed. This callback handler is only invoked when the session has started.
protected OnOneSecondElapsed ( ) : void
Résultat void

Process() public méthode

Processes the specified message.
/// Throw when is . ///
public Process ( Message message ) : void
message Message The message to process.
Résultat void

Reset() public méthode

Resets this session.
public Reset ( ) : void
Résultat void

SessionModel() public méthode

Initialises a new instance of the SessionModel class.
public SessionModel ( ) : System
Résultat System