Vesna
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Static Public Member Functions | List of all members
DelayGeneralLogic Class Reference

#include <DelayGeneralLogic.h>

Static Public Member Functions

static
ApplicationDefines::ResultValue 
CalculateDelayOnSynchroPoint (const RouteSynchroPoint &routeSynchroPoint, const int actualTripBusStopIndex, int &delay)
 CalculateDelayOnSynchroPoint - calculates delay or advance based on synchro point hit routeSynchroPoint and actual trip bus stop order actualTripBusStopIndex. More...
 
static
ApplicationDefines::ResultValue 
CalculateDelayOnBusStop (const int tripBusStopIndex, int &delay, bool useArrivalTime=false)
 CalculateDelayOnBusStop - calculates delay by tariff time by defined trip bus stop order tripBusStopIndex. More...
 

Member Function Documentation

ApplicationDefines::ResultValue DelayGeneralLogic::CalculateDelayOnBusStop ( const int  tripBusStopIndex,
int &  delay,
bool  useArrivalTime = false 
)
static

CalculateDelayOnBusStop - calculates delay by tariff time by defined trip bus stop order tripBusStopIndex.

Parameters
tripBusStopIndex- bus stop index
delay- output param
useArrivalTime- delay calculation uses arrival time instead of departure time
Returns
ApplicationDefines::ResultValue

Here is the caller graph for this function:

ApplicationDefines::ResultValue DelayGeneralLogic::CalculateDelayOnSynchroPoint ( const RouteSynchroPoint routeSynchroPoint,
const int  actualTripBusStopIndex,
int &  delay 
)
static

CalculateDelayOnSynchroPoint - calculates delay or advance based on synchro point hit routeSynchroPoint and actual trip bus stop order actualTripBusStopIndex.

Parameters
routeSynchroPoint- actual route synchro point information
actualTripBusStopIndex- actual trip bus stop order
delay- output param - calculated delay - value greater than 0 means 'delay', value less than 0 means 'advance'
Returns
ApplicationDefines::ResultValue

Here is the call graph for this function:


The documentation for this class was generated from the following files: