C# 클래스 AK.F1.Timing.Live.LiveDriver

파일 보기 프로젝트 열기: simoneb/ak-f1-timing 1 사용 예제들

Private Properties

프로퍼티 타입 설명
GetBitForColumn int
IsValidSectorNumber bool

공개 메소드들

메소드 설명
ChangeStatus ( DriverStatus newStatus ) : void

Tries to change the status of this driver.

ColumnHasValue ( GridColumn column ) : bool

Returns a value indicating if the specified column has a value.

ComputeLapNumber ( int raceLapNumber ) : int

Computes the lap number of this driver given the current race lap number.

GetLastSector ( int sectorNumber ) : PostedTime

Gets the last sector time for the specified sector number.

IsCurrentSectorNumber ( int sectorNumber ) : bool

Returns a value indicating if the specfied sector number is the sector this driver is currently completing.

IsPreviousSectorNumber ( int sectorNumber ) : bool

Returns a value indicating if the specfied sector number is the one previous to that this driver completed.

LiveDriver ( int id ) : System

Initialises a new instance of the LiveDriver class.

MatchesName ( string s ) : bool

Returns a value indicating if the specified string matches this driver's name.

Reset ( ) : void

Resets all state information associated with this driver.

SetColumnHasValue ( GridColumn column, bool value ) : void

Sets a value indicating if the specified column has a value.

SetLastSector ( int sectorNumber, PostedTime time ) : void

Sets this driver's last sector time.

ToString ( ) : string

비공개 메소드들

메소드 설명
GetBitForColumn ( GridColumn column ) : int
IsValidSectorNumber ( int sectorNumber ) : bool

메소드 상세

ChangeStatus() 공개 메소드

Tries to change the status of this driver.
public ChangeStatus ( DriverStatus newStatus ) : void
newStatus DriverStatus The new driver status.
리턴 void

ColumnHasValue() 공개 메소드

Returns a value indicating if the specified column has a value.
public ColumnHasValue ( GridColumn column ) : bool
column GridColumn The column to test.
리턴 bool

ComputeLapNumber() 공개 메소드

Computes the lap number of this driver given the current race lap number.
/// Thrown when is negative. ///
public ComputeLapNumber ( int raceLapNumber ) : int
raceLapNumber int The race lap number
리턴 int

GetLastSector() 공개 메소드

Gets the last sector time for the specified sector number.
/// Thrown when is zero or greater than three. ///
public GetLastSector ( int sectorNumber ) : PostedTime
sectorNumber int The one-based sector number.
리턴 PostedTime

IsCurrentSectorNumber() 공개 메소드

Returns a value indicating if the specfied sector number is the sector this driver is currently completing.
public IsCurrentSectorNumber ( int sectorNumber ) : bool
sectorNumber int The one-based sector number.
리턴 bool

IsPreviousSectorNumber() 공개 메소드

Returns a value indicating if the specfied sector number is the one previous to that this driver completed.
public IsPreviousSectorNumber ( int sectorNumber ) : bool
sectorNumber int The one-based sector number.
리턴 bool

LiveDriver() 공개 메소드

Initialises a new instance of the LiveDriver class.
public LiveDriver ( int id ) : System
id int
리턴 System

MatchesName() 공개 메소드

Returns a value indicating if the specified string matches this driver's name.
public MatchesName ( string s ) : bool
s string The string to test.
리턴 bool

Reset() 공개 메소드

Resets all state information associated with this driver.
public Reset ( ) : void
리턴 void

SetColumnHasValue() 공개 메소드

Sets a value indicating if the specified column has a value.
public SetColumnHasValue ( GridColumn column, bool value ) : void
column GridColumn The column to set.
value bool if the specified column has a value, /// otherwise;
리턴 void

SetLastSector() 공개 메소드

Sets this driver's last sector time.
/// Thrown when is zero or greater than three. /// /// Thrown when is . ///
public SetLastSector ( int sectorNumber, PostedTime time ) : void
sectorNumber int The one-based sector number.
time PostedTime The sector time.
리턴 void

ToString() 공개 메소드

public ToString ( ) : string
리턴 string