Chapter 13 逻辑架构和UML包图·。 ●●●●● ●●●● ●●。●●
Chapter 13 逻辑架构和UML包图
Sample UP Artifact Relationships Domain ●●●●● Business ●●●● ●●● ●●●● ●●0● Use-Case Model Supplementary Vision Specification The logical architecture is influenced by the captured in the Supp. Spec Design Model Tech Services Design interaction diagrams (a dynamic view emiD, quanti Productcatalog class diagrams makeNewsaleo getProductspec(.)
: Register enterItem (itemID, quantity) : ProductCatalog spec = getProductSpec( itemID ) Requirements Business Modeling Design Sample UP Artifact Relationships Vision Glossary The logical architecture is influenced by the constraints and non-functional requirements captured in the Supp. Spec. Domain Model * * Supplementary Specification Use-Case Model Register ... makeNewSale() enterItem(...) ... ProductCatalog ... getProductSpec(...) ... class diagrams 1 1 (a static view) interaction diagrams (a dynamic view) UI package diagrams of the logical architecture (a static view) Domain Tech Services Design Model
●●●● ●●● Architectural layers ●●●●● ●●●● ●●0● The Fo0 Store 回区 Clarity minor focus Interface explore how to connect to Enter lem And so on. other layers application primary focus of case study ogic and Sale Payment domain object xplore how to layer secondary focus technical services layer Log PersistenceFacade explore how to desig
Architectural Layers
●●●●● ●●●● Architectural Layers ●●● ●●●● ●●0● UI not the java Swing qp- Swing libraries,but Web our Gul classes based on Swing Domain Sales Payments Taxes Technical Services Persistence Logging Rules Engine
Architectural Layers Domain UI Swing not the Java Swing libraries, but our GUI classes based on Swing Web Sales Payments Taxes Technical Services Persistence Logging RulesEngine
●●●●● ●●●● 为什么要分层 ●●●●● ●●●● ●●0● ●分层是处理复杂性的有效手段 复杂性和分布性是目前应用系统 分层中的每一层都可以被单独理解,无需对其他部分做深 入研究 ●每一层都可以被实现了同样功能的其他实现所替代。 ●建立在标准化机制上 ●层次之间具有单向的依赖关系,高层使用底层的资源,高 层的改动不影响底层的改动
为什么要分层 ⚫ 分层是处理复杂性的有效手段 ⚫ 复杂性和分布性是目前应用系统 ⚫ 分层中的每一层都可以被单独理解,无需对其他部分做深 入研究。 ⚫ 每一层都可以被实现了同样功能的其他实现所替代。 ⚫ 建立在标准化机制上 ⚫ 层次之间具有单向的依赖关系,高层使用底层的资源,高 层的改动不影响底层的改动