摘要
首先讨论了MVC设计模式的特点,对Observer模式进行适当扩展,抽象出用于显示逻辑的表现层,增强了代码的可重用性,降低了耦合度。然后利用此扩展的Observer模式完成防撞预警系统的架构设计。
This paper discusses the features of MVC model firstly.Based on the discussion,the Observer model is expanded by adding a presentation layer for the covenient of logic presentation.Hence,the code reusability is increased,and at the same time,the coupling of the models is decreased.Finally,this paper design the architecture of collision-proof warning system by using the expanded Observer model.
出处
《计算机与现代化》
2012年第5期204-206,共3页
Computer and Modernization