组件图小结

1. What is the component?
In UML2.0,components are considered autonomous, encapsulated units within a system or subsystem that provide one or more interfaces

components are now strictly logical, design-time constructs. The idea is that you can easily reuse and/or substitute a different component implementation in your designs because a component encapsulates behavior and implements specified interfaces.

2. What is the artifact?
The physical items that UML1.x called components are now called "artifacts" in UML 2. An artifact is a physical unit, such as a file, executable, script, database, etc. Only artifacts live on physical nodes; classes and components do not have "location." However, an artifact may manifest components and other classifiers (i.e., classes). A single component could be manifested by multiple artifacts, which could be on the same or different nodes, so a single component could indirectly be implemented on multiple nodes.]''


3. What is the function of component diagram?
1)In component-based development (CBD), component diagrams offer architects a natural format to begin modeling a solution. Component diagrams allow an architect to verify that a system's required functionality is being implemented by components, thus ensuring that the eventual system will be acceptable.

2) In addition, component diagrams are useful communication tools for various groups

4. How to draw a component?
a component is drawn as a rectangle with optional compartments stacked vertically. The high-level, abstracted view of a component contains the next.
1) a rectangle; 2) a stereotype text; 3) a icon; 4) a name.
It is important to include the stereotype text and/or the icon when drawing component. That means that one of them at least appears. 

See the examples.


5. How to model a component's interfaces provided or required?
1. Use compartment.

2. Use interface icon.

6. How to model component relationship?


Reference:
https://www.ibm.com/developerworks/rational/library/dec04/bell/
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值