Ringer
Ringer

Reputation: 31

Sequence diagram for a function containing one object

I know Sequence diagram is a interaction model so we need more than 1 object. I made a class diagram with a logIn() function inside the User class then I documented all the use cases for the application. Now I have to make sequence diagram for each function I documented. I am a little bit confused if it is right or not. This is the use case:

enter image description hereenter image description here

This is my logIn(username,password) sequence diagram enter image description here

Upvotes: 1

Views: 173

Answers (1)

Axel Scheithauer
Axel Scheithauer

Reputation: 3680

A use case is a case of a user using a system. Therefore, you have at least two parties: The user and the system. If there are secondary actors involved you even have more.

So, the login command is sent from the user to the system.

Your system might have some internal representation of the user. But that is something that comes up much later during the design of the system and should not have any influence on the sequence diagram for a use case.

Upvotes: 1

Related Questions