Podcast
Questions and Answers
What is represented by a note in an activity diagram in UML?
What is represented by a note in an activity diagram in UML?
How are notes attached to the model elements in activity diagrams?
How are notes attached to the model elements in activity diagrams?
What is represented by a pair of square brackets in an activity diagram?
What is represented by a pair of square brackets in an activity diagram?
What does a merge node do in an activity diagram?
What does a merge node do in an activity diagram?
Signup and view all the answers
How is the flow between activities constrained in UML activity diagrams?
How is the flow between activities constrained in UML activity diagrams?
Signup and view all the answers
How is concurrency achieved in activity diagrams?
How is concurrency achieved in activity diagrams?
Signup and view all the answers
What is the central process involved in making a hot drink?
What is the central process involved in making a hot drink?
Signup and view all the answers
In an activity diagram, how are activities typically represented?
In an activity diagram, how are activities typically represented?
Signup and view all the answers
What do completed activities trigger in an activity diagram?
What do completed activities trigger in an activity diagram?
Signup and view all the answers
Which symbol represents a decision point in an activity diagram?
Which symbol represents a decision point in an activity diagram?
Signup and view all the answers
What do start and stop nodes represent in an activity diagram?
What do start and stop nodes represent in an activity diagram?
Signup and view all the answers
Which element in an activity diagram denotes a fork?
Which element in an activity diagram denotes a fork?
Signup and view all the answers
What is the purpose of redrawing the activity diagram in Example 3?
What is the purpose of redrawing the activity diagram in Example 3?
Signup and view all the answers
In Example 4, what new choice is introduced in the activity diagram for preparing a pot of tea?
In Example 4, what new choice is introduced in the activity diagram for preparing a pot of tea?
Signup and view all the answers
What is expected of a library member in the borrowing process according to the text?
What is expected of a library member in the borrowing process according to the text?
Signup and view all the answers
What action does the librarian take if a member fails to bring a borrowed book back on time?
What action does the librarian take if a member fails to bring a borrowed book back on time?
Signup and view all the answers
What does the possession of a book during the loan period signify?
What does the possession of a book during the loan period signify?
Signup and view all the answers
What happens if a library member waits in line but then decides not to borrow any book?
What happens if a library member waits in line but then decides not to borrow any book?
Signup and view all the answers
Study Notes
Activity Diagrams
- An activity diagram is a type of UML diagram that shows the flow of activities and decisions in a system.
Elements and Symbols
- Activities are shown as rounded boxes.
- Transitions are shown as lines with arrows.
- Start and stop nodes are represented as filled circles.
- Synchronization bars are denoted by thick horizontal lines and used to show concurrent activities.
Notes and Annotations
- A note (with annotation) is shown as a rectangle with the top right-hand corner folded down.
- A dashed line is used to attach the note to the model element to which it refers.
Decision and Merge Nodes
- A diamond shape is used as a decision node, which represents a Boolean test (guard) that determines which path to take.
- One outgoing transition from a decision node should always be taken, meaning exactly one of the relevant guards must always evaluate to true.
- A diamond shape is also used as a merge node, which brings together alternative mutually exclusive flows.
Workflow and Activities
- Workflow is defined as a sequence of activities that produces a result of observable value.
- An activity has only one transition into and out of it, which is enforced by decision and merge nodes for alternative outgoing and incoming transitions, and by synchronization bars for concurrent outgoing (fork) and incoming (join) transitions.
Examples of Activity Diagrams
- Preparing a cup of coffee, with the ability to check if the cup is clean and wash it if necessary.
- Preparing a cup of coffee, with the choice of coffee with milk or coffee without milk.
- Preparing a pot of tea, with the choice of milk and sugar when the tea is poured.
- The lending process from a library, including borrowing and returning books.
Studying That Suits You
Use AI to generate personalized quizzes and flashcards to suit your learning preferences.
Description
Test your knowledge on UML activity diagrams and notes. Practice redrawing activity diagrams with specific examples like preparing a cup of coffee and checking if the cup is clean.