UML, Use Case Diagram

Asked

Viewed 1,006 times

11

I’m having a doubt regarding the use case diagram, follows the original version I assembled:

Diagrama original

However, when writing the description of use cases, I had an idea that can better represent the need of the system.

The pedagogical center registers internship but to register the internship is necessary information of the company in which the trainee is, so registering company is an internship register extension that is still linked to the pedagogical core actor?

There is also the use case of designating teacher, which, after registration by the part of the pedagogical core, the coordinator of internship designates a teacher to be a mentor of the internship, would then designate teacher a include to register internship, also linked with internship coordinator who is the one who has access?

I created an example diagram that best explains my doubt:Exemplo de diagrama

Summarizing my doubt: there are extend and include links or I’m getting the wrong concept?

1 answer

15


It is important to strengthen the concepts of include and extend. Maybe just this will make you resolve your doubt yourself. So let’s go...

  • include:

    When we use the include, we are indicating that at all times that use case A is executed, use case B will be executed. It can then be simplified by saying that A includes B.

  • extend:

    Already when we use the extend, the use case will not necessarily run every time. That is, the use case may or may not be executed as well. It is important to remember that the arrowhead will be to the side receiving extended functionality.

Exemplo gráfico

Now let’s get to your problem:

The pedagogical core actor, registers the stage and will not necessarily register the company. For the simple reason that there is a possibility that it has already been registered before. Therefore, you have correctly used the extend. However, he nay will be linked directly to the actor.

Watch out for arrows in the include! As he wrote, it seems that when the actor designates the teacher he will have to register the internship (A includes B, recalls?).

Exemplo Gráfico

  • Thank you so much for your reply, it has greatly illuminated my concept in use case diagrams! The include arrow of Designate teacher and register internship I did at inattention same, but the others I really was with the wrong concept.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.