




版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、UML Lecture SeriesUML SIGRequirements Modeling (Use Case Diagram + Use Case Description) UML Lecture SeriesRequirements Modeling (Use Case Diagram + Use Case Description) Session ObjectivesAt the end of this lecture You will be able to :Draw a use case diagram to depict functionalrequirements of a s
2、ystem.Expose typical mistakes by students.Write use case description for a use case. use case use case diagram functional requirements non-functional requirements actor include extend use case specification/definition/description flow of events alternate flow of events / alternate pathway exception
3、flow of events / exception pathway basic flow of events / happy pathway non-functional requirements / shadow use casesKeywords used in this lectureThoughts to Ponder To my knowledge, no other software engineering language construct as significant as use cases has been adopted so quickly and so widel
4、y among practitioners. I believe this is because use cases play a role in so many different aspects of software engineering.Ivar JacobsonFounding Father of UML and Creator of Use Case DiagramFunctional vs. Non-FunctionalRequirements FunctionalNon-FunctionalFunctional requirement are user visible fea
5、tures and aretypically initiated by stakeholders of the system generate report, login, etc. Non-functional requirements are non-visible features and but required for a effective running of an application security, backup, etc.Session ObjectivesAt the end of this lecture You will be able to :Draw a u
6、se case diagram to depict functionalrequirements of a system.Expose typical mistakes by students.Write use case description for a use case. Use Case DiagramDefinition:A diagram that shows a set of use cases and actors and their relationships.Use cases represent system functionality, the requirements
7、 of the system from the users perspective. Notationsuse case A description of a set of sequences of actions, including variants, that system performs that yields an observable value to an actor. actorThe people or systems that provide or receive information from the system; they are among the stakeh
8、olders of a system.includeSpecifies that the source use case explicitly incorporates the behaviour of another use case at a location specified by the sourceextend Specifies that the target use case extends the behaviour of the source.ActorsActorsCould be human beings, other systems, timers and clock
9、s or hardware devices.Actors that stimulate the system and are the initiators of events are called primary actors (active)Actors that only receive stimuli from the system are called secondary actors (passive)ActorsActorsWho/what will be interested in the system?Who/what will want to change the data
10、in the system?Who/what will want to interface with the system?Who/what will want information from the system?Use Case Diagram Guidelines & CautionUse cases should ideally begin with a verb generate report. Use cases should NOT be open ended Register (instead should be named as Register New User)2. A
11、void showing communication between actors.Actors should be named as singular. student and NOT students. NO names should be used John, Sam, etc. 4. Do NOT show behaviour in a use case diagram; instead only depict only system functionality.5. Use case diagram does not show sequence unlike DFDs.Example
12、 Include and ExtendThe use of include and extend is discouraged simply becausethey add unnecessary complexity to a Use Case diagram.Since the primary purpose of use cases is to show usercentred functionality, the precedence of use cases takeslittle importance. Include and ExtendQuiz 1Which use case
13、is NOT valid?Quiz 2Identify TWO(2) mistakesGranularity of Use CasesAdd referenceRemove referenceSearch for referenceUserList referencesFine Grained orGranularity of Use CasesManage ReferenceUserGenerally, a use case should embody sufficient levels of granularity without which the use case may not be
14、 rendered as useful. Session ObjectivesAt the end of this lecture You will be able to :Draw a use case diagram to depict functionalrequirements of a system.Expose typical mistakes by students.Write use case description for a use case. Mistake 1Mistake 2Mistake 3Mistake 4Mistake 5 Inventory SystemIn
15、order to generate an invoice a clerk must log in. If a clerk is a first time user, one must have themselves registered. There should be an option for a user to register oneself within the login page. Any user can use the system to view products online.The option of login is also provided when a user
16、 views products online.Discussion ExerciseDraw a use case diagram for the scenario below:Exercise - SolutionSession ObjectivesAt the end of this lecture You will be able to :Draw a use case diagram to depict functionalrequirements of a system.Expose typical mistakes by students.Write use case descri
17、ption for a use case. Use Case SpecificationIs a use case diagram alone sufficient in capturing Use Case SpecificationUse Case SpecificationUse case specification is synonymous to use case description and use case definition and can used interchangeably.Use case specification defines information tha
18、t pertains to a particular use case which is important in understanding the purpose behind the use case. Use case specification is written for every use case.A use case specification has one or more flow of events or pathways association with it.Flow of Events / PathwaysA flow of events or pathway i
19、s a textual description embodying sequence of events with regards to the use case and is part of the use case specification.Flow of events is understood by the customer. A detailed description is necessary so that one can better understand the complexity that might be involved in realising the use c
20、ases.Flow of Events / PathwaysFlow of events describes how and when the use case starts and ends, when the use case interacts with the actors, and the information exchanged between an actor and the use case.Flow of events is derived from a what perspective, NOT how perspective. Hence, specific infor
21、mation like: interface details and technical specifications should NOT be included in a use case description. Use case description serves as a bridge betweenstakeholders of a system and the development team.Flow of Events / PathwaysUse case description serves as a bridge betweenstakeholders of a sys
22、tem and the development team.Use Case DiagramUse CaseSpecificationProgrammers look at use case specification to understand complete requirements - SRSSystems analyst produce usecase diagram & use case specification in consultation with end usersFlow of Events / PathwaysFlow of EventsDescribes how an
23、d when use casestarts and ends.Does NOT describe user interface details.Is generally a text-based file that is included under its use case in Rational Rose/Visual ParadigmTypes Flow of Events / PathwaysTypes of Flow of EventsBasic Flow of Events Happy Path - is the most common pathway. It usually de
24、picts a perfect situation, in which nothing goes wrong.Alternate Flow of Events Alternate Pathway - is a pathway that is still considered a good pathway; its just not the most heavily travelled oneException Flow of Events Exception Pathways Unhappy Pathway things dont always go as planned. An except
25、ion is an error condition that is important enough to the application to capture.Types Flow of Events / PathwaysBasic Flow of Events Happy Path You get to the ATM and successfully withdraw money Alternate Flow of Events Alternate Pathway - You get to the ATM but could not withdraw money due to insuf
26、ficient funds in your account. Exception Flow of Events Exception Pathways Unhappy Pathway You get to the ATM machine but your valid pin number is not accepted. See Example Word Document on Use Case Specification based on Remulak ProductionsUse Case Specifications - ExampleReview QuestionsA use case
27、 specification cannot be done for an included use case. TrueFalseReview QuestionUse case specification together with a use case diagram become part of what is know as system requirements specification (SRS)TrueFalseReview QuestionAlthough non-functional requirements ( shadow use cases) are not “technically speaking a use case, are still considered a use case to acknowl
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 研究软件设计师考试试题及答案
- 2025年分布式能源交易市场前景与能源互联网产业协同发展战略研究报告
- 成人教育线上学习平台用户行为分析与模式创新:2025年研究报告
- 生态治理政策的国际比较研究试题及答案
- 比较西方国家的税制改革与社会公平问题的综合分析试题及答案
- 2025年商业地产项目社区化运营策略:精准定位与招商研究报告
- 环保学习背包设计企业制定与实施新质生产力项目商业计划书
- 定制化UI-UX设计外包行业深度调研及发展项目商业计划书
- 滑板障碍赛企业制定与实施新质生产力项目商业计划书
- 橄榄球俱乐部行业跨境出海项目商业计划书
- 2025年小学语文毕业升学全真模拟试卷(古诗词背诵默写)历年真题回顾
- 东莞滨海湾新区管理委员会下属事业单位招聘笔试真题2024
- 安徽宣城郎溪开创控股集团有限公司下属子公司招聘笔试题库2025
- 2025届江苏省高三高考科研卷语文试题及参考答案
- 统编版语文六年级下册古诗词诵读考点巩固 期末复习专用课件
- 中小学期末考试总动员主题班会
- 核聚变:人类终极能源的钥匙646mb
- 糖尿病急性并发症的识别及处理课件
- 国家公职人员应知应会法律知识300题(单选)含答案
- 2025江西中考:化学高频考点
- 2024年中考语文记叙文阅读之新闻阅读(解析版)
评论
0/150
提交评论