摘要
在开发一款酒店管理系统的过程中,需要开发一款房态图管理系统。对于一个房间初始化一个对象的方式,在初始化显示界面的时候,速度相当慢,每次启动都超过了10秒的初始化时间,影响了用户的体验度。因此提出了一种新的方式,即采用设计模式里面的轻量级模式来实现房态图,然后采用C#语言实现该方案,并进行测试。测试结果满足了速度要求,初始化速度小于3毫秒。
The room state figure management system is needed to develop in the development of a hotel management system. One way is to initialize a room with an object. But the speed is slow, which is over 10 seconds. It impacts the users' experience degrees. So we propose a new way of using the lightweight model to complete the room state figure, and then use C # to realize and test. The result shows that the initialization speed is less than 3 milliseconds.
出处
《电脑与电信》
2012年第7期60-61,68,共3页
Computer & Telecommunication
关键词
轻量级模式
设计模式
房态图
三层架构
flyweight pattern: design patterns
room state figure, three layer structure