摘要
地铁自动售票机(TVM)的功能日益丰富,对软件的要求亦日趋完善。为了实现较强的复用性,可利用分层的体系结构进行总体设计,使得基础业务层与设备层之间进行解耦,然后再将设计模式大量运用到其中,使得软件具有弹性来应对软件今后发生的变化,以节省维护资金。在运用此方法完成多个项目后发现在使用设计模式后,对软件的改动只是改动相应更换的硬件部分的代码,无须对不同的项目写不同的代码。
This paper shows the big change of Ticket Vending Machine ( TVM)' s functions, which requires the TVM software should be perfect. To bring it more adjustable, the hierarchical architecture was used to general design, decoupling the layer of service from the layer of equipment. This paper adopted a lot of design patterns in the TVM software to make it more flexible and reduce the maintenance expense. After completing lots of projects by using this method, when the hardware changs, the software need not afresh all of the code, it just needs afresh relevant code.
出处
《计算机应用》
CSCD
北大核心
2012年第A02期116-118,共3页
journal of Computer Applications
关键词
分层体系
设计模式
自动售票机
hierarchical architecture
design pattern
Ticket Vending Machine (TVM)