Component ´ÙÀ̾î±×·¥ ¸ðµ¨¸µÇϱâ
Component ´ÙÀ̾î±×·¥¿¡¼ ÆíÁýÇÒ ¼ö ÀÖ´Â ¿ä¼ÒµéÀº ´ÙÀ½°ú °°½À´Ï´Ù.
- Package
- Interface
- Component
- ComponentInstance
- Artifact
- Port
- Part
- Association
- Dependency
- Realization
- Link
- Connector
Package
ÆÐÅ°Áö(Package)´Â ¸ðµ¨ ¿ä¼ÒµéÀ» ³í¸®ÀûÀ¸·Î ±×·ìÈÇÏ¿© °ü¸®Çϱâ À§ÇÑ ¿ä¼ÒÀÔ´Ï´Ù. ÆÐÅ°Áö´Â ¿ä¼ÒµéÀ» Á¶Á÷ÈÇϱâ À§ÇÑ ¾î¶°ÇÑ ¿ëµµ·Î
»ç¿ëµÇ¾îµµ ¹«¹æÇÑ ¸Å¿ì ÀϹÝÀûÀÎ ¿ä¼ÒÀÔ´Ï´Ù. ÆÐÅ°Áö ´ë½Å ¸ðµ¨(Model), ¼ºê½Ã½ºÅÛ(Subsystem)ÀÇ ´õ¿í Ư¼öÈµÈ ¿ä¼Ò¸¦ »ç¿ëÇÒ ¼öµµ
ÀÖ½À´Ï´Ù.
Package »ý¼ºÇÏ´Â ¹æ¹ý:
Package¸¦ »ý¼ºÇÏ·Á¸é,
- [Toolbox] -> [Component] -> [Package] ¹öÆ°À» Ŭ¸¯ÇÏ°í
- Main À©µµ¿ìâ¿¡¼ Package°¡ À§Ä¡ÇÒ
°÷À» Ŭ¸¯ÇÕ´Ï´Ù.
- ÆÐÅ°Áö°¡ »ý¼ºµÇ°í Äü´ÙÀ̾ó·Î±×°¡ ³ªÅ¸³³´Ï´Ù.
- Äü´ÙÀ̾ó·Î±×¿¡¼ package À̸§À» ÀÔ·ÂÇÏ°í [Enter] Å°¸¦ ÀÔ·ÂÇÏ¸é ´ÙÀ½°ú °°ÀÌ ÆÐÅ°Áö°¡ º¸ÀÔ´Ï´Ù.
Interface
InterfaceÀ» »ý¼ºÇÏ´Â ¹æ¹ý:
Interface¸¦ »ý¼ºÇÏ·Á¸é,
- [Toolbox] -> [Component] -> [Interface] ¹öÆ°À» Ŭ¸¯ÇÏ°í
- Main À©µµ¿ìâ¿¡¼
Interface°¡ À§Ä¡ÇÒ
°÷À» Ŭ¸¯ÇÕ´Ï´Ù.
- Äü´ÙÀ̾ó·Î±×¿¡¼ interfaceÀÇ À̸§À» ÀÔ·ÂÇÕ´Ï´Ù.
- [Enter] Å°¸¦ ´©¸£¸é ÀÎÅÍÆäÀ̽º´Â ´ÙÀ½°ú °°ÀÌ º¸¿©Áý´Ï´Ù.
Component
ÀǹÌ:
ÄÄÆ÷³ÍÆ®(Component)">ÄÄÆ÷³ÍÆ®(Component)´Â µ¶¸³ÀûÀ̸ç, ¹èÄ¡°¡ ÀÚÀ¯·Ó°í, ±³Ã¼°¡ °¡´ÉÇÑ ½Ã½ºÅÛÀÇ ÇÑ ºÎºÐÀ» ³ªÅ¸³À´Ï´Ù.
ÄÄÆ÷³ÍÆ®´Â ±¸ÇöÀ» ĸ½¶ÈÇÏ°í ÀÎÅÍÆäÀ̽º(Interface)¸¦ ¿ÜºÎ¿¡ °ø°³ÇÕ´Ï´Ù.
»ý¼º ¹æ¹ý:
Component¸¦ »ý¼ºÇÏ·Á¸é,
In order to create Component,
- [Toolbox] -> [Component] -> [Component]
¹öÆ°À» Ŭ¸¯ÇÏ°í
- Main À©µµ¿ìâ¿¡¼
Component°¡ À§Ä¡ÇÒ
°÷À» Ŭ¸¯ÇÕ´Ï´Ù. ±×¸®°í Äü´ÙÀ̾ó·Î±×¿¡¼ componentÀÇ À̸§À» ÀÔ·ÆÇÏ°í [Enter] Å°¸¦ ´©¸£¸é ´ÙÀ½°ú °°ÀÌ °á°ú°¡ º¸¿©Áý´Ï´Ù..
Resident Ãß°¡ÇÏ´Â ¹æ¹ý:
Model Explorer¿¡¼ Component¸¦ ¼±ÅÃÇÏ°í
[Collection Editor...] Æ˾÷ ¸Þ´º ¶Ç´Â Properties À©µµ¿ìÀÇ ResidentsÀÇ
ÄÝ·¢¼Ç ÆíÁý ¹öÆ°À» ÅëÇؼ Collection Editor¸¦ ¿¾î¼
Residents ÅÇ¿¡¼ resident Ãß°¡ ¹öÆ°À» ÀÌ¿ëÇÏ¿© Resident¸¦ ÀÔ·ÂÇÒ ¼ö ÀÖ½À´Ï´Ù.
Component¿¡ Resident ¿ä¼Ò¸¦ Ãß°¡ÇÏ·Á¸é
- ComponentÀÇ [Collection Editor...] Æ˾÷ ¸Þ´º¸¦ ¼±ÅÃÇÕ´Ï´Ù.
- ¶Ç´Â properties window¿¡¼ residentsÀÇ
¹öÆ°À» Ŭ¸¯ÇÕ´Ï´Ù.
- collection editorÀÇ residents ÅÇ¿¡¼
¹öÆ°À» ÀÌ¿ëÇÏ¿© resident ¿ä¼Ò¸¦ Ãß°¡ÇÕ´Ï´Ù.
- [Select a Resident] ´ÙÀ̾ó·Î±×¿¡¼ resident ¿ä¼Ò¸¦ ¼±ÅÃÇÕ´Ï´Ù.
- resident ¿ä¼Ò°¡ ÄÄÆ÷³ÍÆ®¿¡ ÇÒ´çµÇ¾îÁö¸ç ´ÙÀ½°ú °°ÀÌ º¸¿©Áý´Ï´Ù.
Interface Providing °ü°è ¼³Á¤ ¹æ¹ý:
Interface Providing ¸¦ »ý¼ºÇÏ·Á¸é,
- [Toolbox] -> [Component] -> [Realization] ¹öÆ°À» Ŭ¸¯ÇÏ°í
- Main À©µµ¿ìâ¿¡¼ Component¿¡¼ Interface·Î ¸¶¿ì½º¸¦ ´©¸£°í µå·¡±×ÇÏ¸é µË´Ï´Ù.
- °á°ú´Â ´ÙÀ½°ú °°½À´Ï´Ù.
Interface Requiring °ü°è ¼³Á¤ ¹æ¹ý:
Interface Requiring °ü°è¸¦ »ý¼ºÇÏ·Á¸é,
In order to create requiring relationship,
- [Toolbox] -> [Component] ->
[Dependency] ¹öÆ°À» Ŭ¸¯ÇÏ°í,
- Main À©µµ¿ìâ¿¡¼ Component¿¡¼ Interface·Î ¸¶¿ì½º¸¦ ´©¸£°í µå·¡±×ÇÏ¸é µË´Ï´Ù.
- ¸¶Áö¸·À¸·Î interface requiring relationship is created.
Interface Providing °ü°è »ý¼º ¹æ¹ý:
ÇöÀç ¼±ÅÃµÈ Class·ÎºÎÅÍ Interface Providing °ü°è¸¦ ¸¸µé·Á¸é ´ÜÃà »ý¼º ±¸¹®À» »ç¿ëÇÕ´Ï´Ù.
- Class¸¦ ´õºí Ŭ¸¯Çؼ
Quick Dialog°¡ ³ªÅ¸³ª¸é, Quick Dialog¿¡¼ "-@" ¹®ÀÚ¿ ´ÙÀ½¿¡ InterfaceÀÇ À̸§À» ÀÔ·ÂÇÕ´Ï´Ù. ¿©·¯°³ÀÇ
Interface¸¦ Á¦°øÇÑ´Ù¸é °¢ Interface À̸§Àº "," ¹®ÀÚ·Î ±¸ºÐÇؼ ÀÔ·ÂÇÕ´Ï´Ù.
- ±×¸®°í [Enter] Å°¸¦ ´©¸£¸é ¼±ÅÃµÈ Class¿Í Interface Provinding °ü°è¸¦ °¡Áö´Â InterfaceµéÀÌ
»ý¼ºµÇ°Å³ª ¿¬°áµÇ°í ÀÚµ¿ ¹è¿µÇ¾î »ý¼ºµË´Ï´Ù.
Interface Requiring °ü°è »ý¼º ¹æ¹ý:
ÇöÀç ¼±ÅÃµÈ Class·ÎºÎÅÍ Interface Requiring °ü°è¸¦ ¸¸µé·Á¸é ´ÜÃà »ý¼º ±¸¹®À» »ç¿ëÇÕ´Ï´Ù.
- Class¸¦ ´õºí Ŭ¸¯Çؼ
Quick Dialog°¡ ³ªÅ¸³ª¸é, Quick Dialog¿¡¼ "-(" ¹®ÀÚ¿ ¶Ç´Â "-->" ¹®ÀÚ¿ ´ÙÀ½¿¡ InterfaceÀÇ À̸§À»
ÀÔ·ÂÇÕ´Ï´Ù. ¿©·¯°³ÀÇ Interface¸¦ ¿ä±¸ÇÑ´Ù¸é °¢ Interface À̸§Àº "," ¹®ÀÚ·Î ±¸ºÐÇؼ ÀÔ·ÂÇÕ´Ï´Ù.
-
±×¸®°í [Enter]Å°¸¦ ´©¸£¸é ¼±ÅÃµÈ Class¿Í Interface Requiring °ü°è¸¦ °¡Áö´Â InterfaceµéÀÌ
»ý¼ºµÇ°Å³ª ¿¬°áµÇ°í ÀÚµ¿ ¹è¿µÇ¾î »ý¼ºµË´Ï´Ù.
Port »ý¼º ¹æ¹ý:
Component¿¡ Port¸¦ »ý¼ºÇÏ·Á¸é,
In order to create port on a component,
- [Toolbox] -> [Component] -> [Port] ¹öÆ°À» Ŭ¸¯ÇÏ°í
- Main À©µµ¿ì¿¡¼ Port°¡ À§Ä¡ÇÒ Component¸¦ Ŭ¸¯ÇÕ´Ï´Ù.
- component»ó¿¡ port°¡ »ý¼ºµÇ¸é Äü´ÙÀ̾ó·Î±×¿¡ portÀÇ À̸§À» ÀÔ·ÂÇÏ°í [Enter] Å°¸¦ ´©¸¨´Ï´Ù.
- ±×·¯¸é ÄÄÆ÷³ÍÆ®°¡ ´ÙÀ½°ú °°ÀÌ º¸¿©Áý´Ï´Ù.
Port µå·¡±×¸¦ ÅëÇÑ ºä »ý¼º ¹æ¹ý:
Model Explorer·ÎºÎÅÍ µå·¡±×¸¦ ÅëÇÏ¿© Port¸¦ »ý¼ºÇÒ ¼ö ÀÖ½À´Ï´Ù.
- model explorer¼ÓÀÇ port¸¦ µå·¡±×Çؼ main diagram»óÀÇ component À§¿¡ µå·ÓÇÕ´Ï´Ù.
- port°¡ component»ó¿¡ ³ªÅ¸³³´Ï´Ù. ¸¸¾à Component°¡ ¾Æ´Ñ Diagram À§·Î µå·ÓÇϸé Port¿Í ÇÔ²² ComponentÀÇ ºä°¡ »ý¼ºµË´Ï´Ù.
Part »ý¼º ¹æ¹ý:
Component¿¡ Part¸¦ »ý¼ºÇÏ·Á¸é,
In order to create part,
- [Toolbox] -> [Component] -> [Part] ¹öÆ°À» Ŭ¸¯ÇÏ°í
- Main À©µµ¿ì¿¡¼ Part°¡ À§Ä¡ÇÒ
Component¸¦ Ŭ¸¯ÇÕ´Ï´Ù.
Connector »ý¼º ¹æ¹ý:
Connector¸¦ »ý¼ºÇÏ·Á¸é,
In order to create connector,
- [Toolbox] -> [Component] -> [Connector] ¹öÆ°À» Ŭ¸¯ÇÏ°í
- Main À©µµ¿ìâ¿¡¼ ¿¬°áÇÒ
Part(¶Ç´Â Port)¿¡¼ ´Ù¸¥ Part(¶Ç´Â Port)·Î ¸¶¿ì½º ¹öÆ°À» ´©¸£°í µå·¡±×ÇÏ¸é µË´Ï´Ù.
- ±×·¯¸é µÎ°³ÀÇ part »çÀÌ¿¡ connector°¡ ´ÙÀ½°ú °°ÀÌ »ý¼ºµË´Ï´Ù.
ComponentInstance
ÀǹÌ:
ÄÄÆ÷³ÍÆ® ÀνºÅϽº(ComponentInstance)">ÄÄÆ÷³ÍÆ® ÀνºÅϽº(Component Instance)´Â ÄÄÆ÷³ÍÆ®ÀÇ ÇÑ
»ç·Ê(Instance)ÀÔ´Ï´Ù. "Classifier" ÇÁ·ÎÆÛƼ¿¡ ¾î¶² ÄÄÆ÷³ÍÆ®(Component)ÀÇ »ç·Ê ÀÎÁö¸¦ ÁöÁ¤ÇÒ ¼ö ÀÖ½À´Ï´Ù.
»ý¼º ¹æ¹ý:
Procedure for creating component instance
ComponentInstance¸¦ »ý¼ºÇÏ·Á¸é,
- [Toolbox] -> [Component] -> [ComponentInstance]
¹öÆ°À» Ŭ¸¯ÇÏ°í
- Main À©µµ¿ìâ¿¡¼
ComponentInstance°¡ À§Ä¡ÇÒ
°÷À» Ŭ¸¯ÇÕ´Ï´Ù.
- Äü´ÙÀ̾ó·Î±×¿¡¼ component instanceÀÇ À̸§À» ÀÔ·ÂÇÏ°í [Enter]
Å°¸¦ ´©¸£¸é ´ÙÀ½°ú °°ÀÌ °á°ú°¡ ³ªÅ¸³³´Ï´Ù.
Attribute Link Ãß°¡ Çϱâ:
ComponentInstance¿¡ AttributeLink¸¦ Ãß°¡ÇÏ´Â ¹æ¹ýÀº ´ÙÀ½°ú °°ÀÌ 2°¡Áö ¹æ¹ýÀÌ ÀÖ½À´Ï´Ù.
- ComponentInstance ¶Ç´Â Model ExplorerÀÇ Æ˾÷ ¸Þ´º ÀÌ¿ë
- Collection Editor ÀÌ¿ë
Main À©µµ¿ì ¶Ç´Â Model Explorer¿¡¼ ComponentInstance¸¦ ¼±ÅÃÇÏ°í ¿À¸¥ÂÊ ¸¶¿ì½º ¹öÆ°À» ´·¯¼ [Add] ->
[Attribute Link] Æ˾÷ ¸Þ´º¸¦ ¼±ÅÃÇÏ¿© Attribute Link¸¦ Ãß°¡ÇÒ ¼ö ÀÖ½À´Ï´Ù.
ComponentInstance ¶Ç´Â Model ExplorerÀÇ Æ˾÷ ¸Þ´º ÀÌ¿ëÇÏ´Â °æ¿ì,
- main window ¶Ç´Â model explorer¿¡¼ ComponentInstance¸¦ ¼±ÅÃÇÕ´Ï´Ù.
- ¿À¸¥ÂÊ ¸¶¿ì½º ¹öÆ°À» ´·¯¼ [Add] -> [Attribute Link] Æ˾÷ ¸Þ´º¸¦ ¼±ÅÃÇÕ´Ï´Ù.
- ±×·¯¸é ´ÙÀ½°ú °°ÀÌ attribute link°¡ Ãß°¡µË´Ï´Ù.
ComponentInstanceÀÇ [Collection Editor...] Æ˾÷ ¸Þ´º ¶Ç´Â Properties À©µµ¿ìÀÇ
SlotsÀÇ ÆíÁý ¹öÆ°À» ÅëÇؼ Collection Editor¸¦ ¿¾î¼ Slots ÅÇ¿¡¼ attribute link Ãß°¡
¹öÆ°À» ÀÌ¿ëÇÏ¿© Attribute Link¸¦ ÀÔ·ÂÇÒ ¼ö ÀÖ½À´Ï´Ù.
Collection Editor ÀÌ¿ëÇÏ´Â °æ¿ì,
- ComponentInstanceÀÇ [Collection Editor...] Æ˾÷ ¸Þ´º¸¦ ¼±ÅÃÇÕ´Ï´Ù.
- properties window¿¡¼ slots ¼Ó¼ºÀÇ
¹öÆ°À» Ŭ¸¯ÇÕ´Ï´Ù.
- collection editor¿¡¼ slots tab ÅÇÀÇ
¹öÆ°À» ÀÌ¿ëÇÏ¿© attribute link¸¦ Ãß°¡ÇÕ´Ï´Ù.
Artifact
»ý¼º ¹æ¹ý:
Artifact¸¦ »ý¼ºÇÏ·Á¸é,
- [Toolbox] -> [Component] -> [Artifact]
¹öÆ°À» Ŭ¸¯ÇÏ°í
- Main À©µµ¿ìâ¿¡¼ Artifact°¡ À§Ä¡ÇÒ
°÷À» Ŭ¸¯ÇÕ´Ï´Ù.
- ´ÙÀ̾î±×·¥»ó¿¡ artifact°¡ »ý¼ºµÇ°í Äü´ÙÀ̾ó·Î±×°¡ ³ªÅ¸³ª¸é, artifactÀÇ À̸§À» Äü´ÙÀ̾ó·Î±×¿¡ ÀÔ·ÂÇÕ´Ï´Ù.
- ±×¸®°í [Enter] Å°¸¦ ÀÔ·ÂÇÏ¸é »ý¼ºÀÌ ¿Ï·áµË´Ï´Ù.
Association
Association »ý¼º ¹æ¹ý:
Association¸¦ »ý¼ºÇÏ·Á¸é,
- [Toolbox] -> [Component] -> [Association]
¹öÆ°À» Ŭ¸¯ÇÏ°í
- Main À©µµ¿ìâ¿¡¼ ¿¬°üÇÒ
¿ä¼Ò¿¡¼ ´Ù¸¥ ¿ä¼Ò·Î ¸¶¿ì½º ¹öÆ°À» ´©¸£°í µå·¡±×ÇÏ¸é µË´Ï´Ù.
- µÎ°³ÀÇ ¿ä¼Ò»çÀÌ¿¡ associationÀÌ ´ÙÀ½°ú °°ÀÌ »ý¼ºµË´Ï´Ù.
Dependency
Dependency »ý¼º ¹æ¹ý:
Dependency¸¦ »ý¼ºÇÏ·Á¸é,
- [Toolbox] -> [Component] -> [Dependency]
¹öÆ°À» Ŭ¸¯ÇÏ°í
- Main À©µµ¿ìâ¿¡¼ ¿ä¼Ò¿¡¼
ÀÇÁ¸ÇÏ´Â ¹æÇâÀÇ ¿ä¼Ò·Î ¸¶¿ì½º ¹öÆ°À» ´©¸£°í µå·¡±×ÇÏ¸é µË´Ï´Ù.
- µÎ°³ÀÇ ¿ä¼Ò»çÀÌ¿¡ dependency°¡ »ý¼ºµË´Ï´Ù.
Realization
Realization »ý¼º ¹æ¹ý:
Realization¸¦ »ý¼ºÇÏ·Á¸é,
- [Toolbox] -> [Component] -> [Realization]
¹öÆ°À» Ŭ¸¯ÇÏ°í
- Main À©µµ¿ìâ¿¡¼ ¿ä¼Ò¿¡¼
RealizationÇÒ ¹æÇâÀÇ ¿ä¼Ò·Î ¸¶¿ì½º ¹öÆ°À» ´©¸£°í µå·¡±×ÇÏ¸é µË´Ï´Ù.
- ±×·¯¸é realizationÀÌ ´ÙÀ½°ú °°ÀÌ »ý¼ºµË´Ï´Ù.
Link
Link »ý¼º ¹æ¹ý:
Link¸¦ »ý¼ºÇÏ·Á¸é,
- [Toolbox] -> [Component] -> [Link]
¹öÆ°À» Ŭ¸¯ÇÏ°í
- Main À©µµ¿ìâ¿¡¼ ¿¬°áÇÒ
ComponentInstance¿¡¼ ´Ù¸¥ ComponentInstance·Î ¸¶¿ì½º ¹öÆ°À» ´©¸£°í µå·¡±×ÇÏ¸é ´ÙÀ½°ú °°ÀÌ link°¡ »ý¼ºµË´Ï´Ù.