In this case, this representation is not necessary in diagrama de classes
, since the same representation can be done in the Máquina de Estados
diagram. Well, I'm not going to tell you with 100% certainty, but I believe that the class diagram has no features for this procedure, so I made some minor modifications to the class and possible state machine representation.
1. Class Diagram
In this has been added a new atributo
referring to the tipo de usuário
if it is going to 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 taxpayer.
2.StateMachineDiagram
Intherepresentationofthestatemachinediagram,thetaxpayer'sregisterisrepresented,wherethe%ofuser%willbeanalyzed,ifitistipo
,thetaxpayer'sregisterwillbedoneandsoonaftertheprocessisfinished,iftheuserisoftypeadministrador
thentheprocesswillbeterminatedsinceitcannotperformthisprocedure.