C# Class Common.Tools.PriceCounter

Exibir arquivo Open project: CH033dotNET/Taxi Class Usage Examples

Private Properties

Property Type Description
GetDistance double

Public Methods

Method Description
CalcPrice ( ) : decimal

Calculates price by list of coordinates coordinatesHistory

CountOfMinutes ( System.DateTime start, System.DateTime end ) : double

Calculate namber of minutes between two timepoints

CountOfMinutes ( System.DateTime start, System.DateTime end ) : float
DizableWaitingTime ( ) : void
EnableWaitingTime ( ) : void
PriceCounter ( ) : System
PriceCounter ( List coordinatesHistory, List tarifes ) : System
PriceCounter ( float minPrice, float startPrice, float oneMinuteCost, float waitingCost ) : System
StartCounter ( ) : void
StopCounter ( ) : float

Private Methods

Method Description
GetDistance ( double PreLatitude, double PreLongitude, double CurLatitude, double CurLongitude ) : double

Calculate count of kilometers between two geogragic points

Method Details

CalcPrice() public method

Calculates price by list of coordinates coordinatesHistory
public CalcPrice ( ) : decimal
return decimal

CountOfMinutes() public method

Calculate namber of minutes between two timepoints
public CountOfMinutes ( System.DateTime start, System.DateTime end ) : double
start System.DateTime
end System.DateTime
return double

CountOfMinutes() public method

public CountOfMinutes ( System.DateTime start, System.DateTime end ) : float
start System.DateTime
end System.DateTime
return float

DizableWaitingTime() public method

public DizableWaitingTime ( ) : void
return void

EnableWaitingTime() public method

public EnableWaitingTime ( ) : void
return void

PriceCounter() public method

public PriceCounter ( ) : System
return System

PriceCounter() public method

public PriceCounter ( List coordinatesHistory, List tarifes ) : System
coordinatesHistory List
tarifes List
return System

PriceCounter() public method

public PriceCounter ( float minPrice, float startPrice, float oneMinuteCost, float waitingCost ) : System
minPrice float
startPrice float
oneMinuteCost float
waitingCost float
return System

StartCounter() public method

public StartCounter ( ) : void
return void

StopCounter() public method

public StopCounter ( ) : float
return float