#include <ETimeTicketModule.h>
|
| | 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.
|
| |
| virtual EIssueLogicDefines::ReturnValues | DoTimeTicketJourney () |
| | Sets data about timeTicket journey to card.
|
| |
| virtual EIssueLogicDefines::ReturnValues | Init () |
| | Function saves (into memebers) some more frequently used modules.
|
| |
| 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.
|
| |
| 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)
|
| |
| EIssueLogicDefines::ReturnValues | CheckNetworkOnBusstop (const unsigned char timeTicketIndex, const unsigned long busStopLineOrder, const unsigned long sectionStart, bool &valid) const |
| | checks if idsNID == cardNID
|
| |
| 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.
|
| |
| EIssueLogicDefines::ReturnValues | GetZonesCoveredByTimeTickets (std::vector< unsigned short > &zones) |
| | GetZonesCoveredByTimeTickets.
|
| |
| | ETicketIssueModule (const std::string &name, EIssueLogicDefines::ModuleFamily moduleFamily) |
| |
| virtual | ~ETicketIssueModule () |
| |
| bool | GetName (std::string &moduleName) |
| | unique module identificator
|
| |
| bool | GetModuleFamily (EIssueLogicDefines::ModuleFamily &moduleFamily) |
| | return by reference module family
|
| |
◆ ETimeTicketModule()
◆ ~ETimeTicketModule()
| ETimeTicketModule::~ETimeTicketModule |
( |
| ) |
|
|
virtual |
◆ CheckHoursTimeTicket()
CheckHoursTimeTicket - Check hoursTimeTicket validity. TEMPORARY FUNCTION.
- Parameters
-
| timeTicketIndex | - index of time ticket to be checked |
| validTimeTicketOnTrip | - output param. True if time ticket with index timeTicketIndex is valid on given bus stop |
- Returns
- Ok - found valid hours time ticket
-
- See also
- EIssueLogicDefines::ReturnValues
CheckHoursTimeTicket
◆ CheckNetworkOnBusstop()
| EM::TicketIssueLogic::ETimeTicketModule::CheckNetworkOnBusstop |
( |
const unsigned char |
timeTicketIndex, |
|
|
const unsigned long |
busStopLineOrder, |
|
|
const unsigned long |
sectionStart, |
|
|
bool & |
valid |
|
) |
| const |
checks if idsNID == cardNID
CheckNetworkOnBusstop
- Parameters
-
| 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 |
- Returns
- Ok - all ok
-
- See also
- EIssueLogicDefines::ReturnValues
◆ CheckSupplementaryConditions()
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.
- Parameters
-
| timeTicketIndex | - index of ime ticket to be checked |
| valid | - holds information of time ticket on given index is valid (output parameter) |
- Returns
- EIssueLogicDefines::Ok when everything's fine. When error occurs, other value from enum will be returned
CheckSupplementaryConditions
◆ CheckTariffValidity()
Checks if tariff for specified tariffTicketNumber exists and then checks if it's placed on tariff group (if it should be checked)
- Parameters
-
| tariffTicketNumber | - ID of tariff of time ticket |
| valid | - stores if tariff is valid or not |
- Returns
- EIssueLogicDefines::Ok when everything's fine
-
EIssueLogicDefines::BadInputData when failed to get tariff group from storage
CheckTariffValidity
◆ CheckTimeValidity()
checks time validity of time ticket on given index. In parameter valid will be stored information whether it's valid or not.
- Parameters
-
| timeTicketIndex | - index of ime ticket to be checked |
| valid | - holds information of time ticket on given index is valid (output parameter) |
- Returns
- EIssueLogicDefines::Ok when everything's fine. When error occurs, other value from enum will be returned
- Note
- it's public because sometimes application needs to know if ticket is time-valid or not (e.g card info)
CheckTimeValidity
◆ CheckUrbanTransportOnBusstop()
| 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
- Parameters
-
| 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 |
- Returns
- Ok - all ok
-
- See also
- EIssueLogicDefines::ReturnValues
◆ CheckUTNOrNetworkIDValidity()
| 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.
- Parameters
-
| 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 |
- Note
- calls CheckNetworkOnBusstop or ETimeTicketModule::CheckUrbanTransportOnBusstop
- Returns
- Ok - all ok
-
- See also
- EIssueLogicDefines::ReturnValues
CheckUTNOrNetworkIDValidity
◆ DoTimeTicketJourney()
| EM::TicketIssueLogic::ETimeTicketModule::DoTimeTicketJourney |
( |
| ) |
|
|
virtual |
Sets data about timeTicket journey to card.
DoTimeTicketJourney
- Returns
- EIssueLogicDefines::Ok when everything's fine. When error occurs, other value from enum will be returned
◆ FindAndStoreValidTimeTickets()
Searches for valid time ticket on card.
- Returns
- EIssueLogicDefines::Ok when everything's fine. When error occurs, other value from enum will be returned
FindAndStoreValidTimeTicket
◆ GetZonesCoveredByTimeTickets()
GetZonesCoveredByTimeTickets.
- Parameters
-
| zones | - output parameter - zones covered by valid time tickets |
- Returns
- Ok - all ok
-
- See also
- EIssueLogicDefines::ReturnValues
GetZonesCoveredByTimeTickets
◆ Init()
Function saves (into memebers) some more frequently used modules.
- Returns
- Ok - when everything's fine
-
ErrorInitModules - failed to get module manager
-
ModuleNotFound - when module manager did not found required module
Init
Reimplemented from EM::TicketIssueLogic::ETicketIssueModule.
◆ SetOneWayTicketData()
sets one-way ticket's data holding informations about journey on time ticket
- Parameters
-
- Returns
- EIssueLogicDefines::Ok when everything's fine. When error occurs, other value from enum will be returned
SetOneWayTicketData
The documentation for this class was generated from the following files: