9 Replies - 963 Views - Last Post: 07 December 2015 - 09:33 AM

#1 CorvusTheHeretic   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 6
  • Joined: 01-December 15

Use case to class diagram

Posted 01 December 2015 - 06:14 AM

Hello friends,

This is my first post. I really need information about creating class diagram from my use case diagram. Thanks in advance http://img4host.net/viewer.php?img=01141256565d9cd80ced1
Is This A Good Question/Topic? 0
  • +

Replies To: Use case to class diagram

#2 modi123_1   User is offline

  • Suitor #2
  • member icon



Reputation: 14146
  • View blog
  • Posts: 56,698
  • Joined: 12-June 08

Re: Use case to class diagram

Posted 01 December 2015 - 06:21 AM

What have you tried, though about, or considered?
Was This Post Helpful? 0
  • +
  • -

#3 CorvusTheHeretic   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 6
  • Joined: 01-December 15

Re: Use case to class diagram

Posted 01 December 2015 - 06:22 AM

Posted Image
Was This Post Helpful? 0
  • +
  • -

#4 CorvusTheHeretic   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 6
  • Joined: 01-December 15

Re: Use case to class diagram

Posted 01 December 2015 - 06:27 AM

İ want to make a online intern tracking program. These are the uses cases that i've created.
Was This Post Helpful? 0
  • +
  • -

#5 tlhIn`toq   User is offline

  • Xamarin Cert. Dev.
  • member icon

Reputation: 6535
  • View blog
  • Posts: 14,450
  • Joined: 02-June 10

Re: Use case to class diagram

Posted 01 December 2015 - 04:32 PM

"Information about" could sum up half the internet.
I'm confident you are following a book, maybe in a course, and have done plenty of searching on your own before coming to a site for help.
So maybe you could narrow down what you don't understand from all that reading you've already done.

Modi asked what you've tried so far. I don't see anything resembling a class diagram that you've tried to make so far. That is what you're asking about, right? Class diagrams?
Was This Post Helpful? 0
  • +
  • -

#6 CorvusTheHeretic   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 6
  • Joined: 01-December 15

Re: Use case to class diagram

Posted 02 December 2015 - 12:22 AM

Posted Image

Sorry, i added the class diagram that i created with the info i gathered. But i think its not even close to enough for my use cases. I think i miss classes. I think i should look in to the use case specifications and find more classes and maybe some other classes not even in my use cases exists too :). Thanks for the help.
Was This Post Helpful? 0
  • +
  • -

#7 BobRodes   User is offline

  • Lovable Curmudgeon
  • member icon

Reputation: 600
  • View blog
  • Posts: 3,071
  • Joined: 19-May 09

Re: Use case to class diagram

Posted 05 December 2015 - 08:37 PM

Your class diagram looks pretty good. What you are missing is formalized detail about the use cases. This is handled with a use case narrative. You can find out more about those here. If you want to support your narrative with a diagram, use an Activity diagram. Going through this exercise may well uncover other classes that you will need.
Was This Post Helpful? 1
  • +
  • -

#8 CorvusTheHeretic   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 6
  • Joined: 01-December 15

Re: Use case to class diagram

Posted 06 December 2015 - 02:13 PM

Thank you Bob. Can u give a small example about it with my use cases. Because im very confused how to do it with a activity diagram. Thanks in advance.
Was This Post Helpful? 0
  • +
  • -

#9 Skydiver   User is online

  • Code herder
  • member icon

Reputation: 6281
  • View blog
  • Posts: 21,598
  • Joined: 05-May 12

Re: Use case to class diagram

Posted 07 December 2015 - 07:30 AM

A use case diagram shows what users and services can do. An activity diagram shows what [i]sequence[/il] that they are done in. For example, a use case diagram can show that a user can login to an ATM, and it shows that a user can check their balance, but it is only the activity diagram that shows that the user needs to login first before they can check their balance. This refinement from use case to activity teases out the bit of information that there probably needs to be a session state class, in addition to the user login and account classes previously identified by the use cases.
Was This Post Helpful? 0
  • +
  • -

#10 CorvusTheHeretic   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 6
  • Joined: 01-December 15

Re: Use case to class diagram

Posted 07 December 2015 - 09:33 AM

i created all the narratives before (i added some samples). How can i look into the the action sequences and create classes.


Use Case: Login


Brief Description: The user logins with an account.


Primary Actors: Manager/Teacher


Secondary Actors: None


Preconditions:

The Use-Case starts when:

• A user tries to log on to the system.



Main Flow:

1. The user enters e-mail and password then clicks “Giriş”.

[Invalid Input]

4. The System logins.


Post condition:

The Use-Case terminates when:

• The user logs in.

Alternative Flows:

[Invalid Input]

• The User tries to submit the page with invalid input in one of the boxes.

• The System displays an error message prompting the user to re-enter e-mail and password.





Use Case: Log out


Brief Description: The user logs out of the system.


Primary Actors: Manager/Teacher


Secondary Actors: None


Preconditions:

The Use-Case starts when:

• A User is in the system and wants to logs out.


Main Flow:

1. The user member navigates to his or her name at the top-right of the page and clicks the

name.

2. The System displays “Çıkış” button.

4. The user cliks “çıkış” button.

4. The user is logged out of the system.


Post condition:

The Use-Case terminates when:

• The user is logged out of the system.


2.3.1.2 Account Package














Account Package



Use Case: View Accounts


Brief Description: The manager views all the accounts registered.


Primary Actors: Manager


Secondary Actors: None


Preconditions:

The Use-Case starts when:

• The user member clicks on “Ögretmen&Idareci İşlemleri”.


Main Flow:

1. The user member clicks on “Ögretmen&Idareci İşlemleri”.

2. The system displays “Ögretmen&Idareci İşlemleri” page

Extension points:

• (Create Account)

• (Modify Account)


Post condition:

The Use-Case terminates when:

• The system displays “Ögretmen&Idareci İşlemleri” page.




Extension Use Case: Create Account


Brief Description: The user creates a new account.


Primary Actors: Manager


Secondary Actors: Manager/Teacher


Preconditions:

The Use-Case starts when:

• The manager clicks “+Öğretmen&İdareci” button at the bottom-right of the page



Main Flow:


1. The manager clicks “+Öğretmen&İdareci” button at the bottom-right of the page.

2. The system displays “Öğretmen&İdareci Ekle” page.

3. The User enters the following user details and clicks the “Kaydet” button.

[Invalid Input]

3.1. Ad

3.2. Soyad

3.3. E-Posta

3.4. Telefon Numarası

3.5. Şifre

3.6 Rol

[Include Assign Role]

4. The account is created by the system.


Post condition:

The Use-Case terminates when:

• An account is created by the System.


Alternative Flows:

[Invalid Input]

• The User tries to submit the page with invalid input in one of the boxes.

• The System displays an error message prompting the user to re-enter the input.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1