




版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、Elaboration Iteration 3Intermediate TopicsCh27.Iteration 3-Intermediate TopicsCh28. UML Activity Diagrams and ModelingCh29. UML State Machine Diagrams and Modeling1Chapter 27.Iteration 3-Intermediate TopicsObjectivesDefine the requirements for iteration-3.2IntroductionInception and iteration-1 Basic
2、 OOA/D modeling basicsIteration-2Object designIteration-3Broader analysis and design topics3Iteration-3More GoF design pattern, and their application to the design of frameworksin particular, a persistence frameworkArchitectural analysisdocumenting architecture with the N+1 view modelProcess modelin
3、g with UML activity diagramsGeneralization and SpecializationThe design of packages4NextGen POSRequirements in iteration-3 include:Provide failover to local services when the remote services cannot be accessedProvide support for POS device handlingsuch as the cash drawer and coin dispenserHandle cre
4、dit payment authorizationSupport for persistent objects5MonopolyRequirements in iteration-3 include:Implement a basic, key scenario of the Play Monopoly Game use caseMore of the complete set of rules applyThere are now Lots, Railroads, and Utility squaresIf not owned, the player who landed on the sq
5、uare may buy itIf owned by the player that landed on it, nothing happensIf owner by a player other than the player that landed on it, the player that landed on the square must pay its owner rent6Chapter 28. UML Activity Diagrams and ModelingObjectivesIntroduce UML activity diagram notation, with exa
6、mples, and various modeling applications7IntroductionA UML activity diagram shows sequential and parallel activities in a process. Modeling business processes, workflows, data flows, and complex algorithms.Basic notation include action, partition, fork, join, and object nodeActivity diagram can show
7、 both control flow and data flow8Example(Business Process Modeling)9Data Flow ModelingData flow diagrams (DFD) became a popular way to visualize the major steps and data involved in software system processes.10Classic DFD in Gane-Sarson notationExample(data flow Modeling)11More UML Activity Diagram
8、Notation12Signals in UML Activity Diagrams 13 model events such as time triggering an action, or a cancellation requestGuidelinesThis technique proves most valuable for very complex processes, usually involving many parties. Use-case text suffices for simple processes.If modeling a business process,
9、 take advantage of the rake notation and sub-activity diagrams. Strive to make the level of abstraction of action nodes roughly equal within a diagram. 14Example: NextGen Activity Diagram15Chapter 29. UML State Machine Diagrams and ModelingObjectivesIntroduce UML state machine diagram notation, with
10、 examples, and various modeling applications.16ExampleA UML state machine diagram, illustrates the interesting events and states of an object, and the behavior of an object in reaction to an event.17State machine diagram for a telephoneDefinitions: Events, States, and TransitionsAn event is a signif
11、icant or noteworthy occurrence. A state is the condition of an object at a moment in timethe time between events. A transition is a relationship between two states that indicates that when an event occurs, the object moves from the prior state to the subsequent state. 18State-dependent objectIf an o
12、bject always responds the same way to an event, then it is considered state-independent (or modeless) with respect to that event. By contrast, state-dependent objects react differently to events depending on their state or mode.19How to Apply State Machine Diagrams?Consider state machines for state-
13、dependent objects with complex behavior, not for state-independent objects.In general, business information systems have few complex state-dependent classes. It is seldom helpful to apply state machine modeling.By contrast, process control, device control, protocol handlers, and telecommunication do
14、mains often have many state-dependent objects. If you work in these domains, definitely know and consider state machine modeling.20Modeling State-dependent ObjectsState machines are applied in two ways:To model the behavior of a complex reactive object in response to events.To model legal sequences
15、of operationsprotocol or language specifications.21Complex Reactive ObjectsPhysical Devices controlled by softwarePhone, car, microwave ovenTransactions and related Business Objectssale, order, paymentRole MutatorsThese are objects that change their role.Person changing roles from being a civilian t
16、o a veteran22Protocols and Legal SequencesCommunication ProtocolsUI Page/Window Flow or NavigationUI Flow Controllers or SessionsUse Case System OperationsIndividual UI Window Event Handling23More UML State Machine Diagram NotationTransition Actions and GuardsA transition can cause an action to fire
17、A transition may also have a conditional guard boolean test24Nested StatesA state allows nesting to contain substates.A substate inherits the transitions of its superstate (the enclosing state).25Example: UI Navigation Modeling with State MachinesState machines are a great way to model page flows fo
18、r Web UI applications during creative design.26Example: NextGen Use Case State Machine Diagram27A sample state machine for legal sequence of use case operationsSummaryUML Activity Diagrams and ModelingUML State Machine Diagrams and Modeling28Ex. Secret panel controllerSuppose there is a controller for a secret panel in a Gothic castle(哥特式城堡). In this castle, you want to keep your valuables in a safe(保险箱) thats hard to find. So to r
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 青稞真菌毒素防治技术规范
- 食品溯源工程师笔试试题及答案
- 2025年脱灰剂项目建议书
- 2025年湖北省民族宗教事务委员会下属事业单位招聘考试笔试试题【答案】
- 2024年通辽市库伦旗乌兰牧骑招聘演职人员真题
- 2025年江苏省高校毕业生“三支一扶”计划招募考试试题【答案】
- 2025年白兰地相关饮料酒合作协议书
- 项目二 常见热处理
- 2025年耐磨球段项目建议书
- 全球视野下的终身学习体系建设
- 改进作风测试题及答案
- 第18课 冷战与国际格局的演变 【基础深耕】高一下学期统编版(2019)必修中外历史纲要下
- 部队训练防中暑课件
- 道路保洁安全培训
- 见证取样送检计划方案
- 整形医院年度财务预算计划
- 《颅底骨折的护理》课件
- 2024年县乡教师选调进城考试《教育心理学》题库及完整答案【必刷】
- 设备部管理制度范文(2篇)
- 《机械员培训资料》课件
- 2025四川成都环境投资集团限公司应届毕业生招聘50人管理单位笔试遴选500模拟题附带答案详解
评论
0/150
提交评论