简体   繁体   中英

In UML/SysML, what is the best diagram type to represent a SW strategy using GIT Submodules?

When using UML/SysML, what would be the best diagram type to represent a software strategy/structure using Git Submodules?

I am a Git novice, but it seems to me that the UML Package Diagram type is the most appropriate at the GIT level, because “GIT Submodules” sounds to me like a way of organizing your physical code files and file groups (and versions), and so it is a “logical organizational” thing.

And then the individual components should be UML components. And down at the unit level, they should be classes.

What do you all say?
Thanks

The package diagram is a way to structure the modelling space. It is not meant to represent the repository structure (despite the folder-like visualisation).

But of course both are not incompatible: you may structure your model elements in packages that have some sililarities with the component boundaries, and use the same logic for your organizing the repos.

Another approach would be to use a diagram showing the artifacts (source file, library, executable) and their dependency. Nothing prevents you from adding a stereotype for repositories.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM