UML Primitive Modeling Elements Flashcards

1
Q

What is UML

A

Unified modelling language is a visual language for representing data models.
It was first developed in 1990 and widely used since 2000 and iso standard
It is diagram based
Used for human-human communication

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is a use case diagram?

A

Takes the actors perspective to communicate requirements of functionality, what needs to be done

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is a UML class diagram?

A

It destructive a the structure of a data model by visualising classes their methods, attributes and relations to other classes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How do UML class diagrams show inheritance?

A
Class b inherits the properties attributes, methods of class a
Everything that holds true for a holds true for b
White triangle points towards a from b
Is a transitive relation
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What other relationships can UML class diagrams show

A
Association- a named uni or bi directional link between classes
 Aggregation - class a is the whole class b contains part(open white diamond points to a)
- if one prt of an aggregation is deleted the whole is not necessarily deleted, if the whole is deleted the part may not jbe
Composition - a stronger form of aggregation. The parts and the whole depend on each other
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

example of UML CLASS DIAGRAM RELATIONSHIPS

A
Aggregation- the class airport is an aggregation of the classes runway, hangar and terminal
Composition - a polygon and it’s component arcs and nodes
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What symbols are used for multiplicity in UML Class diagrams

A
0...1 no instance or one
1 always 1 
0 *or* ... zero or more instances 
1 *or* one or more instances
1:1 one-to-one cardinality
1:n One to many cardinality
M:n any number to any number
How well did you know this?
1
Not at all
2
3
4
5
Perfectly