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.
精彩评论