In this case, this representation in the diagrama de classes
, because this same representation can be made in the diagram of Máquina de Estados
. Because I’m not going to tell you with 100% certainty, but I think the class diagram doesn’t have the resources for this procedure, so I made some small modifications to the class and possible representation of state machines.
1. Class diagram
This one has added a new atributo
concerning the tipo de usuário
if it will be comum ou administrador
, as well as the methods for CRUD
and only an annotation referring to the restriction of only the administrator can register the contributor.
2. State Machine Diagram
In the representation of the state machines diagram the register of the taxpayer is represented, where the tipo
user, if it is administrador
the registration of the taxpayer will be carried out and soon after the end of the process, if the user is of the type comum
the process will then be finalized since he cannot perform this procedure.
Unless mistaken
ADM pode cadastrar um contribuinte
would be function of the use case diagram. With the use case diagram it becomes easier to define the classes, thus you do not getmeio perdido por não sabe se o que eu penso é uma classe ou não
.– rubStackOverflow
I understand you man... It’s just that my Use Case is not the best either.. I’ll have to redo or implement them! Vlw by tip @rubStackOverflow
– Hermus