摘要
设计模式是对于共性问题的成功的解决方案,采用设计模式可以减少系统设计的复杂度,提高系统开发的效率。针对设计模式的三种类型,详细介绍了State模式、Flyweight模式和Singleton模式在机器人控制系统的应用,说明了设计模式可以使系统具有可扩展性和可维护性,使系统可以更加从容地面对需求变更。
Design patterns are successful solutions for common problems. They can simplify system design and fasten system development. According to the three types of design patterns, the use of State, Flyweight and Singleton patterns in a robot control system are explained, and it is proved that design patterns can make system more extensible and more maintainable, and make requirement changes be easily handled.
出处
《科学技术与工程》
2008年第1期199-202,共4页
Science Technology and Engineering