UML Primitive Modeling Elements Flashcards
What is UML
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
What is a use case diagram?
Takes the actors perspective to communicate requirements of functionality, what needs to be done
What is a UML class diagram?
It destructive a the structure of a data model by visualising classes their methods, attributes and relations to other classes
How do UML class diagrams show inheritance?
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
What other relationships can UML class diagrams show
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
example of UML CLASS DIAGRAM RELATIONSHIPS
Aggregation- the class airport is an aggregation of the classes runway, hangar and terminal Composition - a polygon and it’s component arcs and nodes
What symbols are used for multiplicity in UML Class diagrams
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