Final Material - System Modelling Using UML Diagrams Flashcards
What is the difference between structural and behavioural UML diagrams?
Structural diagrams present a static view of the system using objects, attributes, operations, and relationships
Behavioural diagrams present a dynamic view of the system showing collaborations among objects and changes to the internal state of objects
What is the purpose of a class diagram?
To show the classes in a system and the relationship between the classes
What is an association relationship in UML class diagrams?
Shows a has-a relationship between classes. It is represented by a line sometimes with an arrow and a name for the relationship which is usually a verb
What is an aggregation relationship in UML class diagrams?
A part-whole relationship, subset of association. The part may exist independent of the whole and can belong to more than one whole. It is represented with a hollow diamond at the “whole” end
What is a composition relationship in UML class diagrams?
A part-whole relationship, subset of association. Stronger version of aggregation. A part can not exist independent of the whole and can only belong to one whole. It is represented by a filled diamond at the “whole” end
What is multiplicity in UML class diagrams?
Defines the number of times a class is associated with another class
What is a generalization relationship in UML class diagrams?
Represents a parent-child relationship. Allows us to group characteristics into general classes and then make more specified forms. Represented by and open triangle pointing to the generalized class
What is the purpose of a sequence diagram?
Used to model interactions between actors and objects within a system
What is an activation box in a sequence diagram?
They indicate when an object is active or inactive
What is an alternative frame in a sequence diagram?
Provide a choice between two alternative sequences of actions (like else-if block)
What is a lifeline in a sequence diagram?
The path the program takes between each actor and the objects