C# 클래스 SimTelemetry.Data.Telemetry

상속: ITelemetry
파일 보기 프로젝트 열기: nlhans/SimTelemetry

공개 프로퍼티들

프로퍼티 타입 설명
Computations SimTelemetry.Data.Computations
Peripherals IDevices
binaryDirectory string
m Telemetry

공개 메소드들

메소드 설명
Bootup ( string workingDirectory ) : void

This method actually boots up the data frame-work. This method is called via the ThreadPool from Run().

ForceTrackLoad ( ) : void

'Force' a track reload.

NetworkTrack_LoadInfo ( NetworkTrackInformation routeInfo ) : void

Loads track info from network.

NetworkTrack_LoadRoute ( RouteCollection routeCollection ) : void

Loads route from network.

Run ( ) : void

Runs the telemetry network. The boot-up code is called via ThreadPool

Telemetry ( ) : System

Initialize telemetry. The main program will have to call Run() seperately.

Track_Load ( ISimulator sim, string track ) : void

Load new track. Specify location of gamedirectory and file.

Track_Unload ( ) : void

Unloads track.

비공개 메소드들

메소드 설명
GetConnection ( ) : IDbConnection

This creates a new OleDB connection to the SimTelemetry access database. This function is called from the Triton Database pool allowing simultanous access from various threads to the database.

Report_DrivingStart ( ISimulator sim ) : void

Fire Driving Start event.

Report_DrivingStop ( ISimulator sim ) : void

Fire Driving Stop event.

Report_Laps ( ISimulator me, ILap lap ) : void

Fire Lap event.

Report_SessionStart ( ISimulator me ) : void

Fire Session Start event.

Report_SessionStop ( ISimulator me ) : void

Fire Session Stop event.

Report_SimStart ( ISimulator me ) : void

Fire Sim Start event.

Report_SimStop ( ISimulator me ) : void

Fire Sim Stop event.

Simulator_StatePoller ( ) : void

Thread polling the status of all simulators. Will fire events Sim_Start/Stop, Session_Start/Stop.

For proper shutdown of this thread, call TritonBase.TriggerExit();

Telemetry_Session_Start ( object sender ) : void

Whenever a session starts this function will trigger the track parser to load the new track file. The event Track_Loaded is fired with a 500ms delay to allow the track parser to complete. The session_start function is trigger from the Simulator_StatePoller, which runs seperately anyway.

메소드 상세

Bootup() 공개 메소드

This method actually boots up the data frame-work. This method is called via the ThreadPool from Run().
public Bootup ( string workingDirectory ) : void
workingDirectory string Pass string.Empty for default; otherwise provide working directory for SimTelemetry
리턴 void

ForceTrackLoad() 공개 메소드

'Force' a track reload.
public ForceTrackLoad ( ) : void
리턴 void

NetworkTrack_LoadInfo() 공개 메소드

Loads track info from network.
public NetworkTrack_LoadInfo ( NetworkTrackInformation routeInfo ) : void
routeInfo SimTelemetry.Data.Net.NetworkTrackInformation
리턴 void

NetworkTrack_LoadRoute() 공개 메소드

Loads route from network.
public NetworkTrack_LoadRoute ( RouteCollection routeCollection ) : void
routeCollection SimTelemetry.Objects.RouteCollection
리턴 void

Run() 공개 메소드

Runs the telemetry network. The boot-up code is called via ThreadPool
public Run ( ) : void
리턴 void

Telemetry() 공개 메소드

Initialize telemetry. The main program will have to call Run() seperately.
public Telemetry ( ) : System
리턴 System

Track_Load() 공개 메소드

Load new track. Specify location of gamedirectory and file.
public Track_Load ( ISimulator sim, string track ) : void
sim ISimulator Source simulator of track
track string Relative path from gamedirectory to track file OR track name.
리턴 void

Track_Unload() 공개 메소드

Unloads track.
public Track_Unload ( ) : void
리턴 void

프로퍼티 상세

Computations 공개적으로 프로퍼티

General calculations based on game data.
public Computations,SimTelemetry.Data Computations
리턴 SimTelemetry.Data.Computations

Peripherals 공개적으로 프로퍼티

Data sent to hardware devices. Currently only used for exclusive peripherals.
public IDevices Peripherals
리턴 IDevices

binaryDirectory 공개적으로 프로퍼티

public string binaryDirectory
리턴 string

m 공개적으로 정적으로 프로퍼티

Single-ton Telemetry for general access everywhere.
public static Telemetry,SimTelemetry.Data m
리턴 Telemetry