150 likes | 299 Views
UML. Interaction diagrams. Collaboration diagrams Depict behaviour of objects as they interact Sequence diagrams depict the dynamic behaviour of elements that make up a system Both diagrams can represent the same information. Collaboration. Two levels Specification-level
E N D
Interaction diagrams • Collaboration diagrams • Depict behaviour of objects as they interact • Sequence diagrams • depict the dynamic behaviour of elements that make up a system Both diagrams can represent the same information
Collaboration Two levels • Specification-level Shows classes, associations and their messages • Instance-level Shows specific objects links and
Vraag Wat is het verschil tussen sequentie- en collaboratiediagrammen? Wanneer gebruik je de een, en wanneer de ander? Zie pagina 220 boek
State diagrams Describe the state of an element and its transitions Transitions • An element is in a source state. • An event occurs. • An action is performed. • The element enters a target state.
Actions = processing Action: return_var := target.actionname (arguments)
Volgende week Vragen Mail naar jansen@swi.psy.uva.nl