C# Class SimShift.Models.GenericDrivetrain

Inheritance: IDrivetrain
Show file Open project: nlhans/SimShift

Public Methods

Method Description
ApplyParameter ( IniValueObject obj ) : void
CalculateFuelConsumption ( double rpm, double throttle ) : double
CalculateMaxPower ( ) : double
CalculatePower ( double rpm, double throttle ) : double
CalculateRpmForSpeed ( int gear, float speed ) : double
CalculateSpeedForRpm ( int gear, float rpm ) : double
CalculateThrottleByPower ( double rpm, double powerRequired ) : double
CalculateThrottleByTorque ( double rpm, double torque ) : double
CalculateTorqueN ( double rpm ) : double
CalculateTorqueP ( double rpm, double throttle ) : double
ExportParameters ( ) : IEnumerable
GenericDrivetrain ( ) : System.Collections.Generic
GotDamage ( float damage ) : bool
ResetParameters ( ) : void

Method Details

ApplyParameter() public method

public ApplyParameter ( IniValueObject obj ) : void
obj SimShift.Utils.IniValueObject
return void

CalculateFuelConsumption() public method

public CalculateFuelConsumption ( double rpm, double throttle ) : double
rpm double
throttle double
return double

CalculateMaxPower() public method

public CalculateMaxPower ( ) : double
return double

CalculatePower() public method

public CalculatePower ( double rpm, double throttle ) : double
rpm double
throttle double
return double

CalculateRpmForSpeed() public method

public CalculateRpmForSpeed ( int gear, float speed ) : double
gear int
speed float
return double

CalculateSpeedForRpm() public method

public CalculateSpeedForRpm ( int gear, float rpm ) : double
gear int
rpm float
return double

CalculateThrottleByPower() public method

public CalculateThrottleByPower ( double rpm, double powerRequired ) : double
rpm double
powerRequired double
return double

CalculateThrottleByTorque() public method

public CalculateThrottleByTorque ( double rpm, double torque ) : double
rpm double
torque double
return double

CalculateTorqueN() public method

public CalculateTorqueN ( double rpm ) : double
rpm double
return double

CalculateTorqueP() public method

public CalculateTorqueP ( double rpm, double throttle ) : double
rpm double
throttle double
return double

ExportParameters() public method

public ExportParameters ( ) : IEnumerable
return IEnumerable

GenericDrivetrain() public method

public GenericDrivetrain ( ) : System.Collections.Generic
return System.Collections.Generic

GotDamage() public method

public GotDamage ( float damage ) : bool
damage float
return bool

ResetParameters() public method

public ResetParameters ( ) : void
return void