【正文】
通話結(jié)果,成交數(shù)量 Copyright 169。 2022 The McGrawHill Companies. All Rights reserved Modeling UseCase Activities ? Activity diagram – a diagram that can be used to graphically depict the flow of a business process, the steps of a use case, or the logic of an object behavior (method). – 類似于流程圖,用于以圖形化的方式描述一個業(yè)務(wù)過程或者一個用例的活動步驟的順序流程。 – 用法靈活,即可以在分析階段輔助用例圖建模,也可用于設(shè)計階段輔助說明對象行為(方法)的操作邏輯。 Copyright 169。 2022 The McGrawHill Companies. All Rights reserved ? One or more activity diagram can be constructed for each use case (more than one if use case is long or contains plex logic). – 實心點代表過程啟動 – 園角矩形代表需要執(zhí)行的活動步驟 – 箭頭代表引發(fā)活動的觸發(fā)器 – 實心黑條是同步條,用以描述并行活動 Modeling UseCase Activities C re a te B a c k o rd e rCopyright 169。 2022 The McGrawHill Companies. All Rights reserved Copyright 169。 2022 The McGrawHill Companies. All Rights reserved Activity Diagram Notations活動圖記號 1. Initial node solid circle : the start of the process. 2. Actions – rounded rectangles representing individual steps. The sequence of actions make up the total activity shown by the diagram. 3. Flow arrows on the diagram indicating the progression through the actions. Most flows do not need words to identify them unless ing out of decisions. 4. Decision diamond shapes with one flow ing in and two or more flows going out. The flows ing out are marked to indicate the conditions. 5. Merge diamond shapes with multiple flows ing in and one flow going out. This bines flows previously separated by decisions. Processing continues with any one flow ing into the merge. Copyright 169。 2022 The McGrawHill Companies. All Rights reserved Copyright 169。 2022 The McGrawHill Companies. All Rights reserved Activity Diagram Notations (cont.) 6. Fork – a black bar with one flow ing in and two or more flows going out. Actions on parallel flows beneath the fork can occur in any order or concurrently. 7. Join – a black bar with two or more flows ing in and one flow going out, noting the end of concurrent processing. All actions ing into the join must be pleted before processing continues. 8. Activity final – the solid circle inside the hollow circle representing the end of the process. Copyright 169。 2022 The McGrawHill Companies. All Rights reserved Copyright 169。 2022 The McGrawHill Companies. All Rights reserved Activity Diagram with Partitions 9. Subactivity indicator – the rake symbol in an action indicates that this action is broken out in another separate activity diagram. This helps you keep the activity diagram from being overly plex. 10. Connector – A letter inside a circle gives you another tool for managing plexity. A flow ing into a connector jumps to the flow ing out of a connector with a matching letter. Copyright 169。 2022 The McGrawHill Companies. All Rights reserved Copyright 169。 2022 The McGrawHill Companies. All Rights reserved Guidelines for Constructing Activity Diagrams 概要 ? 為用例添加開始和結(jié)束點 ? 為用例的主要步驟添加一個活動(或者一個參與者發(fā)起的每個主要步驟 ? 從每個活動到其他活動、決策點和終點添加轉(zhuǎn)換 ? 并行活動的地方添加同步條 Copyright 169。 2022 The McGrawHill Companies. All Rights reserved Guidelines for Constructing Activity Diagrams 詳細(xì) ? Start with one initial node as a starting point. ? Add partitions if it is relevant to your analysis. ? Add an action for each major step of the use case (or each major step an actor initiates. ? Add flows from each action to another action, a decision point, or an end point. For maximum precision of meaning, each action should have only one flow ing in and one flow going out with all forks, joins, decisions, and merges shown explicitly. ? Add decisions where flows diverge with alternating routes. Be sure to bring them back together with a merge. ? Add forks and joins where activities are performed in parallel. ? End with a single notation for activity final.