上降文通大学 SHANGHAI JLAO TONG UNIVERSITY 10.Mapping Models to Code 漏 WnnmM 泰 SHANG 1日gG
10. Mapping Models to Code
上游充通大兽 Outline SHANGHAI JIAO TONG UNIVERSITY Overview 国Mapping Concepts ④Mapping Activities Case Study Software Engineering
Software Engineering Outline Overview Mapping Concepts Mapping Activities Case Study
上游充通大兽 1.Overview SHANGHAI JIAO TONG UNIVERSITY Object design is situated between system design and implementation.Object design is not very well understood and if not well done,leads to a bad system implementation. In this lecture,we describe a selection of transformations to illustrate a disciplined approach to implementation to avoid system degradation. 1.Operations on the object model: Optimizations to address performance requirements 2.Implementation of class model components: Realization of associations Realization of operation contracts 3.Realizing entity objects based on selected storage strategy Mapping the class model to a storage schema Software Engineering
Software Engineering 1. Overview Object design is situated between system design and implementation. Object design is not very well understood and if not well done, leads to a bad system implementation. In this lecture, we describe a selection of transformations to illustrate a disciplined approach to implementation to avoid system degradation. 1. Operations on the object model: • Optimizations to address performance requirements 2. Implementation of class model components: • Realization of associations • Realization of operation contracts 3. Realizing entity objects based on selected storage strategy • Mapping the class model to a storage schema
上游究通大粤 Characteristics of Object Design Activities SHANGHAI JIAO TONG UNIVERSITY Developers perform transformations to the object model to improve its modularity and performance. Developers transform the associations of the object model into collections of object references,because programming languages do not support the concept of association. If the programming language does not support contracts,the developer needs to write code for detecting and handling contract violations. Developers often revise the interface specification to accommodate new requirements from the client. All these activities are intellectually not challenging However,they have a repetitive and mechanical flavor that makes them error prone. Software Engineering
Software Engineering Characteristics of Object Design Activities Developers perform transformations to the object model to improve its modularity and performance. Developers transform the associations of the object model into collections of object references, because programming languages do not support the concept of association. If the programming language does not support contracts, the developer needs to write code for detecting and handling contract violations. Developers often revise the interface specification to accommodate new requirements from the client. All these activities are intellectually not challenging • However, they have a repetitive and mechanical flavor that makes them error prone
上游充通大粤 SHANGHAI JIAO TONG UNIVERSITY 2.Mapping Concepts Software Engineering
Software Engineering 2. Mapping Concepts