Академический Документы
Профессиональный Документы
Культура Документы
Diagramas de Secuencia Los Diagramas de Secuencias muestran la forma en que un grupo de objetos se comunican (interactan) entre s a lo largo del tiempo Un Diagrama de Secuencia consta de objetos, mensajes entre estos objetos y una lnea de vida del objeto representada por una lnea vertical
Qu tiene que ver un diagrama de secuencias con la fbula de los tres cerditos?
(Gracias Ken Howard) http://kenhoward01.blogspot.com/2008/06/three-little-pigs-in-uml.html
5
Fuente: http://kenhoward01.blogspot.com/2008/06/three-little-pigs-in-uml.html
Comentario
Mensaje
Recordar Etiquetas
Pila de Llamada
Retorno Explcito
7
Fuente: http://www.tracemodeler.com/articles/pimp-my-diagram-three-little-pigs/
8
Fuente: http://www.tracemodeler.com/articles/pimp-my-diagram-three-little-pigs/
Mensaje a si mismo
Recordar Etiquetas
Mensaje Asncrono
10
protected void doPaint(Painter painter) { painter.drawRect(x, y, width, height); // Cause painting of shapes to be relative to this shape painter.translate(x, y); for (Shape s : shapes) { s.paint(painter); }
Argumentos del Mensaje Origen del Mensaje Indeterminado Destino del Mensaje Indeterminado Repeticin * mientras / para [condicin]
12
Recordar Etiquetas
protected void doPaint(Painter painter, Config config) { painter.drawRect(x, y, width, height); // Cause painting of shapes to be relative to this shape painter.translate(x, y); for (Shape s : shapes) { Rectangle clip = s.getClip(); painter.setClip(clip); s.paint(painter); } // Restore graphics origin painter.translate(-x, -y); }
13
Valor de Retorno
Recordar Etiquetas
protected void doPaint(Painter painter, Config config) { painter.drawRect(x, y, width, height); // Cause painting of shapes to be relative to this shape boolean translate = config.needsTranslation(); if (translate) { painter.translate(x, y); } for (Shape s : shapes) { s.paint(painter); }
15
Condicional [condicin]
16
protected void doPaint(Painter painter, Config config) { painter.drawRect(x, y, width, height); // Cause painting of shapes to be relative to this shape boolean translate = config.needsTranslation(); if (translate) { painter.setTransformsEnabled(true); painter.translate(x, y); } for (Shape s : shapes) { s.paint(painter); } }
17
18
20
21
22
23
Gracias
Gracias!
24