Interaction diagrams • describe how groups of objects interact • typically describe the scenario of a single use case • show – example objects – messages between them – timeline
UML-Interaction Diagrams 3
Sequence diagrams • shows object interactions arranged in time sequence – objects (and classes) – message exchange to carry out the scenarios functionality
• time line
UML-Interaction Diagrams 4
Objects in UML • Rectangle • Name (specific or general) of object is underlined – name – name & class – class (anonymous object)
Object Name History 101-Section 2 Object Name and Class History 101-Section 7: CourseOffering Class Name : CourseOffering UML-Interaction Diagrams 5
Time lines • Messages point from client to supplier CourseManager : Professor
Math 101 - Section_1 : CourseOffering
Add professor (Professor)
UML-Interaction Diagrams 6
Example: Sequence diagram
course form : CourseForm
: Registrar
aCourse : Course
theManager : CurriculumManager
1 : set course info 2 : process 3 : add course 4 : new course
UML-Interaction Diagrams 7
Sequence diagrams: More details Object creation
Iteration an Order Entry window
Condition
an Order
1: prepare()
a Stock Item
2: * prepare()
an Order Line
3: check()
4: [check = true] remove()
Asynchronous Message
5: needsToReorder()
X Object deletion
Activation
UML-Interaction Diagrams 8
Sequence diagrams : concurrent processes A Transaction
A Transaction Coordinator Transaction checker A
Transaction checker B
All done ? All done ?
UML-Interaction Diagrams 9
Self call
Asynchronous messages • Do not block the caller • Can do 3 things: – Create a new thread – Create a new object – Communicate with a thread that is already running
UML-Interaction Diagrams 10
Boundary classes • Handle communication between system and outside world – e.g. user interface or other system
• Boundary classes in interaction diagrams: – capture interface requirements – do NOT show how the interface will be implemented
UML-Interaction Diagrams 11
Complexity and sequence diagrams • KISS = keep it small and simple • Diagrams are meant to make things clear • Conditional logic – simple: add it to the diagram – complex: draw separate diagrams
Collaboration diagrams • Show objects and messages • Sequence of messages determined by numbering – 1, 2, 3, 4, ….. – 1, 1.1, 1.2, 1.3, 2, 2.1, 2.1.1, 2.2, 3 (shows which operation calls which other operation)
UML-Interaction Diagrams 14
Collaboration diagram basics
: ProfessorCourseManager 1 : Add professor (Professor)
Math 101 - Section 1 : CourseOffering
UML-Interaction Diagrams 15
Collaboration diagram example 1 : set course info 2 : process
course form : CourseForm
: Registrar
3 : add course
theManager : CurriculumManager
aCourse : Course 4 : new course
UML-Interaction Diagrams 16
Comparing sequence & collaboration diagrams • Sequence of messages more difficult to understand in collaboration diagrams • Layout of collaboration diagrams may show static connections of objects • Complex control is difficult to express
Affecter les bonnes responsabilités Disponibilité exemplaire
Vérification titre
Emprunter Nouvel emprunt
Exemplaire emprunté
UML-Interaction Diagrams 18
Mon o po l y 30 /1 1/20 0 1 a ch ete ter rai n s chi ttl y co ud ry g ro up e 3
ca s e
Mon o po l y
j ou e ur donne la valeur du terrain
demande d'achat vérifie la disponibilité
-Objet Monopoly trop général !? -début du scénario ? Génération spontané - ne pas mélanger joueur physique avec s
vérifie la somme que possède le joueur
paye terrain
attribue terrain
UML-Interaction Diagrams 19
Di a g ra m m e d e s é q u e n ce s 0 5 /1 1 /2 0 0 1 Ac h a t p ro p ri é té
i n te rfa ce
Pro p rié té s
Jo u e u rs
Jo u e u r
Achat propriété
Propriété libre?
- pas trop de retour explicite
Confirmation
- génération spontanée ? Assez argent?
Confirmation
Propriété vendue
Comfirmation
UML-Interaction Diagrams 20
Mo n op o ly 0 3/1 2 /2 0 01 d i a gra m m e d e s é q ue n ce n °5 jo u eu r j ou e , p a s s e pa r ca s e d é pa rt e t tom b e che z l ui
cou p l e d e d és
i nte rface
b a nq u ie r
j o ue u r
cas e
co ns tru cti b le
te rrai n
p ro pri é té
d ép a rt
appelle
jette vérifie si passage par case départ donne 20KF
retire 20KF
regarde où tombe joueur
définie case où tombe joueur définit terrain où tombe joueur
-pas d’interaction entre objets, (interface objet principal !? En tous cas pas au niveau de l’analyse. -met en évidence un certain fouillis dans la description des propriétés
vérifie si propriété est libre vérifie si joueur à autre propriété de même couleur
Not only does this give us a vector space structure on Tx but it makes ^U an isomorphism. We will make use of this isomorphism later, so it is worth summarizing ...
Passing data to Excel 2007 application . ... Simple 12-bit digitizing system . ... The simple device driver for the parallel port . .... Configuring IIS and ASP. NET .
effect of power arcs should be considered in the design of metal fittings. ..... bonded to the core, then it shall be removed and the remaining core thoroughly ...
Dimensions, interior and exterior, 14 .... The Mark IV series of the British Ford Zephyr and Zodiac models were ... Compact six-cylinder 249Scc (2 S-litre) engine arranged in 60 degrees ... Iically operated disc brakes are fitted on all wheels and a
Advantages and disadvantages of FRP composite ... 2.6. Applications of FRP strengthening. 36. 2.7 ... Fatigue of long span plated 2.3m beams using FRP plates.
Milestones in the life of François Malkovsky. 13. Seeking a new dance. 23. “To dance” by Malkovsky. 29. A “harmonious” dance: the logic of harmony. 31.
22 1. 223. 226. 229. Singular elements by mapping for fracture mechanics, etc. 234 ... Incompressible materials, mixed methods and other procedures of solution.
Jul 10, 2010 - The following text is a piece of my forthcoming book (updated with respect to .... violated without this arousing much discussion (§§Erreur ! Source du renvoi introuvable.,Erreur ! Source du renvoi introuvable.). We have seen that ..
Axiom Event dec : â e e' : Event, {e = e'}+{e = e'}. Definition Object := Var + Event. Values. Parameter Val : Set. Axiom Val dec : â x y : Val, {x = y}+{x = y}.
superclass is the generalized class, while the subclasses are specified classes. ..... Listed are the core metadata elements required to identify a dataset, typically for ..... Figure A.11 defines metadata about the portrayal catalogue(s) used to dis
Toggle Low. Lid must be closed and locked for this to be enabled. Speed Spin. Note: The basket must be empty for this function. 011. Toggle Mid. Lid must be ...
Simple thermostat system . ... Measuring temperature with the DS1722 digital sensor . ..... Simple remote control system using FM transmitter and receiver .
any sufficiently regular one-scale function u(x) and two-scale function v(Ëx,y), .... spectrum for an N-cantilevers array, we suggest to operate a truncation in the mode list so that to retain a simple infinity of ...... spond to the Tellegen theore
Annex J (informative) Multilingual support for free text metadata element. .... determining data fitness for use, data access, data transfer, and use of digital data); .... superclass is the generalized class, while the subclasses are specified class
The most natural configuration for an audio system in the automobile places the ... electrical environment in an automobile is one that is inherently noisy and filled .... Aux Out: Auxiliary output to provide conditioned signal for another amp. 10.
audio.mp3â]. Want to know what somebody is called? You have three main ways to do that: You can ask: â« Comment s'appelle-t-il/elle? What is his/her name?
here, generalises the Theorem of Schinzel, in what concerns the number n .... a projective space Pn and defined over some algebraically closed field K, the .... We are ready now to define the height of an algebraic number α. ...... we form the row .
approximately 3000V. ... When repackaging main control assembly in anti-static bag, observe above instructions. ...... the following notes to identify the switch(es).