HOME / ¹®¼°øÀ¯ / ¸®Æ÷Æ®/³í¹® / ±â¼ú°øÇÐ
0
0°ÇÀÇ Èı⺸±âUML ÀÎÅÍ·¢¼Ç ´ÙÀ̾î±×·¥ÀÇ ÀÌÇØ¿¡ ´ëÇØ ±â¼úÇÑ ¸®Æ÷Æ® Âü°íÀÚ·áÀÔ´Ï´Ù.
ÀÎÅÍ·¢¼Ç ´ÙÀ̾î±×·¥(interaction diagrams)
ÀÛ¾÷À» ¼öÇàÇϱâ À§Çؼ °´Ã¼µéÀÌ ¸Þ½ÃÁö¸¦ ÅëÇØ ¾î¶»°Ô »óÈ£ÀÛ¿ëÇÏ´ÂÁö¸¦ º¸¿©ÁØ´Ù.
°´Ã¼µéÀÇ µ¿ÀûÀÎ ¸ð½ÀÀ» ¸ðµ¨¸µÇÑ´Ù.
ÀÎÅÍ·¢¼Ç ´ÙÀ̾î±×·¥ÀÇ 2 °¡Áö À¯Çü ½ÃÄö½º ´ÙÀ̾î±×·¥(sequence diagrams)
Ä¿¹Â´ÏÄÉÀÌ¼Ç ´ÙÀ̾î±×·¥(communication diagrams)
ÀÌ Àå¿¡¼´Â Ç¥±â¹ý À§ÁÖ·Î »ìÆ캻´Ù.
´ÙÀ½ Àå¿¡¼ ´ÙÀ̾î±×·¥ »ý¼º ¹æ¹ýÀ» »ìÆ캻´Ù.
1 ½ÃÄö½º ´ÙÀ̾î±×·¥ ÀÏÁ¾ÀÇ ¿ïŸ¸® Çü½Ä »óÈ£ÀÛ¿ëÀ» º¸¿©ÁÜ »õ·Î¿î °´Ã¼°¡ ¿À¸¥ÂÊÀ¸·Î Ãß°¡µÊ : a myb : b doone dotwo dothree public class a {
private b myb new b( ); public void doone( ) {
myb.dotwo( ); myb.dothree( ); } } 2 Ä¿¹Â´ÏÄÉÀÌ¼Ç ´ÙÀ̾î±×·¥
±×·¡ÇÁ³ª ³×Æ®¿öÅ© Çü½ÄÀ¸·Î °´Ã¼ »óÈ£ÀÛ¿ëÀ» º¸¿©ÁÜ
°´Ã¼µéÀº ¾î´À °÷¿¡µµ À§Ä¡ÇÒ ¼ö ÀÖÀ½ : a myb : b 1: dotwo 2: dothree doone 3 ½ÃÄö½º/Ä¿¹Â´ÏÄÉÀÌ¼Ç ´ÙÀ̾î±×·¥ÀÇ Àå´ÜÁ¡ ½ÃÄö½º ´ÙÀ̾î±×·¥sequence diagrams
°´Ã¼µé »çÀÌÀÇ ¸Þ½ÃÁö ¼ø¼¸¦ ¸íÈ®ÇÏ°Ô º¸¿©ÁØ´Ù.
Ä¿¹Â´ÏÄÉÀÌ¼Ç ´ÙÀ̾î±×·¥
º¸´Ù °æÁ¦ÀûÀÎ °ø°£ È°¿ëÀ» ÇÑ´Ù.
°´Ã¼°¡ ¸¹À» ¶§ À¯¿ëÇÔ 4 ½ÃÄö½º ´ÙÀ̾î±×·¥ ¿¹Á¦: makepayment : register : sale makepayment(cashtendered) makepayment(cashtendered) : payment create(cashtendered) public class sale { private payment payment;
public void makepayment( money cashtendered ) { payment new payment( cashtendered );
// ¡¦ } // ¡¦ } 5 Ä¿¹Â´ÏÄÉÀÌ¼Ç ´ÙÀ̾î±×·¥ ¿¹Á¦: makepayment 1: makepayment(cashtendered)
1.1: create(cashtendered)
:register :sale :payment makepayment(cashtendered) direction of message 6 sales: arraylist<sale> :sale s1 : sale
lifeline box representing an instance of an arraylist class, parameterized (templatized) to hold sale objects
lifeline box representing an unnamed instance of class sale
lifeline box representing a named instance sales[ i ] : sale
lifeline box representing one instance of class sale, selected from the sales arraylist <sale> collection
x : list
«metaclass?
lifeline box representing the class font, or more precisely, that font is an instance of class class-an instance of a metaclass
related example list is an interface
in uml 1.x we could not use an interface here, but in uml 2, this (or an abstract class) is legal
<<metaclass>> font 7 ½Ì±ÛÅÏ ÆÐÅÏ(singleton pattern) ÇÑ Å¬·¡½ºÀÇ ÀνºÅϽº°¡ ¿ÀÁ÷ ÇÑ °³ : register 1 : store doa dox (ÀÌÇÏ »ý·«)
¹ÞÀº º°Á¡
0/5
0°³ÀÇ º°Á¡
¹®¼°øÀ¯ ÀڷḦ µî·ÏÇØ ÁÖ¼¼¿ä.
¹®¼°øÀ¯ Æ÷ÀÎÆ®¿Í Çö±ÝÀ» µå¸³´Ï´Ù.
Æ÷ÀÎÆ® : ÀÚ·á 1°Ç´ç ÃÖ´ë 5,000P Áö±Þ
Çö±Ý : ÀÚ·á 1°Ç´ç ÃÖ´ë 2,000¿ø Áö±Þ