Summary of the invention
The technical matters that (one) will solve
The technical matters that the present invention will solve is: how a kind of automatic ticket-selling system that the seat management is arranged is provided, to overcome the problem that existing automatic ticket-selling system can't carry out the seat management.
(2) technical scheme
For solving the problems of the technologies described above, the present invention provides a kind of automatic ticket-selling system that the seat management is arranged, and it comprises: TRS interface unit, Application service element and TVM unit;
Said TRS interface unit connects TRS system and said Application service element, is used to obtain the seat relevant information, and said seat relevant information is sent to said Application service element;
Said Application service element also connects said TVM unit, is used for carrying out information interaction with said TRS interface unit, TVM unit, to realize the professional management of automatic ticketing;
Said TVM unit is used to receive user instruction, and realizes the automatic ticketing function according to said user instruction.
Preferably, said system also comprises: the payment platform unit; Said payment platform unit connects banking system and said Application service element, is used to realize the bank card payment function of said automatic ticket-selling system.
Preferably, said TRS interface unit further comprises: the secondary module of picking up the car, time surplus ticket module of picking up the car, the module of getting tickets, cancellation ticket module, invalidated ticket module, the face mould piece of getting tickets, remember counterfoil module and get counterfoil module;
The said secondary module of picking up the car, be used for to said TRS system dispatch a car the date, send out the station name of station and the name of station information of arriving at a station, and receive train number code, driving time, arrival time, category of trains and the name of station information that starts that said TRS system returns;
The said time surplus ticket module of picking up the car is used at the said secondary module of picking up the car obtaining admission fee, surplus ticket again and starting fate information from the information basis that said TRS system obtains;
The said module of getting tickets; Be used for to said TRS system send by bus date, train number code, seat not, the shop not, purposes, send out station name of station, arrive at a station name of station and the other information of ticket, and receive train number, supply of tickets ground, coach number, seat number, the other sign indicating number of seat, admission fee, mileage and the temporal information of getting tickets that said TRS system returns;
Said cancellation ticket module is used for sending train number, supply of tickets ground, coach number, seat number, the other sign indicating number of seat, admission fee, mileage, purposes sign indicating number and the temporal information of getting tickets to said TRS system, and receives the capable result of cancellation ticket stubs that said TRS system returns;
Said invalidated ticket module is used for sending invalidated ticket draft bank, current draft bank, counterfoil date and invalidated ticket cause information to said TRS system, and receives the result that invalidated ticket that said TRS system returns is carried out;
The said face mould piece of getting tickets is used for obtaining the ticket information that will print ticket from said TRS system;
Said note counterfoil module is used for ticketing counterfoil information is sent to said TRS system;
The said counterfoil module of getting is used for obtaining said ticketing counterfoil information from said TRS system.
Preferably, said Application service element connects a plurality of said TVM unit, is used for said seat relevant information is distributed to said TVM unit.
Preferably, said system also comprises: the application service database; Said application service database connects said Application service element, is used for memory system data, TVM machine attribute data, ticketing data and gathering data.
Preferably, said system also comprises: the application service administrative unit; Said application service administrative unit connects said Application service element, is used to realize personnel's rights management, the management of TVM machine control command, passenger ticket business operation order management, basic data maintenance, terminal management, cash box management and device failure alert prompt facility.
Preferably, said TVM unit further comprises: MBP module, GUI module and HC module;
Said MBP module connects said Application service element, GUI module and HC module, is used to realize the data interaction between said Application service element, GUI module and the HC module;
Said GUI module is used to receive user instruction, and said user instruction is sent to said MBP module;
Said HC module is used for the hardware unit realization automatic ticketing function according to the control information driving TVM machine of said MBP module.
Preferably, said system also comprises the Backer module, and said Backer module connects said MBP module, is used for said TVM unit is safeguarded.
Preferably, said GUI module further comprises: send out station chooser module, the chooser module of arriving at a station, ride date submodule, train number chooser module, the other chooser module of seat and number chooser module;
Said station chooser module is used for supplying the user to select to send out the station with the wiring diagram mode;
The said chooser module of arriving at a station is used for supplying the user to select to arrive at a station with the wiring diagram mode;
Said date submodule by bus is used for supplying the user to select the date by bus with the calendar mode;
Said train number chooser module is used for supplying the user to select train number information with train number tabulation mode;
The other chooser module of said seat is used to supply the user to select seat other;
Said number chooser module is used to supply the user in limit is purchased the number scope, to select the booking number.
Preferably, said TVM unit adopts the state machine design pattern, and the state of said TVM unit comprises: ballot paper state, the state of paying in cash, bank card pay status, system ticket state, small change state, and send the ticket and change state.
(3) beneficial effect
The automatic ticket-selling system that the seat management is arranged of the present invention; Through being set, said TRS interface unit obtains the seat relevant information from existing TRS system; And be shown to the user through the GUI module of said TVM unit; Thereby overcome the problem that existing automatic ticket-selling system all can't carry out the seat management, expanded the function of existing automatic ticket-booking system, met the demand of the railway transport of passengers of China; Simultaneously, through the payment platform unit is set, make system of the present invention support the bank card payment function; Through adopting state machine design pattern and parallelization tupe, improved the processing speed of automatic ticket-selling system, shortened user's booking time.
Embodiment
Below in conjunction with accompanying drawing and embodiment, specific embodiments of the invention describes in further detail.Following examples are used to explain the present invention, but are not used for limiting scope of the present invention.
Fig. 1 is the described modular structure synoptic diagram that the automatic ticket-selling system of seat management is arranged of the embodiment of the invention.As shown in Figure 1, said system comprises TRS interface unit 100, payment platform unit 200, application service database 300, Application service element 400, application service administrative unit 500, TVM unit 600 and monitoring unit 700.
Said TRS interface unit 100 connects TRS system and said Application service element 400.Wherein said TRS system is used to produce the seat relevant information, and said seat relevant information comprises train number information and seat information at least.Said TRS interface unit 100 obtains said seat relevant information from said TRS system, and said seat relevant information is sent to said Application service element 400.
Said TRS interface unit 100 further comprises: the secondary module of picking up the car, time surplus ticket module of picking up the car, the module of getting tickets, cancellation ticket module, invalidated ticket module, the face mould piece of getting tickets, remember counterfoil module and get counterfoil module.
The said secondary module of picking up the car, be used for to said TRS system dispatch a car the date, send out the station name of station and the name of station information of arriving at a station, and receive train number code, driving time, arrival time, category of trains and the name of station information that starts that said TRS system returns.
The said time surplus ticket module of picking up the car is used at the said secondary module of picking up the car obtaining admission fee, surplus ticket again and starting fate information from the information basis that said TRS system obtains.
The said module of getting tickets; Be used for to said TRS system send by bus date, train number code, seat not, the shop not, purposes, send out station name of station, arrive at a station name of station and the other information of ticket, and receive train number, supply of tickets ground, coach number, seat number, the other sign indicating number of seat, admission fee, mileage and the temporal information of getting tickets that said TRS system returns.
Said cancellation ticket module is used for sending train number, supply of tickets ground, coach number, seat number, the other sign indicating number of seat, admission fee, mileage, purposes sign indicating number and the temporal information of getting tickets to said TRS system, and receives the capable result of cancellation ticket stubs that said TRS system returns.
Said invalidated ticket module is used for sending invalidated ticket draft bank, current draft bank, counterfoil date and invalidated ticket cause information to said TRS system, and receives the result that invalidated ticket that said TRS system returns is carried out.
The said face mould piece of getting tickets is used for obtaining the ticket information that will print ticket from said TRS system.
Said note counterfoil module is used for ticketing counterfoil information is sent to said TRS system, uses during in order to the checkout reconciliation.
The said counterfoil module of getting is used for obtaining said ticketing counterfoil information from said TRS system in checkout during reconciliation.
Said payment platform unit 200 connects banking system and said Application service element 400, is used to realize the bank card payment function of said automatic ticket-selling system.
Said application service database 300 connects said Application service element 400, is used for memory system data, TVM machine attribute data, ticketing data and gathering data.
Said Application service element 400 is used for carrying out information interaction with said TRS interface unit 100, TVM unit 600, to realize the professional management of automatic ticketing.Said TVM unit 600 operated by rotary motion may be provided with a plurality of TVM machines at a station on the TVM machine.Therefore; Said Application service element 400 generally can connect a plurality of said TVM unit 600; The demand data of each TVM unit 600 is different; Said Application service element 400 according to the demand data of each TVM unit 600, is given corresponding TVM unit 600 with corresponding data distribution after obtaining said seat relevant information from said TRS interface unit 100.
Said application service administrative unit 500 connects said Application service element 400, is used to realize personnel's rights management, the management of TVM machine control command, passenger ticket business operation order management, basic data maintenance, terminal management, cash box management and device failure alert prompt facility.Wherein, personnel's rights management is accomplished the role of bookkeeping and the definition and the distribution of authority; TVM machine control command management, accomplish to the TVM machine out of service, recover ticketing, remote control operation such as restart; Passenger ticket business operation order management, it is professional to accomplish passenger tickets such as the manual class of opening, the manual class of moving back, draft bank verification, ticket calcellation, blank vote processing; Basic data maintenance is accomplished attribute definition and parameter modification to the TVM machine; The running state monitoring to the TVM machine is accomplished in terminal management; The cash box management then realizes cash quantity in the cash box of every TVM machine is monitored in real time, is convenient to the cash operating position that the maintainer understands the TVM machine.
Said TVM unit 600 is used to receive user instruction, and realizes the automatic ticketing function according to said user instruction.
Fig. 2 is the modular structure synoptic diagram of the described TVM of embodiment of the invention unit.As shown in Figure 2, said TVM unit further comprises: Backer module 601, MBP module 602, GUI module 603, HC module 604 and HAL module 605.
Said Backer module 601 connects said MBP module 602, is used for said TVM unit 600 is safeguarded.
Said MBP module 602 connects said Application service element 400, GUI module 603 and HC module 604, is used to realize the data interaction between said Application service element 400, GUI module 603 and the HC module 604.
Said GUI module 603 is used to receive user instruction, and said user instruction is sent to said MBP module 602.Said GUI module further comprises: send out station chooser module, the chooser module of arriving at a station, ride date submodule, train number chooser module, the other chooser module of seat and number chooser module.Said station chooser module provides the wiring diagram of an abstract, selects to send out the station for the user.The said chooser module of arriving at a station also provides the wiring diagram of an abstract, selects to arrive at a station for the user.Said date submodule by bus is used for supplying the user to select the date by bus with the calendar mode.Said train number chooser module is used for supplying the user to select train number information with train number tabulation mode, and the information in the said train number tabulation comprises: train number sign indicating number, the time of departure, the other admission fee of seat, the ticket etc. of whether having a surplus.The other chooser module of said seat is used to supply the user to select seat other, and said seat does not comprise at least: unanimous vote and child's ticket.Said number chooser module provides intuitively " increase " and " minimizing " button, supplies the user in limit is purchased the number scope, to select the booking number.
Said HC module 604 is used for the control information according to said MBP module 602, and through said HAL module 605, the corresponding hardware unit that drives the TVM machine is realized the automatic ticketing function.
Said HAL module 605 is used to realize the driving encapsulation to each hardware unit of TVM machine.In said TVM unit 600, comprise a plurality of said HAL modules 605, each said HAL module 605 is used to drive a hardware unit separately, such as ticket making device, change-giving device; Said HC module 604 can be called a plurality of said HAL modules 605 simultaneously, works simultaneously to drive a plurality of hardware units simultaneously.
Said TVM unit 600 adopts the state machine design pattern, and the state of said TVM unit 600 comprises: ballot paper state, the state of paying in cash, bank card pay status, system ticket state, small change state, and send the ticket and change state.Fig. 3 is the state redirect synoptic diagram of the said TVM of embodiment of the invention unit.As shown in Figure 3; The embodiment of the invention with said TVM unit 600 and user's reciprocal process abstract be several committed steps: select ticket, paying ticket fee (optional cash or bank card payment, and changeable), wait for that printing ticket, wait small change, user takes ticket and change away.After the user accomplished booking operation, said TVM unit 600 can automatically switch to the main interface that supplies user's ballot paper.Through adopting the state machine design pattern, make the dirigibility of business such as ballot paper, paying ticket fee improve greatly; Simultaneously, for a plurality of committed step parallelizations processing technical foundation is provided.
The device initialize of the said TVM of embodiment of the invention unit; Small change and system ticket; Send ticket and business such as sending change all to adopt the parallelization tupe.Fig. 4 is the said TVM of an embodiment of the invention unit parallelization tupe synoptic diagram.As shown in Figure 4, at first, said MBP module 602 is sent system ticket, small change order to said HC module 604; After said HC module 604 received orders, to corresponding HAL module of ticket making device (being HAL_ system ticket) and corresponding the 2nd HAL module (being the HAL_ small change) of change-giving device, transmission began to make ticket and the order of beginning small change respectively; After two HAL modules receive that beginning to make ticket orders with the beginning small change, just drive two device beginning concurrent workings.Then, after a period of time of being separated by, said MBP module 602 is sent to said HC module 604 and is got system ticket, the order of small change command execution results; After said HC module 604 is received the said system of getting ticket, small change command execution results order, send to HAL_ system ticket respectively and get system ticket result command, send to the HAL_ small change and get the small change result command; HAL_ makes ticket and the HAL_ small change will be made the ticket result and the small change result feeds back to said HC module 604, sends to said MBP module 602 by said HC module 604 unifications again.The efficient of so just hardware being carried out has improved more than at least one times, has reduced user's booking time.
Said monitoring unit 700 connects said Application service element 400 and TVM unit 600, is used for the running status of said Application service element 400 and TVM unit 600 is monitored.
The said automatic ticket-selling system that the seat management is arranged of the embodiment of the invention; Through being set, said TRS interface unit obtains the seat relevant information from existing TRS system; And be shown to the user through the GUI module of said TVM unit; Thereby overcome the problem that existing automatic ticket-selling system all can't carry out the seat management, expanded the function of existing automatic ticket-booking system, met the demand of the railway transport of passengers of China; Simultaneously, through the payment platform unit is set, make system of the present invention support the bank card payment function; Through adopting state machine design pattern and parallelization tupe, improved the processing speed of automatic ticket-selling system, shortened user's booking time.
Above embodiment only is used to explain the present invention; And be not limitation of the present invention; The those of ordinary skill in relevant technologies field under the situation that does not break away from the spirit and scope of the present invention, can also be made various variations and modification; Therefore all technical schemes that are equal to also belong to category of the present invention, and scope of patent protection of the present invention should be defined by the claims.