开发者

UML and iOS Frameworks

What is the most correct 开发者_JAVA技巧way to express a iOS framework in UML? Package diagram or component diagram?


It depends on the context - what do you want to depict. Package diagrams have a special stereotype for frameworks - <<framework>>, packages can be hierarchically composed, imported, contain other classifiers and they can be merged, where as in component diagrams you can depict different kinds of realtionships between components - requires and provides, which is interesting for the dependency analysis, and components are instantiable. There are many differences, as said, it depends on your intent.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜