| UML :: Class :: Simple. UML :: CLASS :: SIMPLEÀº Äڵ带·ÎµåÇÏ¿© °£´ÜÇÑ UML Ŭ·¡½º ´ÙÀ̾î±×·¥À» ·»´õ¸µ ÇÒ ¼öÀÖ´Â PERL ¸ðµâÀÔ´Ï´Ù. |
Áö±Ý ´Ù¿î·Îµå |
UML :: Class :: Simple. ¼øÀ§ ¹× ¿ä¾à
- ƯÇã:
- Perl Artistic License
- °Ô½ÃÀÚ À¥»çÀÌÆ®:
- http://search.cpan.org/~agent/OpenResty-0.3.14/lib/OpenResty/Spec/Overview.pod
UML :: Class :: Simple. ű×
UML :: Class :: Simple. ¼³¸í
UML :: Class :: SimpleÀº Äڵ带·ÎµåÇÏ¿© °£´ÜÇÑ UML Ŭ·¡½º ´ÙÀ̾î±×·¥À» ·»´õ¸µ ÇÒ ¼öÀÖ´Â Perl ¸ðµâÀÔ´Ï´Ù. UML :: Class :: SimpleÀº Simple UML Ŭ·¡½º ´ÙÀ̾î±×·¥À» ·»´õ¸µ ÇÒ ¼öÀÖ´Â Perl ¸ðµâÀÔ´Ï´Ù. Synopsis Uml :: Class :: Simple; # @classes = classes_from_runtime ( "ppi", qr / ^ ppi :: /); $ Painter = UML :: Ŭ·¡½º :: ´Ü¼ø -> »õ (@Classes); $ ÆäÀÎÅÍ -> as_png ( 'ppi.png'); # disk @classes = classes_from_files ()¿¡¼ CPAN ¸ðµâ¿¡ ´ëÇÑ Å¬·¡½º ´ÙÀ̾î±×·¥À» »ý¼ºÇÕ´Ï´Ù. $ Painter = UML :: Ŭ·¡½º :: ´Ü¼ø -> »õ (@Classes); # À̹ÌÁö Å©±â $ Painter-> Å©±â (5, 3.6)¸¦ ¸í½Ã ÀûÀ¸·Î ÁöÁ¤ÇÒ ¼ö ÀÖ½À´Ï´Ù. # ÀÎÄ¡ # ... ... ±âº» Á¦¸ñ ¹è°æ»öÀ» º¯°æÇϽʽÿÀ : $ Painter-> node_color ( 'ffffff'); # ±âº»°ªÀº '# F1E1F4'# °ø°³ ¸Þ¼Òµå ¹× ¼Ó¼º ¸¸ $ Painter-> public_only (1)¸¦ Ç¥½ÃÇÕ´Ï´Ù. $ Painter-> as_png ( 'my_module.png'); UML :: Class :: SimpleÀº Perl 5 ¼Ò½º ¶Ç´Â Perl 5 ·±Å¸ÀÓ¿¡¼ UML Ŭ·¡½º ´ÙÀ̾î±×·¥ (PNG Çü½Ä, GIF Çü½Ä ¶Ç´Â µµÆ® ¼Ò½º)À» »ý¼ºÇÏ´Â Perl CPAN ¸ðµâÀÔ´Ï´Ù. .perl °³¹ßÀÚ´ÂÀÌ ¸ðµâÀ» »ç¿ëÇÏ¿© ´ÜÀÏ ¸í·É ¸¸¿¡¸¸ ÀÓÀÇÀÇ ±âÁ¸ Perl Ŭ·¡½º ¶óÀ̺귯¸® (Moose.pm¸¦ ±â¹ÝÀ¸·ÎÇÏ´Â Çö´ë Perl OO ¸ðµâ Æ÷ÇÔ)¿¡ ´ëÇÑ ¿¹»Û Ŭ·¡½º ´ÙÀ̾î±×·¥À» ¾òÀ» ¼ö ÀÖ½À´Ï´Ù. ±â¾÷Àº °á°ú »çÁøÀ» »ç¿ëÇÏ¿© ÇÁ·ÎÁ§Æ® °èÃþÀ» ½Ã°¢ÈÇÏ°í ¹®¼¿¡ Æ÷ÇÔ½Ãų ¼ö ÀÖ½À´Ï´Ù. »ç¿ëÀÚ´Â ´õ ÀÌ»ó ±×¸²À» ±×¸³´Ï´Ù. ÀÚü ¶óÀ̺귯¸®ÀÇ ¼Ò½º Äڵ尡 ¾Æ´Ñ ´Ù¸¥ »ç¾çÀ» Á¦°øÇϵµ·Ï ȸ鿡¼ ¸¶¿ì½º¸¦ ´õ ÀÌ»ó µå·¡±× ÇÒ ÇÊ¿ä°¡ ¾ø½À´Ï´Ù. ±×µéÀÌ ¹¦»çÇÏ°í ½Í¾îÇÏ´Â °Í. ÀÌ ¸ðµâÀº ¸ðµç ÀÛ¾÷À» ¼öÇàÇÕ´Ï´Ù! ¾Ë´Ù½ÃÇÇ, UML :: ½ÃÄö½ºÀÇ Ãâ·Â¿¡ Á¤¸»·Î °¨µ¿Çß½À´Ï´Ù. ±×·¡¼ ³ª´Â ¿¹»Û Ŭ·¡½º ´ÙÀ̾î±×·¥À» ¾ò±â·Î °áÁ¤Çß½À´Ï´Ù. AutodiaÀÇ Graphviz BackendÀÇ À̹ÌÁö´Â ³» ÇÁ¸®Á¨ Å×À̼ÇÀ»À§ÇÑ ½½¶óÀ̵带 ¸¸µé¾úÀ» ¶§ ³» ÇÊ¿ä¿¡ ¸ÂÁö ¾Ê¾Ò½À´Ï´Ù. ³ª´ÂÀÌ ¸ðµâÀÌ Á¦°ø ÇÑ ¸í·É ÁÙ À¯Æ¿¸®Æ¼ UmlClass.plÀ» »ç¿ëÇÏ·Á´Â ´ëºÎºÐÀÇ ½Ã°£À» »ý°¢ÇÕ´Ï´Ù (³ªÃ³·³ ~ÀÇ ÀÚ¼¼ÇÑ ³»¿ëÀº UMLCLASS.PL ¼³¸í¼¸¦ ÂüÁ¶ÇϽʽÿÀ. ¿ä±¸ »çÇ× : ¡¤ Perl.
UML :: Class :: Simple. °ü·Ã ¼ÒÇÁÆ®¿þ¾î