- 1、本文档共39页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
* Example Customer Billing System The print routine of the customer billing accepts customer data structure as an argument, parses it, and prints the name, address, and billing information. Improvement? * * Improvement --- OO Solution Use an interface to limit access from clients Customer get name get address get billing info get other info … void print (Customer c) { … } ? * Data Coupling Def: Component passes data (not data structures) to another component. Every argument is simple argument or data structure in which all elements are used Good, if it can be achieved. Example: Customer billing system The print routine takes the customer name, address, and billing information as arguments. CS 4311 * Content Common External Control Stamp Data Uncoupled * Uncoupled Completely uncoupled components are not systems. Systems are made of interacting components. Content Common Control Stamp Data Uncoupled Content Common External Control Stamp Data Uncoupled * Exercise: Define Coupling between Pairs of Modules Content Common External Control Stamp Data Uncoupled * Q R S T U P Q R S T Coupling between Pairs of Modules * Consequences of Coupling Why does coupling matter? What are the costs and benefits of coupling? (pairs, 3 minutes) * Consequences of Coupling High coupling Components are difficult to understand in isolation Changes in component ripple to others Components are difficult to reuse Need to include all coupled components Difficult to understand Low coupling May incur performance cost Generally faster to build systems with low coupling * In Class Groups of 2 or 3: P1: What is the effect of cohesion on maintenance? P2: What is the effect of coupling on maintenance? * * * * * * * * * * . * * * Cohesion and Coupling CS 4311 Frank Tsui, Orland Karam, and Barbara Bernal,?Essential of Software Engineering, 3rd edition, Jones Bartett Learning. Section 8.3. Hans van Vliet, Software Engineering, Principles and Practice, 3rd edition, John Wiley Sons,
您可能关注的文档
- Classroom Environment TypePad课堂环境TypePad.ppt
- Claude Debussy's La Mer and Three Paintings by 克劳德德彪西的La Mer和三画.ppt
- Clay In The Potter's Hand fvchurch粘土在陶工的手fvchurch.ppt
- Clauses The building blocks of sentences句子的句子.ppt
- Clean Energy, Good Governance Electricity Regulation清洁能源良好的治理和电力监管.ppt
- Clean Up Your Act清理你的行为.ppt
- Classroom SMART goals Action Research课堂智能目标行动研究.ppt
- Clever Coyote presentations聪明的狼介绍.pppst.ppt
- Clearinghouse and Metadata at Geographical Survey 在地理调查信息和元数据.ppt
- CLHEP New Developments and DirectionsCLHEP 新的发展方向.ppt
- 大题01 信息类文本阅读(现代文阅读Ⅰ)- 大题精做 冲刺2025年高考语文大题突破讲练(新高考通用)(原卷版).docx
- 动物体细胞核移植技术与克隆动物课件-高二下学期生物人教版选择性必修3.pptx
- 房屋修缮工程的施工方案.docx
- 绿色转型的产业布局与战略方向.docx
- 漫画类作文(2025年2-3月精选)(真题 审题 立意 范文)-备战2025届高考作文类型细化分类讲练(全国通用).docx
- 通用版高考化学微一轮复习学案第6讲离子反应.doc
- 保障弱势群体就业的策略及实施路径.docx
- 化学实验室安全指导-化学教师演讲.pptx
- 生态补偿机制的建设与完善策略及实施路径.docx
- 读写结合类(2025年3月精选)(真题 审题 立意 范文)-备战2025届高考作文类型细化分类讲练(全国通用).docx
最近下载
- 内蒙古乌尼特矿业有限责任公司乌尼特煤矿接续生产环境影响报告书.doc
- 特种设备-维护保养记录(叉车-电动托盘堆垛车).docx
- 《多边形的内角和》 示范教学PPT课件【初中数学人教版八年级上册】.pptx
- 紧密型县域医疗卫生共同体消毒供应中心运营指南(2020年版 医联体建设).docx
- 泵站运行考试(高级)习题库(第1部分).pdf
- 挡土墙计算理正岩土(“挡土墙”文档)共21张.pptx
- XXXX生态风景区智慧景区项目施工组织方案及对策.pdf
- 陈培勋平湖秋月五线谱钢琴谱.pdf
- 可爱的中国教案第10课可爱的中国第十课同心共筑中国梦.docx
- 2024《S市乡镇幼儿教师职业幸福感问卷调研分析报告》9700字.docx VIP
文档评论(0)