|
AppCore
|
#include <ETimeTicketModule.h>


Public Member Functions | |
| ETimeTicketModule (ETicketIssueLogic *ticketIssueLogic, ETicketIssueLogicDataStorage *dataStorage, std::string moduleName=E_TIME_TICKET_MODULE_NAME) | |
| virtual | ~ETimeTicketModule () |
| virtual EIssueLogicDefines::ReturnValues | FindAndStoreValidTimeTickets () |
| Searches for valid time ticket on card. More... | |
| virtual EIssueLogicDefines::ReturnValues | DoTimeTicketJourney () |
| Sets data about timeTicket journey to card. More... | |
| virtual EIssueLogicDefines::ReturnValues | Init () |
| Function saves (into memebers) some more frequently used modules. More... | |
| virtual EIssueLogicDefines::ReturnValues | CheckTimeValidity (const unsigned char timeTicketIndex, bool &valid) |
| checks time validity of time ticket on given index. In parameter valid will be stored information whether it's valid or not. More... | |
| EIssueLogicDefines::ReturnValues | CheckUrbanTransportOnBusstop (const unsigned char timeTicketIndex, const long busStopLineOrder, bool &valid) const |
| Compares urban transport number on card and on busstop (they have to be equal) More... | |
| EIssueLogicDefines::ReturnValues | CheckNetworkOnBusstop (const unsigned char timeTicketIndex, const unsigned long busStopLineOrder, const unsigned long sectionStart, bool &valid) const |
| checks if idsNID == cardNID More... | |
| EIssueLogicDefines::ReturnValues | CheckUTNOrNetworkIDValidity (const unsigned char timeTicketIndex, const unsigned long busStopLineOrder, const unsigned long sectionStart, bool &timeTicketValid) const |
| CheckUTNOrNetworkIDValidity - Check urban transport number or network ID validity. More... | |
| EIssueLogicDefines::ReturnValues | GetZonesCoveredByTimeTickets (std::vector< unsigned short > &zones) |
| GetZonesCoveredByTimeTickets. More... | |
Public Member Functions inherited from EM::TicketIssueLogic::ETicketIssueModule | |
| ETicketIssueModule (const std::string &name, EIssueLogicDefines::ModuleFamily moduleFamily) | |
| virtual | ~ETicketIssueModule () |
| bool | GetName (std::string &moduleName) |
| unique module identificator More... | |
| bool | GetModuleFamily (EIssueLogicDefines::ModuleFamily &moduleFamily) |
| return by reference module family More... | |
Protected Member Functions | |
| virtual EIssueLogicDefines::ReturnValues | CheckSupplementaryConditions (const unsigned char timeTicketIndex, bool &valid) |
| performs supplemtary checks on time ticket (e.g. number of trips on trip card). In parameter valid will be stored information whether it's valid or not. More... | |
| virtual EIssueLogicDefines::ReturnValues | CheckTariffValidity (unsigned char timeTicketIndex, bool &valid) |
| Checks if tariff for specified tariffTicketNumber exists and then checks if it's placed on tariff group (if it should be checked) More... | |
| virtual EIssueLogicDefines::ReturnValues | SetOneWayTicketData (bool flagCanDoInterchange) |
| sets one-way ticket's data holding informations about journey on time ticket More... | |
| virtual EIssueLogicDefines::ReturnValues | CheckHoursTimeTicket (const short timeTicketIndex, bool &validTimeTicketOnTrip) |
| CheckHoursTimeTicket - Check hoursTimeTicket validity. TEMPORARY FUNCTION. More... | |
| INTERNAL ETimeTicketModule::ETimeTicketModule | ( | ETicketIssueLogic * | ticketIssueLogic, |
| ETicketIssueLogicDataStorage * | dataStorage, | ||
| std::string | moduleName = E_TIME_TICKET_MODULE_NAME |
||
| ) |
CONSTRUCTOR
|
virtual |
DESTRUCTOR
|
protectedvirtual |
CheckHoursTimeTicket - Check hoursTimeTicket validity. TEMPORARY FUNCTION.
| timeTicketIndex | - index of time ticket to be checked |
| validTimeTicketOnTrip | - output param. True if time ticket with index timeTicketIndex is valid on given bus stop |
CheckHoursTimeTicket
| EM::TicketIssueLogic::ETimeTicketModule::CheckNetworkOnBusstop | ( | const unsigned char | timeTicketIndex, |
| const unsigned long | busStopLineOrder, | ||
| const unsigned long | sectionStart, | ||
| bool & | valid | ||
| ) | const |
checks if idsNID == cardNID
CheckNetworkOnBusstop
| timeTicketIndex | - index of time ticket to be checked |
| valid | - output param. True if time ticket with index timeTicketIndex has same NID as idsNID |
| busStopLineOrder | - order on line of bus stop |
| sectionStart | - order on line of first bus stop currently processed |


|
protectedvirtual |
performs supplemtary checks on time ticket (e.g. number of trips on trip card). In parameter valid will be stored information whether it's valid or not.
| timeTicketIndex | - index of ime ticket to be checked |
| valid | - holds information of time ticket on given index is valid (output parameter) |
CheckSupplementaryConditions


|
protectedvirtual |
Checks if tariff for specified tariffTicketNumber exists and then checks if it's placed on tariff group (if it should be checked)
| tariffTicketNumber | - ID of tariff of time ticket |
| valid | - stores if tariff is valid or not |
CheckTariffValidity


|
virtual |
checks time validity of time ticket on given index. In parameter valid will be stored information whether it's valid or not.
| timeTicketIndex | - index of ime ticket to be checked |
| valid | - holds information of time ticket on given index is valid (output parameter) |
CheckTimeValidity


| EM::TicketIssueLogic::ETimeTicketModule::CheckUrbanTransportOnBusstop | ( | const unsigned char | timeTicketIndex, |
| const long | busStopLineOrder, | ||
| bool & | valid | ||
| ) | const |
Compares urban transport number on card and on busstop (they have to be equal)
CheckUrbanTransportOnBusstop
| timeTicketIndex | - index of time ticket to be checked |
| busStopLineOrder | - order on line of bus stop, that is being checked if time ticket is valid on it |
| valid | - output param. True if time ticket with index timeTicketIndex is valid on given bus stop |


| EIssueLogicDefines::ReturnValues ETimeTicketModule::CheckUTNOrNetworkIDValidity | ( | const unsigned char | timeTicketIndex, |
| const unsigned long | busStopLineOrder, | ||
| const unsigned long | sectionStart, | ||
| bool & | timeTicketValid | ||
| ) | const |
CheckUTNOrNetworkIDValidity - Check urban transport number or network ID validity.
| timeTicketIndex | - index of time ticket to be checked |
| busStopLineOrder | - bus stop to be checked |
| section | start - order on line of first bus stop in section currently processed |
| timeTicketValid | - output param. True if time ticket with index timeTicketIndex is valid on given bus stop |
CheckUTNOrNetworkIDValidity

|
virtual |
Sets data about timeTicket journey to card.
DoTimeTicketJourney

|
virtual |
Searches for valid time ticket on card.
FindAndStoreValidTimeTicket

| EIssueLogicDefines::ReturnValues ETimeTicketModule::GetZonesCoveredByTimeTickets | ( | std::vector< unsigned short > & | zones | ) |
GetZonesCoveredByTimeTickets.
| zones | - output parameter - zones covered by valid time tickets |
GetZonesCoveredByTimeTickets

|
virtual |
Function saves (into memebers) some more frequently used modules.
Init
Reimplemented from EM::TicketIssueLogic::ETicketIssueModule.

|
protectedvirtual |
sets one-way ticket's data holding informations about journey on time ticket
| flagCanDoInterchange | - flag that have value from output of function EInterchangeModule::IsInterchangePossible |
SetOneWayTicketData


1.8.8