Chapter 13 Design Concepts and Principles.ppt
《Chapter 13 Design Concepts and Principles.ppt》由会员分享,可在线阅读,更多相关《Chapter 13 Design Concepts and Principles.ppt(86页珍藏版)》请在麦多课文档分享上搜索。
1、Chapter 13 Design Concepts and Principles,Software Design,DESIGN is an overloaded term.= entire development of a system. = design of architecture (host, c/s, client) = design of software components and their collaboration = design of individual components (classes. = design of an individual structur
2、e of a attribute = design of an individual method or function,Software architecture,This design process is for identifying the sub-systems making up a system and the framework for sub-system control and communication is architectural designThe output of this design process is a description of the so
3、ftware architecture,Architectural design,An early stage of the entire system design process. Represents the link between specification by the user and and the design processes for each component. Often carried out in parallel with some specification activities It involves identifying major system co
4、mponents and their communications,Architectural design process,System structuring The system is decomposed into several principal sub-systems and communications between these sub-systems are identified Control modelling A model of the control relationships between the different parts of the system i
5、s established Modular decomposition The identified sub-systems are decomposed into modules,Architectural models,As related to overloaded definition of DESIGNDifferent architectural models may be produced during the design process Each model presents different perspectives on the architecture Static
6、structural model that shows the major system components Dynamic process model that shows the process structure of the system Interface model that defines sub-system interfaces Relationships model such as a data-flow model,Architecture attributes,Performance Localize operations to minimise sub-system
7、 communication Security Use a layered architecture with critical assets in inner layers Safety Isolate safety-critical components Availability Include redundant components in the architecture Maintainability Use fine-grain, self-contained components,System structuring,Concerned with decomposing the
8、system into interacting sub-systems The architectural design is normally expressed as a block diagram presenting an overview of the system structure More specific models showing how sub-systems share data, are distributed and interface with each other may also be developed,The repository (mainframe)
9、 model,Sub-systems must exchange data. This may be done in two ways: Shared data is held in a central database or data repository and may be accessed by all sub-systems on the same hardware Each sub-system maintains its own database and passes data explicitly to other sub-systems When large amounts
10、of data are to be shared, the repository model of sharing is most commonly used,Repository model characteristics,Advantages Efficient way to share large amounts of data Sub-systems need not be concerned with how data is produced Centralised management e.g. backup, security, etc. Sharing model is pub
11、lished as the repository schema Disadvantages Sub-systems must agree on a repository data model. Inevitably a compromise Data evolution is difficult and expensive No scope for specific management policies Difficult to distribute efficiently,Client-server architecture,Distributed system model which s
12、hows how data and processing is distributed across a range of components Set of stand-alone servers which provide specific services such as printing, data management, etc. Set of clients which call on these services Network which allows clients to access servers,Client-server characteristics,Advanta
13、ges Distribution of data is straightforward Makes effective use of networked systems. May require cheaper hardware Easy to add new servers or upgrade existing servers Disadvantages No shared data model so sub-systems use different data organisation. data interchange may be inefficient Redundant mana
14、gement in each server No central register of names and services - may be hard to determine servers and services are available,Abstract machine model,Used to model the interfacing of sub-systems Organizes the system into a set of layers (or abstract machines) each of which provide a set of services S
15、upports the incremental development of sub-systems in different layers. When a layer interface changes, only the adjacent layer is affected However, often difficult to structure systems in this way,Control models,Are concerned with the control flow between sub-systems. Distinct from the system decom
16、position model Centralized control One sub-system has overall responsibility for control and starts and stops other sub-systems Event-based control Each sub-system can respond to externally generated events from other sub-systems or the systems environment,Centralized control,A control sub-system ta
17、kes responsibility for managing the execution of other sub-systems Call-return model Top-down subroutine model - control starts at top of a hierarchy and moves downwards. (non concurrent systems) Manager model Applicable to concurrent systems. One system component controls the stopping, starting and
18、 coordination of other system processes. Can be implemented in sequential systems as a case statement,Call-return model,Event-driven systems,Driven by externally generated events where event timing is out with the control of the sub-systems which process the event Two principal event-driven models B
19、roadcast models. An event is broadcast to all sub-systems. Any sub-system which can handle the event may do so Interrupt-driven models. Used in real-time systems where interrupts are detected by an interrupt handler and passed to some other component for processing,Broadcast model,Effective in integ
20、rating sub-systems on different computers in a network Sub-systems register an interest in specific events. When these occur, control is transferred to the sub-system which can handle the event Control policy is not embedded in the event and message handler. Sub-systems decide on events of interest
21、to them However, sub-systems dont know if or when an event will be handled,Interrupt-driven systems,Used in real-time systems where fast response to an event is essential There are known interrupt types with a handler defined for each type Each type is associated with a memory location and a hardwar
22、e switch causes transfer to its handler Allows fast response but complex to program and difficult to validate,Modular decomposition,Structural level where sub-systems are decomposed into modules Two modular decomposition models An object model where the system is decomposed into interacting objects
23、A data-flow model where the system is decomposed into functional modules which transform inputs to outputs. Also known as the pipeline model If possible, concurrency decisions delayed until implementation.,Object models,Structure the system into a set of loosely coupled objects with well-defined int
24、erfaces Object-oriented decomposition is concerned with identifying object classes, their attributes and operations When implemented, objects are created from these classes and some control model used to coordinate object operations,Data-flow models,Functional transformations process their inputs to
25、 produce outputs May be referred to as a pipe and filter model (as in UNIX shell) Variants of this approach are very common. When transformations are sequential, this is a batch sequential model which is extensively used in data processing systems Not really suitable for interactive systems,Invoice
- 1.请仔细阅读文档,确保文档完整性,对于不预览、不比对内容而直接下载带来的问题本站不予受理。
- 2.下载的文档,不会出现我们的网址水印。
- 3、该文档所得收入(下载+内容+预览)归上传者、原创作者;如果您是本文档原作者,请点此认领!既往收益都归您。
下载文档到电脑,查找使用更方便
2000 积分 0人已下载
下载 | 加入VIP,交流精品资源 |
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- CHAPTER13DESIGNCONCEPTSANDPRINCIPLESPPT
