Domain-Driven-Design Based Design and Realization of the Software for Booking Office Machine in Rail Transit
- Author
- WangHui
- Advisor
- RaoRuoZuo , XuFeng
- School
- Shanghai Jiaotong University
- Major
- Software Engineering
- Classification
- TP311.52 Software Development
- Degree
- Master's thesis
- Year
- 2013
- Downloads
- 48
- Citations
- 0
Abstract
Automated Fare Collection (AFC) system plays a very important role in the area of railtransit of an international metropolis. It serves to automate the whole process of ticketing,validating, billing, fare collecting and statistics. It consists of four ties as central clearinghouse, station computers, terminal devices and fare media. The terminal devices of AFCinclude entry/exit fare gate, ticket vending machine, booking office machine, card vendingmachine, ticket handling machine, etc. The Booking Office Machine (BOM) is an essentialpart of AFC system. It is a complete set of station ticketing process system that providesticket vending, ticket analyze, card recharge, card renew, inquiry, updating, excess farecharging, operation display, etc. The BOM of Shanghai rail transit has been domestictransformed for about ten years. The business module and technique framework of itssoftware architecture are highly tight coupled and the design of its modules is base onprocedure-oriented, which turns out to be a barrier for the further development of its software.With the development of the business of Shanghai metro, mutiple new fare media serviceshave been released. The business rule becomes more complicated and is changed frequently.Apart from that, the market of AFC also keeps extending from metro to other areas such asintercity railway. As a result, how to design a loose coupling structure and separate thedifferent concerns of domain and technique in development of BOM in order to provideenough extensiblities and maintensiblilty has become a pending problem.Against the problems listed above, this article takes a real project as its background todesign and realize a Model-Driven Design based proto type of BOM by leveragingDomain-Driven Design. The test result shows that this proto type is feasible and effective.Compared with other similar software, the work of this article has a few differentcharacteristics as belowed:1) Combined the use of domain model with layed architecture design, it isolates thedomain-related modules into a domain layer which gets rid of the dependencies on technical framework. This meets the requirement that the domain models need to be reused in differentapplication environments.2) The communication module has been designed with a custom protocol serializationframework following the standard of industry, which makes the universalitis significantlyincreased.3) The design and realization of the business modules meets the requirement ofmanagement of massive ticketing business rules, which can subscribe and perform processrules, make ticketing process rules independent to each other and provide rules with thecharacteristic of plugin corresponding to the kind of the ticket being dealt.4) By using Behavior-Driven-Development methodology and supported tools, itaccommodates the software specification for development through the features defined innature language in project and also can be transformed into User Acceptance Test (UAT) tovalidate the behaviors of software are as expected.The BOM designed in this article is under validation in a test enviroment. And theprevious version of it is running normally with stable performance in serveral Shanghai metrolines till now.
Table of contents
Summary 3-4
ABSTRACT 4-9
1 Introduction 9-14
1.1 subject background 9-10 <br / > 1.2 domestic and foreign research status Status 1.2.1 development of China's urban rail transit 10-11
development status 10
1.2.2 rail transit AFC system 10 - Status 1.2.3 Semi-automatic ticket machines study 11
11
1.3 Research objectives and content 11-12
1.4 thesis structure 12-13 <br / > 1.5 Summary 13-14
2 domain-driven design and related technical overview nbsp semi-automatic ticketing machines ; 14-20
theories 2.1 domain driven design 14 -17
2.1.1 domain Driven design Overview 14-15
2.1.2 domain model 15
2.1.3 layered architecture 15 - 16
2.1.4 model building blocks theory 16-17
2.2 behavior -driven development 17-18
2.2.1 behavior Driven development Overview 17
2.2.2 support for behavior-driven development tool 17-18
2.3 NET Framework technology . . 18-19
2.3.1 NET Framework summary 18
2.3.2 Entity Framework framework 18
2.3.3 Unity dependency injection tool 18-19
2.4 Summary 19 -20
3 semi-automatic ticket machines in the field analysis and modeling 20-35
3.1 domain analysis 20-22
3.1.1 AFC system Overview 20-21
3.1.2 BOM features Overview 21-22
3.2 domain model 22-26
3.2.1 BOM domain object model 22 -26
3.2.2 BOM / EFO model and business rules 26
3.3 use case model 26-34
3.3.1 system overview of the objectives and functions 27-28
3.3.2 core business use case describes 28-34
3.4 Summary 34-35
4 semi-automatic ticketing machine system architecture and design 35-49
4.1 architecture 35-36
4.1.1 infrastructure layer 36
4.1.2 domain layer 36
4.1.3 application layer 36
4.1.4 presentation Layer 36
4.2 module design 36-48
4.2.1 ticket modeling domain objects modeling 37-39
4.2.2 parameter field object build 39-42
4.2.3 communication layer DTO 's 42 - 44
4.2.4 modeling analysis Services module 44-45
modeling 4.2.5 operating service module 45-48
4.3 Summary 48-49
achieve 5 semi-automatic vending machines and verification system 49-87
5.1 persistence layer to achieve 49-53
5.1.1 persistence domain layer independent 49-50
5.1.2 build lasting use storage layer achieve 50-53
5.2 communication module 53-61
5.2.1 characteristics of packet -based protocol serialization achieve 53-55
5.2.2 generic protocol framework 55-57
5.2.3 DTO to domain object mapping 57-61
5.3 business module implementations 61-66
5.3.1 ticket analysis module 61-63
5.3.2 analysis policy Object achieve 63-66
5.4 ticket operations module 66-73
5.4.1 -way ticket and transportation card update 66-68 <br / > 5.4.2 register and transaction data 68-73
5.5 dependency injection mechanism to achieve the 73-78
5.5.1 using Unity dependency injection 73 -75
5.5.2 was tested using different dependency injection 75-77
5.5.3 build configuration 77-78
5.6 unit tests to achieve 78-80
5.6.1 use Moq achieve communication module unit testing 78-79
5.6.2 build Stub module replacement durable layer 79-80 <br / > 5.7 to achieve user acceptance testing 80-84
5.7.1 features (Feature) definition 81-82
5.7.2 step definition (Step Definition) implementations 82-84
5.8 test results and application 84-86
5.9 Summary 86-87
6 conclusions and Outlook 87-89
References published during 89-91
pursue a degree academic catalog 91-93
accessories 93-94
Related dissertations
- Design and implementation of the system of brake machine control system based on QT
- Research and design of workflow engine for office automation
- Study on Frequency Offset Estimation of In-train Repeaters for High-speed Railway
- The Clinical Study on the Relationship between the Predictors of Ovarian Reserve and Treatment Outcome of in Vitro Fertilization and Embryo Transfer
- The Design of Pilot Scheduling System Driven by Domain Model
- Bus Rapid Transit Appearance Design Research
- Design and development of Nanjing subway automatic ticket vendor payment and change subsystem
- Research on Schedule Management of Ticket Vending Machine Renovation Project for G Metro
- Modeling and Simulation of Production Line under Multi-view
- Fuzzy Modeling and Control for a Class of Nonlinear Systems
- Application of Domain Driven Design in ERP system
- Design and Implementation of Ticket Vending Machine
- Hebei Vocational College of Foreign Languages Teaching and Administrative Staff Information Management System
- Design and Test of the Ticket Process Unit of Tianjin Subway Line2AFC System
- The Design and Implementation of Operation Management Subsystem in Automatic Fare Collection System
- Design and implementation of monitoring system of subway terminal equipment
- Optimization design of a X band radar receiver key components
- Study on Critical Techniques of Fractional-N PLL in Application of UHF RFID Reader
- Research on Transmission Characteristics and Parameter Matching of the Face Conveyor
- The Mesozoic Tectonic-magmatic Evolution Process and Gold Metallogenesis in Chifeng-chaoyang Region, Northern North China Craton