Activity Diagrams

5
Activity Diagrams Dan Fleck Coming up: Activity Diagram

description

Activity Diagrams. Dan Fleck. Activity Diagram. Supplements the use-case by providing a diagrammatic representation of procedural flow Details: Start is a single circle End is a bulls-eye Decisions are diamonds (guards must be on both branches of the diamond!) Questions: - PowerPoint PPT Presentation

Transcript of Activity Diagrams

Page 1: Activity Diagrams

Activity DiagramsDan Fleck

Coming up: Activity Diagram

Page 2: Activity Diagrams

Activity Diagram

Coming up: Swimlane Diagrams

Supplements the use-case Supplements the use-case by providing a diagrammatic by providing a diagrammatic representation of procedural representation of procedural flowflow

Details:Details:

-Start is a single circleStart is a single circle

-End is a bulls-eyeEnd is a bulls-eye

-Decisions are diamonds Decisions are diamonds (guards must be on both (guards must be on both branches of the diamond!)branches of the diamond!)

Questions:Questions:

Do we always have a start?Do we always have a start?

Do we always have an end?Do we always have an end?

How might we make this How might we make this better?better?

Page 3: Activity Diagrams

Swimlane Diagrams

Coming up: Activity Diagram Example

Allows the modeler to Allows the modeler to represent the flow of represent the flow of activities described by the activities described by the use-case and at the same use-case and at the same time indicate which actor time indicate which actor (if there are multiple (if there are multiple actors involved in a actors involved in a specific use-case) or specific use-case) or analysis class has analysis class has responsibility for the responsibility for the action described by an action described by an activity rectangleactivity rectangle

Page 4: Activity Diagrams

Activity Diagram Example

- To show concurrent activity, activity diagrams allow branches and joins.

- You can also reference or include other activity diagrams

Coming up: Lets Try It

Fork/Branch

Join

Page 5: Activity Diagrams

Lets Try ItLets create a swimlane activity diagram for opening a Lemonade stand.Let’s create a swimlane diagram to apply for and get a job when you graduate.Software that translates voice commands into user input (for whatever OS you use)Let’s create a swimlane diagram for withdrawing money from an ATM. – Nope – this is essentially the homework for next week!

End of presentation