Abstract:
Based on the detailed analysis of the characteristics of urban rail transit AFC system and equipments, this article designed and implemented a general software architecture that was suitable for automatic fare collection(AFC) machine, semi-automatic ticket vending machine and query machine. The software adopted multi-process mode, the inter-process communication was implemented through socket. The main business process architecture was established based the PureMVC framework, the flexible control of business process between synchronization and asynchronous was achieved by using the singleton design pattern, signal, lock, etc. The architecture is with the characteristics of strong expansibility, maintainability and low coupling, has been verified and applied in the practical projects.