OCUP Miscellaneous basic notions
Jump to navigation
Jump to search
Notation Basics⌘
Diagram frame⌘
- Consist of a rectangle containing a header
- The header contains the diagram type (optional), name and parameter (optional)
Data type⌘
A data type is a type whose instances are identified only by their value - two instances with the same value are indistinguishable.
A DataType may contain attributes to support the modeling of structured data types.
PrimitiveType⌘
A primitive type defines a predefined data type, without any relevant substructure.
Four instances of primitive type:
- Boolean (true, false)
- Integer (..., -1, 0, 1, ...) symbol for infinity - *
- UnlimitedNatural (0, 1, 2, ...)
- String
Enumeration⌘
An enumeration is a data type whose values are enumerated in the model as enumeration literals.
Stereotype⌘
- Formal extensions to existing model elements
- They do not introduce new elements
- They add semantics to existing model elements
- Elements can have multiple stereotypes
- Stereotype name goes above or before element name enclosed in «»
- special character not a pair of < or >
- Graphical symbols can be used to replace «»
- List of standard UML stereotypes: UML 2 Spec, Annex C: Standard Stereotypes
Questions⌘
- Which data types are known in UML and what are they called?
- What information is shown in a diagram header?
- What is a stereotype? Does it define a new element?





