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

#include <PassengerCountBusinessLogic.h>

Inheritance diagram for PassengerCountBusinessLogic:
Inheritance graph
[legend]
Collaboration diagram for PassengerCountBusinessLogic:
Collaboration graph
[legend]

Public Member Functions

 PassengerCountBusinessLogic ()
 
virtual ~PassengerCountBusinessLogic ()
 
void IssueIn (const bool sameLineTrip, const bool isUrbanLine, const bool currentTripIsContinousForPrevisousTrip, const long continousTripOffset)
 
void EvaluatePostIssueData (const std::vector< const EM::TicketIssueLogic::ETicketIssueLogicOutputData * > *outputDataCol)
 
void PassengersGotIn (const uint16_t count, const uint16_t checkOutBusStopTripOrder)
 
void CancelPassengersGotIn (const uint16_t count, const int32_t busStopLineOrder)
 
PassengersCount GetPassengersCount (const PassengerCounterDefines::PassengerCounterType counterType, bool includeActualBusStop=false) const
 GetPassengersCount - method returns passenger count. More...
 
PassengersCount GetManualPassengersGettingOutAtCurrentBusStop () const
 GetManualPassengersGettingOutAtCurrentBusStop returns number of passengers who bought ticket to the bus stop where the bus is about to arrive at. More...
 
std::vector< PassengersCountGetManualPassengersGettingOutCounts () const
 GetGettingOutPassengersCounts returns number of passengers who are getting out at every bus stop of the trip. More...
 
void OnAutomaticPassengerCountResultsArrived (const uint16_t boardedCount, const uint16_t alightedCount)
 OnAutomaticPassengerCountResultsArrived - method to process passenger count changes received from APC (Irma) More...
 
void OnAutomaticPassengerCountResultsArrived (const uint8_t fullness, const uint16_t capacity, const uint16_t passengerCount, const QString &calculationTime, const uint32_t busStopID, const uint8_t busStopOrder)
 OnAutomaticPassengerCountResultsArrived - method to process passenger count changes received from APC (AzdReceiver) More...
 
QString GetAutomaticCountingResult () const
 GetAutomaticCountingResult - returns value based on AutomaticPassengerCountingResultMeaning in ProjectConfiguration. More...
 
void OnBusStopDeparture (const long busStopTripOrder)
 
PassengerCounterDefines::AutomaticPassengerCounterType GetAutomaticPassengerCounterType () const
 
bool IsAutomaticPassengerCounterPresent ()
 
- Public Member Functions inherited from BusinessLogic
 BusinessLogic (ApplicationDefines::BusinessLogicType businessLogicType, ApplicationDefines::BusinessLogicLifeTimeType businessLogicLifeTimeType)
 
virtual ~BusinessLogic ()
 
ApplicationDefines::BusinessLogicType GetBusinessLogicType () const
 
ApplicationDefines::BusinessLogicLifeTimeType GetBusinessLogicLifeTimeType () const
 

Static Public Attributes

static const
ApplicationDefines::BusinessLogicType 
mBusinessLogicType = ApplicationDefines::PassengerCountBusinessLogic
 

Constructor & Destructor Documentation

PassengerCountBusinessLogic::PassengerCountBusinessLogic ( )
PassengerCountBusinessLogic::~PassengerCountBusinessLogic ( )
virtual

Member Function Documentation

void PassengerCountBusinessLogic::CancelPassengersGotIn ( const uint16_t  count,
const int32_t  busStopLineOrder 
)
void PassengerCountBusinessLogic::EvaluatePostIssueData ( const std::vector< const EM::TicketIssueLogic::ETicketIssueLogicOutputData * > *  outputDataCol)
QString PassengerCountBusinessLogic::GetAutomaticCountingResult ( ) const

GetAutomaticCountingResult - returns value based on AutomaticPassengerCountingResultMeaning in ProjectConfiguration.

Returns
Passenger count or fullness.

Here is the caller graph for this function:

PassengerCounterDefines::AutomaticPassengerCounterType PassengerCountBusinessLogic::GetAutomaticPassengerCounterType ( ) const
PassengersCount PassengerCountBusinessLogic::GetManualPassengersGettingOutAtCurrentBusStop ( ) const

GetManualPassengersGettingOutAtCurrentBusStop returns number of passengers who bought ticket to the bus stop where the bus is about to arrive at.

Returns
number of passengers

Here is the caller graph for this function:

std::vector< PassengersCount > PassengerCountBusinessLogic::GetManualPassengersGettingOutCounts ( ) const

GetGettingOutPassengersCounts returns number of passengers who are getting out at every bus stop of the trip.

Returns
vector of long integers, where the position in the vector is the trip order of the bus stop, and value is the number of passengers

Here is the caller graph for this function:

PassengersCount PassengerCountBusinessLogic::GetPassengersCount ( const PassengerCounterDefines::PassengerCounterType  counterType,
bool  includeActualBusStop = false 
) const

GetPassengersCount - method returns passenger count.

Parameters
counterType- manual passenger counter (from bought tickets) or automatic passenger counter (APC device)
includeActualBusStop- determine if also count passengers on actual bus stop
Returns
passenger count for selected counter type

Here is the caller graph for this function:

bool PassengerCountBusinessLogic::IsAutomaticPassengerCounterPresent ( )

Here is the caller graph for this function:

void PassengerCountBusinessLogic::IssueIn ( const bool  sameLineTrip,
const bool  isUrbanLine,
const bool  currentTripIsContinousForPrevisousTrip,
const long  continousTripOffset 
)
void PassengerCountBusinessLogic::OnAutomaticPassengerCountResultsArrived ( const uint16_t  boardedCount,
const uint16_t  alightedCount 
)

OnAutomaticPassengerCountResultsArrived - method to process passenger count changes received from APC (Irma)

Parameters
boardedCount- boarded passengers count
alightedCount- alighted passengers count
void PassengerCountBusinessLogic::OnAutomaticPassengerCountResultsArrived ( const uint8_t  fullness,
const uint16_t  capacity,
const uint16_t  passengerCount,
const QString &  calculationTime,
const uint32_t  busStopID,
const uint8_t  busStopOrder 
)

OnAutomaticPassengerCountResultsArrived - method to process passenger count changes received from APC (AzdReceiver)

void PassengerCountBusinessLogic::OnBusStopDeparture ( const long  busStopTripOrder)
void PassengerCountBusinessLogic::PassengersGotIn ( const uint16_t  count,
const uint16_t  checkOutBusStopTripOrder 
)

Member Data Documentation

const ApplicationDefines::BusinessLogicType PassengerCountBusinessLogic::mBusinessLogicType = ApplicationDefines::PassengerCountBusinessLogic
static

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