版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、IntellAgile主讲:叶荣华Copyright 2002 Craig Larman. All rights reserved.IntellAgile2IntellAgile3: RegisterenterItem(itemID, quantity): ProductCatalogspec = getProductSpec( itemID )Require-mentsBusiness ModelingDesignSample UP Artifact RelationshipsVisionGlossaryThe logical architecture is influenced by th
2、e constraints and non-functional requirements captured in the Supp. Spec.Domain Model*SupplementarySpecificationUse-Case ModelRegister.makeNewSale()enterItem(.).ProductCatalog.getProductSpec(.).11class diagrams(a static view)interaction diagrams(a dynamic view)UIpackage diagramsof the logical archit
3、ecture(a static view)DomainTech ServicesDesign ModelIntellAgile4IntellAgile5DomainUISwingnot the Java Swing libraries, but our GUI classes based on SwingWebSalesPaymentsTaxesTechnical ServicesPersistenceLoggingRulesEngineIntellAgile6Domain:SalesUI:WebUI:SwingSalesWebSwingUIDomainDomainUISwingSalesWe
4、bIntellAgile7IntellAgile8UI(AKA Presentation, View)Application(AKA Workflow, Process,Mediation, App Controller)Domain(AKA Business, Application Logic, Model)Technical Services(AKA Technical Infrastructure, High-level Technical Services)Foundation(AKA Core Services, Base Services,Low-level Technical
5、Services/Infrastructure)width implies range of applicability GUI windowsreportsspeech interfaceHTML, XML, XSLT, JSP, Javascript, . handles presentation layer requestsworkflowsession statewindow/page transitionsconsolidation/transformation of disparate data for presentation handles application layer
6、requestsimplementation of domain rulesdomain services (POS, Inventory)- services may be used by just one application, but there is also the possibility of multi-application services (relatively) high-level technical services and frameworks Persistence, Securitylow-level technical services, utilities
7、, and frameworksdata structures, threads, math, file, DB, and network I/Omoreapp specificdependencyBusiness Infrastructure(AKA Low-level Business Services)very general low-level business services used in many business domainsCurrencyConverterIntellAgile9IntellAgile10IntellAgile11IntellAgile12Payment
8、amountSaledatetimePays-forPaymentamount: MoneygetBalance(): MoneySaledate: DatestartTime: TimegetTotal(): Money. . .Pays-forUP Domain ModelStakeholders view of the noteworthy concepts in the domain.Domain layer of the architecture in the UP Design ModelThe object-oriented developer has taken inspira
9、tion from the real world domain in creating software classes. Therefore, the representational gap between how stakeholders conceive the domain, and its representation in software, has been lowered.1111A Payment in the Domain Model is a concept, but a Payment in the Design Model is a software class.
10、They are not the same thing, but the former inspired the naming and definition of the latter.This reduces the representational gap.This is one of the big ideas in object technology.inspires objects and names inIntellAgile13Domain(s)Technical ServicesFoundationMySQL InventoryPersistenceNaming andDire
11、ctory ServicesWeb AppFrameworkTechnical ServicesPOSInventoryDomain(s)FoundationWorsemixes logical and deployment viewsBettera logical viewa logical representation of the need for data or services related to these subdomains, abstracting implementation decisions such as a database. componentNovellLDA
12、PUML notation: A UML component, or replaceable, modular part of the physical systemUML notation: A physical database in the UML .IntellAgile14IntellAgile15DomainUISwingProcessSaleFrame.RegistermakeNewSale()enterItem().: CashiermakeNewSale()enterItem()endSale()makeNewSale()enterItem()endSale()enterIt
13、em(id, quantity):System: CashierendSale()description, totalmakeNewSale()the system operations handled by the system in an SSD represent the operation calls on the Application or Domain layer from the UI layerIntellAgile16IntellAgile17IntellAgile18: Register: SalemakePayment(cashTendered)makePayment(
14、cashTendered) : Paymentcreate(cashTendered)IntellAgile191: makePayment(cashTendered)1.1: create(cashTendered):Register:Sale:PaymentmakePayment(cashTendered) direction of messageIntellAgile20java.awt:Fontorjava.awt.Fontplain : Int = 0 readOnly bold : Int = 1 readOnly name : Stringstyle : Int = 0.getF
15、ont( name : String) : FontgetName() : SerfaceRunnablerun()- ellipsis “” means there may be elements, but not shown- a blank compartment officially means “unknown” but as a convention will be used to mean “no members”SubclassFoo.run().SuperclassFooorSuperClassFoo abstract - classOrStaticAttr
16、ibute : Int+ publicAttribute : String- privateAttributeassumedPrivateAttributeisInitializedAttribute : Bool = trueaCollection : VeggieBurger * attributeMayLegallyBeNull : String 0.1 finalConstantAttribute : Int = 5 readOnly / derivedAttribute + classOrStaticMethod()+ publicMethod()assumedPublicMetho
17、d()- privateMethod()# protectedMethod() packageVisibleMethod()constructor SuperclassFoo( Long )methodWithParms(parm1 : String, parm2 : Float)methodReturnsSomething() : VeggieBurgermethodThrowsException() exception IOExceptionabstractMethod()abstractMethod2() abstract / alternatefinalMethod() leaf / no override in subclasssynchronizedMethod() guarded 3 common compartments1. classifier name2. attributes3. operationsinter
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 粉末冶金成型工操作管理水平考核试卷含答案
- 矿压观测工班组建设知识考核试卷含答案
- 高压试验工安全专项水平考核试卷含答案
- 医药商品购销员安全强化考核试卷含答案
- 2025年有机废水沼气系统项目发展计划
- 2025年引导信标机合作协议书
- 2026年1月24日河北省直机关选调面试真题及答案解析(上午卷)
- 狙击枪介绍课件
- 环境局业务培训课件模板
- 燃气安全隐患排查报告燃气安全隐患排查整治工作总结
- 中远海运集团笔试题目2026
- 2026年中国热带农业科学院橡胶研究所高层次人才引进备考题库含答案详解
- 妆造店化妆品管理制度规范
- 2025-2026学年四年级英语上册期末试题卷(含听力音频)
- 浙江省2026年1月普通高等学校招生全国统一考试英语试题(含答案含听力原文含音频)
- 2026届川庆钻探工程限公司高校毕业生春季招聘10人易考易错模拟试题(共500题)试卷后附参考答案
- 基本农田保护施工方案
- 销售心理学全集(2022年-2023年)
- 变态反应课件
- 电力拖动控制线路与技能训练-教案
- 50年同学聚会邀请函(十二篇)
评论
0/150
提交评论