辅导Sample Solution、讲解Java/C++编程、辅导UML留学生、讲解CS/Python语言

- 首页 >> C/C++编程

Lab 3

UML Exercise - Sample Solution

Peer-Olaf Siebers

</> Task

Produce the following for the new "Student-Internship Match" application:

– Use-case diagram for the described application

– Complete use case specification for a non trivial use case (e.g. "search for jobs")

– Activity diagram of the same use case

– Sequence diagram of the same use case

– Class diagram

Classes including key attributes and operations o Relationships

Multiplicity indicators

– Non trivial state machine diagram for one of the classes

Following are some diagrams that represent potential draft solutions to the task

COMP2013-Autumn 2018 2

</>

COMP2013-Autumn 2018 3

</> Sample Use Case Specification "Search Jobs" Use Case

Name: Search Jobs

Purpose: Search for suitable job for a student

Pre-condition(s): Student is logged in

Base case:

1. Student chooses "Search Jobs" option

2. Student chooses keywords that best describe the job (out of a given set of keywords)

3. Student clicks "OK" to start query search

4. Database does query search

5. Database sends query results

6. Student receives query results (one or more matching jobs)

Post condition(s): One or more jobs have been found and propagated to the student

Alternative path

– If in step 4 student does not receive a matching result for their job query they will be asked to change the

chosen keywords and sent back to Step 2

– If there are no job offers in the database there will be a message displayed after step 1 and the application

will return to the main window

COMP2013-Autumn 2018 4

</> Sample Activity Diagram for "Search Jobs" Use Case

COMP2013-Autumn 2018 5

</> Sample Sequence diagram for "Search Jobs" Use Case

COMP2013-Autumn 2018 6

</> Sample Class Diagram

COMP2013-Autumn 2018 7

</> Sample State Machine Diagram (for the database)


站长地图