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

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

Private Properties

Property Type Description
ChangeSessionType void
OnSessionEnded void
OnSessionTimeCountDownStarted void
OnSessionTimeCountDownStopped void
SortDrivers void
UpdateElapsedSessionTime void

Public Methods

Method 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.

Protected Methods

Method Description
OnOneSecondElapsed ( ) : void

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

Private Methods

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

Method Details

GetDriver() public method

public GetDriver ( int id ) : DriverModel
id int
return AK.F1.Timing.Model.Driver.DriverModel

OnOneSecondElapsed() protected method

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

Process() public method

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

Reset() public method

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

SessionModel() public method

Initialises a new instance of the SessionModel class.
public SessionModel ( ) : System
return System