Comp Sci: UML

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/15

encourage image

There's no tags or description

Looks like no tags are added yet.

16 Terms

1
New cards

Sequence diagrams and what it shows?

It shows dynamic communications. The diagram shows behavior as it happens and shows messages being sent between different objects or participants. Time progresses top to bottom. It shows methods calls with horizontal arrows.

2
New cards

Communication/Collaboration Diagram

Objects can be put anywhere. So method calls are numbered to show their ordering.

3
New cards

Example of a communication/collaboration diagram

knowt flashcard image
4
New cards

Sequence diagrams vs. Communication/Collaboration Diagrams

Sequence diagrams: easier to see sequence of method calls over time. More expressive UML notation. Better support from many tools.
Communication/Collaboration Diagrams: Easier to fit on limited space. Easier to change as you improve your understanding.

5
New cards

How to read a communication diagram?

The makePayment(cash) method is called from a Register object. The Register object then calls the method in the Sale object which then runs it. The Sale object creates a new object called Payment.

<p>The makePayment(cash) method is called from a Register object. The Register object then calls the method in the Sale object which then runs it. The Sale object creates a new object called Payment. </p>
6
New cards

Activity diagrams

Show the activities/steps that take place. It is done to implement a use case and to describe the logic of how some operation works.

7
New cards

Activity diagram symbols

knowt flashcard image
8
New cards

Activity diagram connectors

knowt flashcard image
9
New cards

Example of an activity diagram

knowt flashcard image
10
New cards

Activity Diagram showing fork and join notation

knowt flashcard image
11
New cards

State Diagrams

Called Statechart Diagrams and also called State Machine Diagrams. It is used if the state of the system is important and states that the system can be in.
Transitions that cause it to change.

12
New cards

Basic UML state diagram

knowt flashcard image
13
New cards

What state diagrams show?

It shows the different states that the system can be in during its lifetime and the events/transitions that cause it to change from one state to another. Mostly used for systems that are reactive (the state they are in is important and they sit in a state until an event occurs that cause them to change to another state).

14
New cards

Differences between activity and state diagrams

State diagrams shows how a system changes over its lifetime. Useful when the state of the system is important. Needs an external event to take place in order to move from one node to the next node along an arrow. Activity diagram shows the flow of actions that take place in a specific task. Useful when the steps in a task, and their ordering is important. Always goes along an arrow from one node to the next as soon as a node finishes what it was doing.

15
New cards

UML packages

Drawn as a rectangle with a smaller tab at the upper left. Used to show the high level organization of a project. Packages group elements. A dashed arrow between packages indicates a dependency (X depends on Y if X calls one of Y’s methods, or any of its instance variables is a Y object.)

16
New cards

Example of dependencies shown in UML package diagram

knowt flashcard image