- 1、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
12/7/00 Java Layers/RC,CL Java Layers Language Support for Stepwise Refinement Problem Software development and maintenance is expensive Difficult Takes a long time Reuse is Key Separation of concerns One application feature per component Flexible composition Presentation Overview Part I – Motivation Mixins Stepwise Refinement Drawbacks of Mixins Part II – Java Layers Java Layers Overview Two Language Features An OO Problem An OO Solution Use same lockable code for all 3 classes Encapsulate lockable code in a class Subtype Car, Box, House with new class Mixed-In Classes Mixins Types with parameterized supertypes Depend on type parameters More precisely: Parametric Polymorphism An OO mechanism for code reuse Apply same code to unrelated classes Work with single inheritance Mixins Software Components Question Can we use mixins to build applications out of reusable components? Example: Music Server Variation can occur on many axes: Client interface {getSong, putSong, eraseCopyright, hideBritney, …} Server execution strategy {single threaded, thread-spawning, thread pool, …} Transport type Fault tolerance Server discovery … Music Application Instances Application Assembly is Easy Base Class class Base { } GetSong Mixin class GetSongT extends Base extends T { static public class Client extends T.Client { void getSong(…){…} } static public class Server extends T.Server { void dispatch(Req req){ if (req.name.equals(“getSong”)) processGetSong(req); else super.dispatch(req); } … } } Other Mixins class EraseCopyrightT extends Base extends T { static public class Client extends T.Client { void eraseCopyright(…){…} } … } Stepwise Program Refinement Drawbacks of Mixins Superclass initialization Runtime efficiency Leaf-type references Composition validation Semantic validity Syntactic correctness Recap Software components imply reuse Mixins reuse OO code Mixins build applications incrementally Stepwise program refinement
您可能关注的文档
- Chapter 10 Mineral Nutrition of Aquatic Animal.ppt
- Chapter 7 Steroids(甾体).ppt
- Chapter two Basic theory of TCM.ppt
- Chapter 6 Hypoxia.ppt
- chengjing.ppt
- China's Development Rapid Growth, Rising Income Inequality.ppt
- Chinese Characters and Scripts.ppt
- Chapter 3 Displaying Data.ppt
- Chp 4 Hormonal Influences on Male Sex Behavior.ppt
- ci yun lǐ.ppt
- June 3230-530.ppt
- Judicial Decree to Terminate the Validity of Lost Bills of Lading.ppt
- key source of wal-mart's competitive advantages.ppt
- Kerr黑洞吸积盘的Limit-Cycle行为.ppt
- Kid's Notebook.ppt
- LCD中由局部单元缝隙变化产生的缺陷研究.ppt
- LAW OF TORTS.ppt
- Lecture 06. C++ Classes.ppt
- Lecture 35Fuzzy Logic Control (III).ppt
- LEARNING WITHTECHNOLOGY.ppt
最近下载
- 全南2019年招聘中小学幼儿园教师工作方案.doc VIP
- 《教师职业道德》教师职业道德概述.pptx VIP
- 2025年湛江中心人民医院医护人员招聘参考题库含答案解析.docx VIP
- 2025年湛江市中心人民医院医护人员招聘参考题库附答案解析.docx VIP
- 在线网课学习课堂《Advanced Medical English(首都医大 )》单元测试考核答案.docx VIP
- 青岛科技大学四方校区物业管理服务公开招标.doc VIP
- Delta影像组学在急性外踝韧带损伤修复疗效预测中的应用.docx VIP
- 黄炎培创业大赛 路演ppt(获奖).pptx VIP
- 2024年版《陕西省园林绿化工程消耗量定额》.pdf VIP
- 2024版食堂工作培训ppt课件 .pdf VIP
文档评论(0)