Title: UML 2 in a nushell
1UML 2 in a nushell
- Based on a paper by Birger Møller-Pedersen,
Øystein Haugen, Thomas Weigert.
2The Acess System Domain a class diagram
Note there are no parts i.e. instances here
3The context as a Collaboration
multiplicity
Connector
Role
Note there are no classes here, only a structure
of part properties called roles!
4Collaboration diagrams
- A collaboration with three roles and three
collaboration uses - may define a service structure
- TypeA must be compatible with (the semantic
interface) TypeX - Compatibility means that the role behaviours must
be contained in the total behaviour of the actor
how is a semantic variation point in UML2
5Behaviour can be in three places
- The collaboration itself
- The roles
- The context (scope) of the collaboration
Service
roleX
roleY
roleBtypeB
roleAtypeA
roleX
roleY
roleY
roleCtypeC
roleX
6The Taxi System with interfaces bound as
collaboration uses
This is a composite class with parts. Each part
shall satisfy the roles bound to it
7Collaborations for interface definitions
Reusable definitions not bound to a system
8A composite class the AC system
Port
Connector
Part
9Entry
10Console and Access point
11State machine Panel
12Alternatively
13Entry and exit
14Using entry and exit
15A Sequence diagram
Message
Timeline
16Combined fragments
Decomposition
Combined Fragment
Combined Fragment
Continuation
Continuation
17User Access
18Pin Change
19New User
20Decomposition
21Another example