軟件需求分析課件:Chap 11-Iteration 3--More Topics_第1頁
軟件需求分析課件:Chap 11-Iteration 3--More Topics_第2頁
軟件需求分析課件:Chap 11-Iteration 3--More Topics_第3頁
軟件需求分析課件:Chap 11-Iteration 3--More Topics_第4頁
軟件需求分析課件:Chap 11-Iteration 3--More Topics_第5頁
已閱讀5頁,還剩28頁未讀, 繼續(xù)免費(fèi)閱讀

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報(bào)或認(rèn)領(lǐng)

文檔簡介

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(保險(xiǎn)箱) thats hard to find. So to r

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論