Presentation is loading. Please wait.

Presentation is loading. Please wait.

Activity Diagram.

Similar presentations


Presentation on theme: "Activity Diagram."— Presentation transcript:

1 Activity Diagram

2 Activity Diagrams: Activity Diagrams are a type of flowchart used to describe a business process or workflow of a system; that is, they show the flow of control from activity to activity in the system, what activities can be done in parallel, and any alternate paths through the flow. تصف مخطط عمل النظام (business process) و ما هي العمليات التي من الممكن انجازها في نفس الوقت و التفرعات المختلفة لاي قرار They support parallel tasks, which a pure flowchart can’t handle. تدعم التوازي في التنفيذ و هذا لا يتم في ال flowchart العادي

3 [All Professor Assigned]
Initial Node Select Course to Teach Assign Professor to Course Activity Activity Edge (control flow) [All Professor Assigned] [No] Decision Node [Yes] Course Catalogue Fork Node Parallel Actions (or Activities) Place Catalogue In Box Store Mail Catalogue to Students Join Node Open Registration final node

4 Activity Diagram (Cont…):
An activity diagram shows actions and the flow of control and data between them. يعرض النشاطات المختلفة للنظام و تبادل الادوار في ما بينها Action : is a task or procedure that cannot be broken into parts. هو مهمة او عملية لا يمكن تقسيمها الى اجزاء اصغر منها 4

5 Activity Diagrams Use to model
The dynamic aspects of a system (e.g. flow between use cases). The sequential (and possibly concurrent) steps in a computational process. The flow of control of an operation. Comments Focuses on activities driven by internal processing rather than external events. Supports traditional flow chart and data flow approaches. Focuses on how operations will eventually be implemented, not on when operations execute (comparison with statechart).

6 Notation Of Activity Diagrams
Action Node: Rectangle with rounded corners and a meaningful name. مستطيل دائري الاطراف له اسم يعبر عن الوظيفه Action Edge (Control Flow): Open arrow. هوسهم يشير للمهمة التالية التنفيذ Select Course to Teach Select Course to Teach Assign Professor to Course 6

7 Notation Of Activity Diagrams (Cont.)
Initial Node: بداية التنفيذ Black circle. Decision Node or Merge Node: تحديد القرار في النظام و تمثل ايضا دمج اكثر من جزء Diamond. Final Node: نهاية التنفيذ Black circle in white circle. [Yes] [No] 7

8 Branching Decision Node or Merge Node also Called Branching.
تسمى ايضا بالتفرع A branch specifies alternate paths taken based on some Boolean expression. التفرع يحدد المسارات او خيارات التنفيذ التي يمكن اتباعها بناءً على ناتج عملية محددة A branch may have one incoming transition and two or more outgoing ones. قد تحتوي هذا الشكل علي اكثر من مدخل (سهم او اكتر) و واحد او اكثر من مخرج

9 Forking And Joining Use a synchronization bar to specify the forking and joining of parallel flows of control. هي عبارة عن سهم متزامن يوضح التفرع او التجمع لاكثر من عملية تم تنفيذها علي التوازي A synchronization bar is rendered as a thick horizontal or vertical line. يتم تمثيل هذا السهم كخط افقي او رأسي سميك A fork may have one incoming transitions and two or more outgoing transitions but A join may have two or more incoming transitions and one outgoing transition. عملية ال fork لها مدخل واحد و اكثر من مخرج على عكس ال join لها اكثر من مدخل و مخرج واحد فقط

10 Actions carried out in parallel.
Fork Node /Join Node: thick bar. Actions carried out in parallel. Course Catalogue Mail Catalogue to Students Place Catalogue In Box Store 10

11 [All Professor Assigned]
Initial Node Select Course to Teach Assign Professor to Course Activity Activity Edge (control flow) [All Professor Assigned] [No] Decision Node [Yes] Course Catalogue Fork Node Parallel Actions (or Activities) Place Catalogue In Box Store Mail Catalogue to Students Join Node Open Registration final node

12 Notation Of Activity Diagrams (Cont.)
Activity Partitions (Swimlanes): تقسيم المهام (Swimlanes) هو عبارة عن خط رأسي يتم تسمية الجزء المحدد باسم الشخص او القسم او المنظمة المسؤولة عن اداء المهام التابعه لهذا الجزء vertical columns. labelled with the person, organisation, department or system responsible for the activities in that column. To partition the activity states on an activity diagram into groups: الهدف منها هو تقسيم المهام لمجموعات: كل مجموعة توضح مسؤولية جهة محددة عن هذه المهمة و كل مجموعة تدعي swimlanes each group representing the business organization responsible for those activities. each group is called a swimlane. 12

13 Activity Partitions (Swimlanes)
Each swimlane has a name unique within its diagram. كل مجموعة لها اسم يميزها عن البقية على الرسم Each swimlane may represent some real-world entity. كل مجموعة قد تصف او تعرض جزء من نظام او شخص علي الواقع مسؤول من المهمة المحددة Each swimlane may be implemented by one or more classes. Every activity belongs to exactly one swimlane, but transitions may cross lanes. كل activity تنتمي لمجموعة واحدة فقط والاسهم يمكن ان تمر بين اكثر من مجموعة واحدة لاداء المهمة

14 Activity Diagram With Activity Partitions (Swimlanes)
guest reception accounts request room And Date check Agenda advise not Available [No] [Yes] calculate price check Client Credit advise client Credit no good [No] Reservation Pay [Yes]

15 Lab Work The course administrator is responsible for managing course information in the Courseware Management System. As part of managing the course information, the course administrator carries out the following activities: مدير النظام مسؤول من ادارة معلومات المواد علي النظام و كجزء من هذه المهمة عليه اداء الاتي :-

16 Activities Check if course exists.
يتأكدهل المادة المطلوبه موجودة ام لا If course is new, proceed to the "Create Course" step. اذا كانت المادة المدخلة جديدة يقوم بالانتقال لخطوطة اضافة مادة جديدة "Create Course" If course exists, check what operation is desired—whether to modify the course or remove the course. اما اذا كانت المادة موجودة ينظر ما هي العملية المطلوبه عليها هل هي تعديل على يبيانات المادة او حذفها If the modify course operation is selected by the course administrator, the "Modify Course" activity is performed. اذا كانت العملية هي تعديل علي بيانات المادة فيتم تنفيذ هذه المهمة If the remove course operation is selected by the course administrator, the "Remove Course" activity is performed. و اذا كانت العملية حذف المادة فيتم ازالتها من قاعدة البيانات


Download ppt "Activity Diagram."

Similar presentations


Ads by Google