Chapter 16 Software Reuse.ppt
《Chapter 16 Software Reuse.ppt》由会员分享,可在线阅读,更多相关《Chapter 16 Software Reuse.ppt(52页珍藏版)》请在麦多课文档分享上搜索。
1、Chapter 16 Software Reuse,1,Ian Sommerville, Software Engineering, 9th Edition Pearson Education, Addison-Wesley,CS 425 November 15, 2010,Note: These are a modified version of Ch 16 slides available from the authors site http:/www.cs.st-andrews.ac.uk/ifs/Books/SE9/,Topics covered,The reuse landscape
2、 Application frameworks Software product lines COTS product reuse,Chapter 16 Software reuse,2,Software reuse,In most engineering disciplines, systems are designed by composing existing components that have been used in other systems. Software engineering has been more focused on original development
3、 but it is now recognised that to achieve better software, more quickly and at lower cost, we need a design process that is based on systematic software reuse. There has been a major switch to reuse-based development over the past 10 years.,Reuse-based software engineering,Application system reuse T
4、he whole of an application system may be reused either by incorporating it without change into other systems or by developing application families (common architecture). Component reuse Components of an application from sub-systems to single objects may be reused. Covered in Chapter 17. Object and f
5、unction reuse Software components that implement a single well-defined object or function may be reused.,Benefits of software reuse,5,Chapter 16 Software reuse,Benefits of software reuse,6,Chapter 16 Software reuse,Problems with reuse,7,Chapter 16 Software reuse,Problems with reuse,8,Chapter 16 Soft
6、ware reuse,The reuse landscape,Although reuse is often simply thought of as the reuse of system components, there are many different approaches to reuse that may be used. Reuse is possible at a range of levels from simple functions to complete application systems. The reuse landscape covers the rang
7、e of possible reuse techniques.,The reuse landscape,10,Chapter 16 Software reuse,Approaches that support software reuse,11,Chapter 16 Software reuse,Approaches that support software reuse,12,Chapter 16 Software reuse,Approaches that support software reuse,13,Chapter 16 Software reuse,Reuse planning
8、factors,The development schedule for the software. e.g. to develop quickly: use COTS instead of individual components. The expected software lifetime. Long life system: focus on the maintainability of the system The background, skills and experience of the development team. Focus on areas where the
9、development team has good skills The criticality of the software and its non-functional requirements. e.g. be careful when using COTS for a critical system.,Reuse planning factors,The application domain. e.g. manufacturing and medical information systems The execution platform for the software. e.g.
10、 .NET is specific to Microsoft platforms,Application frameworks,Frameworks are moderately large entities that can be reused. They are somewhere between system and component reuse. Frameworks are a sub-system design made up of a collection of abstract and concrete classes and the interfaces between t
11、hem. The sub-system is implemented by adding components to fill in parts of the design and by instantiating the abstract classes in the framework.,Framework classes,System infrastructure frameworks Support the development of system infrastructures such as communications, user interfaces and compiler
12、s. Middleware integration frameworks Standards and classes that support component communication and information exchange (e.g. Microsoft .NET). Enterprise application frameworks Support the development of specific types of application such as telecommunications or financial systems. Embed applicatio
13、n domain knowledge and supports the development of end-user applications.,Web application frameworks (WAFs),WAFs are a more recent and very important type of framework. Support the construction of dynamic websites as a front-end for web applications. WAFs are now available for all of the commonly us
14、ed web programming languages e.g. Java, Python, Ruby, etc. Interaction model is based on the Model-View-Controller composite pattern.,Chapter 16 Software reuse,18,Model-view controller,Originally proposed in the 1980s. System infrastructure framework for GUI design. Allows for multiple presentations
15、 of an object and separate interactions with these presentations. When the data is modified through one of the presentations, the system model is changed and the controllers associated with each view update their presentation. MVC framework involves the instantiation of a number of patterns (as disc
16、ussed in Chapter 7) (e.g. Observer pattern, Strategy pattern, etc.).,The Model-View-Controller pattern,20,Chapter 16 Software reuse,WAF features,Security WAFs may include classes to help implement user authentication (login) and access. Dynamic web pages Classes are provided to help you define web p
17、age templates and to populate these dynamically from the system database. Database support The framework may provide classes that provide an abstract interface to different databases. Session management Classes to create and manage sessions (a number of interactions with the system by a user) are us
18、ually part of a WAF. User interaction Most web frameworks now provide AJAX support (Holdener, 2008), which allows more interactive web pages to be created.,Chapter 16 Software reuse,21,Extending frameworks,Frameworks are generic and are extended to create a more specific application or sub-system. T
19、hey provide a skeleton architecture for the system. Extending the framework involves Adding concrete classes that inherit operations from abstract classes in the framework; Adding methods that are called in response to events that are recognised by the framework. Problem with frameworks is their com
20、plexity which means that it takes a long time to use them effectively.,Inversion of control in frameworks,23,Chapter 16 Software reuse,Software product lines,Software product lines or application families are applications with generic functionality that can be adapted and configured for use in a spe
21、cific context. A software product line is a set of applications with a common architecture and shared components, with each application specialized to reflect different requirements. Adaptation may involve: Component and system configuration; Adding new components to the system; Selecting from a lib
22、rary of existing components; Modifying components to meet new requirements.,Application frameworks and product lines,Application frameworks rely on object-oriented features such as polymorphism to implement extensions. Product lines need not be object-oriented (e.g. embedded software for a mobile ph
23、one) Application frameworks focus on providing technical rather than domain-specific support. Product lines embed domain and platform information. Product lines often control applications for equipment. Software product lines are made up of a family of applications, usually owned by the same organiz
24、ation.,Chapter 16 Software reuse,25,Product line specialisation,Platform specialization Different versions of the application are developed for different platforms. Environment specialization Different versions of the application are created to handle different operating environments e.g. different
25、types of communication equipment. Functional specialization Different versions of the application are created for customers with different requirements. Process specialization Different versions of the application are created to support different business processes.,Product line architectures,Archit
- 1.请仔细阅读文档,确保文档完整性,对于不预览、不比对内容而直接下载带来的问题本站不予受理。
- 2.下载的文档,不会出现我们的网址水印。
- 3、该文档所得收入(下载+内容+预览)归上传者、原创作者;如果您是本文档原作者,请点此认领!既往收益都归您。
下载文档到电脑,查找使用更方便
2000 积分 0人已下载
下载 | 加入VIP,交流精品资源 |
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- CHAPTER16SOFTWAREREUSEPPT
