AppCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Protected Member Functions | List of all members
EM::TicketIssueLogic::EOneWayTicketModule Class Reference

#include <EOneWayTicketModule.h>

Inheritance diagram for EM::TicketIssueLogic::EOneWayTicketModule:
Inheritance graph
[legend]
Collaboration diagram for EM::TicketIssueLogic::EOneWayTicketModule:
Collaboration graph
[legend]

Public Member Functions

 EOneWayTicketModule (ETicketIssueLogic *ticketIssueLogic, ETicketIssueLogicDataStorage *dataStorage, std::string moduleName=E_ONE_WAY_TICKET_MODULE_NAME)
 
virtual ~EOneWayTicketModule ()
 
virtual
EIssueLogicDefines::ReturnValues 
Init ()
 Init module data. More...
 
virtual
EIssueLogicDefines::ReturnValues 
DoNewOneWayJourney (unsigned char ticketIndex)
 
virtual
EIssueLogicDefines::ReturnValues 
ProlongTicketsTimeValidity (EIssueLogicDefines::ProlongTicketsTimeValidity prolongTicketTimeValidity)
 
virtual
EIssueLogicDefines::ReturnValues 
SetTicketCommonData (unsigned char ticketIndex)
 Set common card one way ticket flags on card (Line-Trip information, Bus stop information, and many more :) ) More...
 
virtual
EIssueLogicDefines::ReturnValues 
SetTicketPriceListRow (unsigned char ticketIndex)
 
virtual
EIssueLogicDefines::ReturnValues 
SetTicketZoneData (unsigned char ticketIndex)
 Set information about zones where the ticket is valid. More...
 
virtual
EIssueLogicDefines::ReturnValues 
IsOneWayTicketNetworkWide (unsigned char ticketIndex, bool &networkWide)
 IsNetworkWide check if ticket is network wide, if is function set networkWide to true. More...
 
virtual
EIssueLogicDefines::ReturnValues 
CheckSameAreaDataAsOwner (bool &sameData)
 
EIssueLogicDefines::ReturnValues IsFirstFellowTravellerAfterTimeTicketJourney (bool &firstFellowTravellerAfterTimeTicketJourney, bool &timeTicketWritableOnCard)
 
virtual
EIssueLogicDefines::ReturnValues 
SetOneWayTicketTypeAccordingToPriceList ()
 SetOneWayTicketTypeAccordingToPriceList. More...
 
virtual
EIssueLogicDefines::ReturnValues 
GetOneWayTicketTypeAccordingToPriceList (EM::CardFacade::ECardFacadeDefines::OneWayTicketType &oneWayTicketType)
 GetOneWayTicketTypeAccordingToPriceList. More...
 
EIssueLogicDefines::ReturnValues IsOWTTimeValidForJourney (const long checkInBusStopTripOrder, const long checkOutBusStopTripOrder, const unsigned long validityEndTimestamp, bool &OWTIsValid)
 
- 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 
SetTicketData (unsigned char ticketIndex, bool firstFellowTravellerAfterTTJourney)
 

Constructor & Destructor Documentation

INTERNAL EOneWayTicketModule::EOneWayTicketModule ( ETicketIssueLogic ticketIssueLogic,
ETicketIssueLogicDataStorage dataStorage,
std::string  moduleName = E_ONE_WAY_TICKET_MODULE_NAME 
)

CONSTRUCTOR

EOneWayTicketModule::~EOneWayTicketModule ( )
virtual

DESTRUCTOR

Member Function Documentation

virtual EIssueLogicDefines::ReturnValues EM::TicketIssueLogic::EOneWayTicketModule::CheckSameAreaDataAsOwner ( bool &  sameData)
virtual

Here is the caller graph for this function:

EIssueLogicDefines::ReturnValues EOneWayTicketModule::DoNewOneWayJourney ( unsigned char  ticketIndex)
virtual

DoNewOneWayJourney

Here is the call graph for this function:

virtual EIssueLogicDefines::ReturnValues EM::TicketIssueLogic::EOneWayTicketModule::GetOneWayTicketTypeAccordingToPriceList ( EM::CardFacade::ECardFacadeDefines::OneWayTicketType oneWayTicketType)
virtual

GetOneWayTicketTypeAccordingToPriceList.

Parameters
oneWayTicketType- output parameter
See also
EIssueLogicDefines::ReturnValues
EIssueLogicDefines::ReturnValues EOneWayTicketModule::Init ( void  )
virtual

Init module data.

Returns
OK - all ok
See also
EIssueLogicDefines::ReturnValues

Init

Reimplemented from EM::TicketIssueLogic::ETicketIssueModule.

Here is the call graph for this function:

EIssueLogicDefines::ReturnValues EM::TicketIssueLogic::EOneWayTicketModule::IsFirstFellowTravellerAfterTimeTicketJourney ( bool &  firstFellowTravellerAfterTimeTicketJourney,
bool &  timeTicketWritableOnCard 
)

Here is the caller graph for this function:

EIssueLogicDefines::ReturnValues EOneWayTicketModule::IsOneWayTicketNetworkWide ( unsigned char  ticketIndex,
bool &  networkWide 
)
virtual

IsNetworkWide check if ticket is network wide, if is function set networkWide to true.

Returns
OK - everythng's fine
See also
EIssueLogicDefines::ReturnValues

Here is the call graph for this function:

EIssueLogicDefines::ReturnValues EM::TicketIssueLogic::EOneWayTicketModule::IsOWTTimeValidForJourney ( const long  checkInBusStopTripOrder,
const long  checkOutBusStopTripOrder,
const unsigned long  validityEndTimestamp,
bool &  OWTIsValid 
)
EIssueLogicDefines::ReturnValues EOneWayTicketModule::ProlongTicketsTimeValidity ( EIssueLogicDefines::ProlongTicketsTimeValidity  prolongTicketTimeValidity)
virtual

ProlongTicketsTimeValidity

virtual EIssueLogicDefines::ReturnValues EM::TicketIssueLogic::EOneWayTicketModule::SetOneWayTicketTypeAccordingToPriceList ( )
virtual

SetOneWayTicketTypeAccordingToPriceList.

See also
EIssueLogicDefines::ReturnValues

Here is the caller graph for this function:

EIssueLogicDefines::ReturnValues EOneWayTicketModule::SetTicketCommonData ( unsigned char  ticketIndex)
virtual

Set common card one way ticket flags on card (Line-Trip information, Bus stop information, and many more :) )

Returns
Ok - all ok ErrorIssueTicket - error get something from data storage or readed data collection

SetTicketCommonData

Here is the call graph for this function:

Here is the caller graph for this function:

EIssueLogicDefines::ReturnValues EOneWayTicketModule::SetTicketData ( unsigned char  ticketIndex,
bool  firstFellowTravellerAfterTTJourney 
)
protectedvirtual

SetTicketData

Here is the call graph for this function:

Here is the caller graph for this function:

EIssueLogicDefines::ReturnValues EOneWayTicketModule::SetTicketPriceListRow ( unsigned char  ticketIndex)
virtual
Parameters
ticketIndex- index of ticket in OWT collection where information about price list row will be stored
Returns
Ok - all ok BadUserInputData - error get something from data storage or issued ticket

SetTicketPriceListRow

Here is the call graph for this function:

Here is the caller graph for this function:

EIssueLogicDefines::ReturnValues EOneWayTicketModule::SetTicketZoneData ( unsigned char  ticketIndex)
virtual

Set information about zones where the ticket is valid.

Note
modifies only first ticket (when ticketIndex is not equal to 0, returns OK immediately)
Returns
OK - everythng's fine BadInputData - failed to load zone

SetTicketZoneData

Here is the call graph for this function:

Here is the caller graph for this function:


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