|
Vesna
|
#include <PassengerCountBusinessLogic.h>


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< PassengersCount > | GetManualPassengersGettingOutCounts () 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 |
| PassengerCountBusinessLogic::PassengerCountBusinessLogic | ( | ) |
|
virtual |
| 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.

| 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.

| std::vector< PassengersCount > PassengerCountBusinessLogic::GetManualPassengersGettingOutCounts | ( | ) | const |
GetGettingOutPassengersCounts returns number of passengers who are getting out at every bus stop of the trip.

| PassengersCount PassengerCountBusinessLogic::GetPassengersCount | ( | const PassengerCounterDefines::PassengerCounterType | counterType, |
| bool | includeActualBusStop = false |
||
| ) | const |
GetPassengersCount - method returns passenger count.
| counterType | - manual passenger counter (from bought tickets) or automatic passenger counter (APC device) |
| includeActualBusStop | - determine if also count passengers on actual bus stop |

| bool PassengerCountBusinessLogic::IsAutomaticPassengerCounterPresent | ( | ) |

| 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)
| 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 | ||
| ) |
|
static |
1.8.8