My first suggestion was that such questions fit better for CodeReview site. But there's no uml
tag on CodeReview. Hope it's fine to post it here.
Here's my first ever sequence diagram. It describes the execution of MVC (CLI) application.
View
– obviously stands for a view component of MVC approachApplication
– a controller classCommand
– an abstract base class and its derivativesmodel
– a bunch of dataclassesPersistence Manager
– a class for DB and file-system operationsAre UML notation and logic used correctly? Please, give me some comments on it.
Diagram is generated with PlantUML: code.
Looks good so far.
There are some minor notation errors. This is how it should be:
I find it strange that the loop condition has the same name as the operation maincycle
. Also the condition needs to be observed by the sender of the first message in the fragment. This is the user.
The user doesn't have a way to know, that it is ok to send the command. Maybe a feedback is needed, that the view has been created.
If the user starts the loop, probably she should also be able to end it.
Of course, a sequence diagram is usually incomplete and only shows one possible sequence. Therefore, it might well be ok as it is.