Java Assignment

emma_94
assignment.docx

Introduction The following report showcases an object oriented approach to automate the one stop auto car service of Muscat Autos through UML diagrams such as Use Cases, Class Diagram and Sequence diagram.

Table of contents: Use Cases………………………………………………………………………………………. .1 Use Case Specification…………………………………………………………………………...2 Class Diagram…………………………………………………………………………………....4 Sequence Diagram…………………………………………………………………………….....5 References………………………………………………………………………………………..5

Designed Models: Use Cases

Use Case Specifications

Use case ID 001 Use case Name: Register Customers

Priority : High

Actors: Branch Manager

Use Case Summary

Provide a registration module to Branch Manager so that he can enter the data of the customers and register them

Pre-condition:

None

Normal Flow of Events

Alternative Path

1. The use case start when the Branch Manager wishes to register a customer and prompts the system to display registration form

2. The Branch Manager enters customer name, ID number, contact number, car number, maintenance, repair and service history(if it exists) and submits

3. The system then responds by displaying a verification message as to whether Branch Manager wants to confirm save or not

3. The system displays error message in case of wrong formatting or missing data

4. The Branch Manager confirms save and then system saves data and registers customer

4. The Branch Manager cancels save in which case system dumps the data and does not register customer

Exceptions / Alerts

1. Branch Manager confirms registration more than once because system responds to first request was slow due to lag or network issue thus saving the data of same customer more than once

Post Conditions

Step#

Description

1

The system data store has customer data and vehicle data stored in it

2

The customer is able to access his newly created profile on the company website

Use Case Cross References

Includes

None

Extends

None

Use case ID 002 Use case Name: Update Vehicle History

Priority : High

Actors: Branch Manager

Use Case Summary

Provide a updating module to Branch Manager so that he can search for a particular vehicle and updates it’s data

Pre-condition:

Vehicle is already registered

Normal Flow of Events

Alternative Path

1. The use case start when the Branch Manager wishes to update the information of a vehicle after some maintenance, repair or service and prompts the system to display UI to accomplish this task

2. The Branch Manager enters customer ID card to which the vehicle belong and also vehicle number.

3. The system then responds by searching for the vehicle and displaying its current information

3a. The system displays error message in case of not being able to find the vehicle 3b. The Branch manager confirms cancel 3c. The branch manager is sent back to start of use case

4. The Branch Manager changes information as he requires and adds additional information and submits

5. The system asks branch manager to confirm the information with a prompt

6. Branch Manager Confirms update and information is updated

6. Branch Manager chooses to cancel and is bought back to start of use case

Exceptions / Alerts

1. There is a database connectivity issue during updating leaving information half updated

Post Conditions

Step#

Description

1

The system data store updates vehicle data stored in it

Use Case Cross References

Includes

Search Vehicle Data

Extends

None

Class Diagram

Sequence Diagram

References https://stackoverflow.com/questions/50105982/uml-class-diagram-multiplicity-for-inheritance (reference date: 12/3/2018) http://www.agilemodeling.com/artifacts/sequenceDiagram.html

(reference date: 12/3/2018) https://docs.microsoft.com/en-us/dotnet/framework/data/adonet/association-end-multiplicity

(reference date: 12/3/2018) https://atomicobject.com/resources/oo-programming/object-oriented-aggregation (reference date: 12/3/2018)

1