版權說明:本文檔由用戶提供并上傳,收益歸屬內容提供方,若內容存在侵權,請進行舉報或認領
文檔簡介
ActivityDiagramsWhatareactivitydiagramsActionstatesTransitionsDecisionsForksandJoinsSwimlanesObjectflowsSignalsWhatareactivitydiagramsActivitydiagramsare“OOflowcharts”.Allowstomodelaprocessasacollectionofactivitiesandtransitionsbetweenthoseactivities.Anactivitydiagramcanbeattachedtoanymodelingelementtocapturethebehaviorofthatelement.Typically,itattachedto: 1).Usecase; 2).Classes 3).Interface; 4).Components; 5).Nodes; 6).Collaborations; 7).OperationsandmethodsWhatareactivitydiagrams(2)Agoodactivitydiagramisthatitisfocusedoncommunicatingonespecificaspectofasystemdynamicbehavior.Anactivitydiagramcontainstheminimumnecessaryamountofinformationtocommunicatethepoint.Wecanalsouseanactivitydiagramtomodelbusinessprocessandworkflows.Aguardisalogicalconditionthatwillreturnonly“true”or“false”.Aguardedtransitionoccursonlyiftheguardresolvesto“true”.ActionStatesActionstateisasimplifiedformofastatethathasasingleentryaction.Andtheyare: Atomic:can’tbebrokendownintosmallerpiecesUninterruptible:oncethepieceofworkstartsitalwaysprogressestofinishInstantaneous:theworkofanactionstateisgenerallyconsideredtotakeaninsignificantamountoftime.ActionstatesarerepresentedasrectanglewithroundedendsActionstatestateActionStates(2)Twoformsofactionexpression: 1).Pseudo-code:suchasi:=i+1 2).PlainEnglish:verborverbphraseEachactivitydiagramhastwospecialstates:- -thestartstate: -thestopstate:SubactivitystatesSubactivitystatesarenon-atomic,andhaveaspecialsyntax.Whenmodelingcomplexbusinessprocessesasaworkflow,youtendtousesubactivitystates.Subactivitystatescanbebrokendownintofinersubactivityandultimatelytoactionstates.TransitionsTransitionsindicatethemovementfromonestatetoanother.Example:WriteletterAddressletterPostletterStartstateStopstateActivitystatesDecisions-AdecisionspecifiesalternativepathsbasedonsomeBooleanguardexpression.Syntax:diamondshape.Abranchhasasingleingtransitionandseveralguardedoutgoingtransitions.Onlyoneoftheoutgoingtransitionscanbetaken,sotheguardsshouldbemutuallyexclusive.Using[else]asaguardindicatesthatthe“else”transitionshouldbeusedifallotherguardsonthebrancharefalse.Amergerhasmultipleinputtransitionsandasingleoutput.Amergermarkstheendofconditionalbehavior
ForksandjoinsUsingafork,cansplitapathintotwoormoreconcurrentflows,andsynchronizetheseconcurrentflowsusingajoin.Forkhasexactlyoneingtransitionandtwoormoreoutgoingtransitions.Joinhastwoormoreingtransitionandexactlyoneoutgoingtransition.Allofoutgoingtransitionsaretakeninparallel.JoinForkSwimlanesUMLdoesnotgiveanydetailedsemanticsforswimlane.Soyoucanpartitionactivitydiagramsinanywayyoulike.Swimlanesarecommonlyusedtorepresent:UsecaseClassesComponentsOrganizationalunitsRoles(inworkflowmodeling)ExampleObjectflowsActivitiesmayinputandoutputobjectsandcanmodifyobjectstate.Youcanshowthisonanactivitydiagramasanobjectflow.SignalsAsingleisatypeofevent,andawayofrepresentingapackageofinformationthatiscommunicatedasynchronouslybetweentwoobjects.Asignaleventoccurswhenanobjectreceivessignal.Asignalismodeledasaclasswiththestandardstereotype<<signal>>.Itonlyhasattributesandimplicitsend(targetSet)method.Asignalsendismodeledonanactivitydiagramasconvexpentagonlabeledwiththenameofsignalthatissent.Thereisnoactionassociatedwiththisstate,allitdoesissendthesignal.Drawadashedarrowfromthesignalsendtotheobjectthatreceivesthesignal.Asignalreceiptismodeledwithaconcavepentagonlabeledwiththenameofthesignalthatitreceived.Figure13.10WhentoUseactivityDiagramLikemostbehavioralmodelingtechniques,activitydiagramshavedefinitestrengthsandweakness,sotheyarebestusedincombinationwithothertechniques.Thegreatstrengthofactivitydiagramssupportsandencourageparallelbehavior.Thismakesthemagreattoolforworkflowmodelingformultithreadedprogramming.Theweaknessisactivitydiagramsdonotmakethelinksamongactionsandobjectsveryclear.Donot
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯系上傳者。文件的所有權益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網頁內容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
- 4. 未經權益所有人同意不得將文件中的內容挪作商業(yè)或盈利用途。
- 5. 人人文庫網僅提供信息存儲空間,僅對用戶上傳內容的表現方式做保護處理,對用戶上傳分享的文檔內容本身不做任何修改或編輯,并不能對任何下載內容負責。
- 6. 下載文件中如有侵權或不適當內容,請與我們聯系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 2025農村征地合同協議書
- 2025農村土地永久轉讓及生態(tài)保護合同全新制定
- 2025年度公司特色花卉組合采購服務協議3篇
- 二零二五年度地鐵車站清潔與安全服務合同3篇
- 二零二五年度物流運輸勞動合同勞務合同3篇
- 二零二五年度私人住宅泳池建造合同3篇
- 2025年度全款購車汽車用品贈送合同范本3篇
- 二零二五年度高校畢業(yè)生就業(yè)見習計劃合作協議3篇
- 2025年度環(huán)保設備銷售加盟合同協議
- 二零二五年度電力設施檢修與維修合同3篇
- UBA之夢想、目標、計劃、行動、信念
- 儲罐水噴砂施工方案
- 每個人有每個人的愛好
- 每立方米鋼筋砼鋼筋含量參考值
- 小學語文教師怎樣說課-ppt課件
- Q∕GDW 12147-2021 電網智能業(yè)務終端接入規(guī)范
- 猩紅熱ppt幻燈片課件
- 輸配電線路基礎知識
- 2015年日歷表(超清晰A4打印版)
- 剪式汽車舉升機設計
- 健康證體檢表
評論
0/150
提交評論