DOC PREVIEW
SJSU CMPE 133 - CmpE133-SSE-L02d-AD

This preview shows page 1-2-15-16-17-32-33 out of 33 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 33 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 33 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 33 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 33 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 33 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 33 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 33 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 33 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

Software System EngineeringSlide 2Slide 3Activity DiagramNotationNotation - 2Notation - 3Slide 8Notation - 4Slide 10Activity Diagrams (1)Activity Diagrams (2)Action States and Activity StatesTransitions (1)Transitions (2)Activity Diagram: Example (1)Branching (1)Branching (2)Activity Diagram: Example (2)Forking and JoiningForkJoinSlide 23Activity Diagram: Example (3)Activity Diagram: Example (4)Activity Diagram: Example (5)Activity Diagram: Example (6)Activity Diagram: Example (7)Swimlanes (1)Swimlanes (2)Activity Diagram: Example (8)Activity Diagram: Example (9)Discussion Questions1999 – 2006 M.E. FayadSJSU -- CmpESoftware System Engineering Dr. M.E. Fayad, ProfessorComputer Engineering Department, Room #283I College of EngineeringSan José State UniversityOne Washington SquareSan José, CA 95192-0180 http://www.engr.sjsu.edu/~fayad1999 – 2006 M.E. FayadSJSU – CmpE --- M.E. Fayad L02-d-S2 Activity Diagrams2Lesson 02-D:Activity Diagrams1999 – 2006 M.E. FayadSJSU – CmpE --- M.E. Fayad L02-d-S3 Activity Diagrams Lesson ObjectivesObjectives3 Discuss and understand activity diagrams Understand the elements of activity diagrams Activity Transition Synch. Bar Decision Diamond Start & Stop Markers1999 – 2006 M.E. FayadSJSU – CmpE --- M.E. Fayad L02-d-S4 Activity DiagramsDescribes how activities are coordinated.Is particularly useful when you know that an operation has to achieve a number of different things, and you want to model what the essential dependencies between them are, before you decide in what order to do them.Records the dependencies between activities, such as which things can happen in parallel and what must be finished before something else can start.Represents the workflow of the process.4Activity Diagram1999 – 2006 M.E. FayadSJSU – CmpE --- M.E. Fayad L02-d-S5 Activity Diagrams5NotationActivity1()c Activity2()1. Activities2. Transition1999 – 2006 M.E. FayadSJSU – CmpE --- M.E. Fayad L02-d-S6 Activity Diagrams6Notation - 2Activity1()c[x>0][x=0][x<0][x>0][x=0][x<0]3. Decision Diamond1999 – 2006 M.E. FayadSJSU – CmpE --- M.E. Fayad L02-d-S7 Activity Diagrams7Notation - 34.1 Synch. Bar (Join)4.2 Splitting Bar (Fork){AND}{OR}{XOR}1999 – 2006 M.E. FayadSJSU – CmpE --- M.E. Fayad L02-d-S8 Activity Diagrams8Notation - 35. Start & Stop MarkersStart MarkerStop Marker1999 – 2006 M.E. FayadSJSU – CmpE --- M.E. Fayad L02-d-S9 Activity Diagrams9Notation - 4Application/Department/Group/Role BoundariesDevelopers Testers MarkersSwimlane SwimlaneSwimlane1999 – 2006 M.E. FayadSJSU – CmpE --- M.E. Fayad L02-d-S10 Activity Diagrams10Example: Business Level Activity Diagram of the Librarymember Librarian[borrower][returner]Find book on shelfWait in queuePrepare for next memberRecord borrowingRecord returnPut book back of shelf[returning][borrowing]1999 – 2006 M.E. FayadSJSU – CmpE --- M.E. Fayad L02-d-S11 Activity DiagramsTo model the dynamic aspects of a systemIt is essentially a flowchart–Showing flow of control from activity to activityPurpose–Model business workflows–Model operations11Activity Diagrams (1)1999 – 2006 M.E. FayadSJSU – CmpE --- M.E. Fayad L02-d-S12 Activity DiagramsActivity diagrams commonly contain–Activity states and action states–Transitions–Objects12Activity Diagrams (2)1999 – 2006 M.E. FayadSJSU – CmpE --- M.E. Fayad L02-d-S13 Activity DiagramsAction states are atomic and cannot be decomposed–Work of the action state is not interruptedActivity states can be further decomposed–Their activity being represented by other activity diagrams–They may be interrupted13Action States and Activity States1999 – 2006 M.E. FayadSJSU – CmpE --- M.E. Fayad L02-d-S14 Activity DiagramsWhen the action or activity of a state completes, flow of control passes immediately to the next action or activity stateA flow of control has to start and end someplace–initial state -- a solid ball–stop state -- a solid ball inside a circle14Transitions (1)1999 – 2006 M.E. FayadSJSU – CmpE --- M.E. Fayad L02-d-S15 Activity Diagrams15Transitions (2)1999 – 2006 M.E. FayadSJSU – CmpE --- M.E. Fayad L02-d-S16 Activity Diagrams16Activity Diagram: Example (1)1999 – 2006 M.E. FayadSJSU – CmpE --- M.E. Fayad L02-d-S17 Activity DiagramsA branch specifies alternate paths taken based on some Boolean expressionA branch may have one incoming transition and two or more outgoing ones17Branching (1)1999 – 2006 M.E. FayadSJSU – CmpE --- M.E. Fayad L02-d-S18 Activity Diagrams18Branching (2)1999 – 2006 M.E. FayadSJSU – CmpE --- M.E. Fayad L02-d-S19 Activity Diagrams19Activity Diagram: Example (2)1999 – 2006 M.E. FayadSJSU – CmpE --- M.E. Fayad L02-d-S20 Activity Diagrams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 line20Forking and Joining1999 – 2006 M.E. FayadSJSU – CmpE --- M.E. Fayad L02-d-S21 Activity DiagramsA fork may have one incoming transitions and two or more outgoing transitions–each transition represents an independent flow of control–conceptually, the activities of each of outgoing transitions are concurrent•either truly concurrent (multiple nodes)•or sequential yet interleaved (one node)21Fork1999 – 2006 M.E. FayadSJSU – CmpE --- M.E. Fayad L02-d-S22 Activity DiagramsA join may have two or more incoming transitions and one outgoing transition–above the join, the activities associated with each of these paths continues in parallel–at the join, the concurrent flows synchronize•each waits until all incoming flows have reached the join, at which point one flow of control continues on below the join22Join1999 – 2006 M.E. FayadSJSU – CmpE --- M.E. Fayad L02-d-S23 Activity Diagrams23Fork1999 – 2006 M.E. FayadSJSU – CmpE --- M.E. Fayad L02-d-S24 Activity Diagrams24Activity Diagram: Example (3)1999 – 2006 M.E. FayadSJSU – CmpE --- M.E. Fayad L02-d-S25 Activity Diagrams25Activity Diagram: Example (4)1999 – 2006 M.E. FayadSJSU – CmpE --- M.E. Fayad L02-d-S26 Activity Diagrams26Activity Diagram: Example (5)1999 – 2006 M.E. FayadSJSU – CmpE --- M.E. Fayad L02-d-S27 Activity Diagrams27Activity Diagram: Example (6)1999 – 2006 M.E. FayadSJSU – CmpE --- M.E. Fayad L02-d-S28 Activity Diagrams28Activity Diagram: Example (7)1999 – 2006 M.E. FayadSJSU – CmpE --- M.E. Fayad


View Full Document

SJSU CMPE 133 - CmpE133-SSE-L02d-AD

Download CmpE133-SSE-L02d-AD
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view CmpE133-SSE-L02d-AD and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view CmpE133-SSE-L02d-AD 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?