Using uml for ontology construction a case study in agriculture
Case Study UML(1)
-
Upload
dervashmohayadeen -
Category
Documents
-
view
632 -
download
19
description
Transcript of Case Study UML(1)
![Page 1: Case Study UML(1)](https://reader033.fdocuments.in/reader033/viewer/2022061114/54609dd6b1af9feb588b5245/html5/thumbnails/1.jpg)
Case Study – Hospital Management System Problem Statement:
A system to manage the activities in a hospital:
Patients request for appointment for any doctor. The details of the existing patients are retrieved by the system. New patients update their details in the system before they request for appointment with the help of assistant.
The assistant confirms the appointment based on the availability of free slots for the respective doctors and the patient is informed.
Assistant may cancel the appointment at any time.
In this case study, we have exploded only one use case which has the “include” and “extend” conditions. The corresponding sequence diagram and design level class diagrams for this use case diagram is also shown. Use Case Diagram:
Sequence Diagram:
![Page 2: Case Study UML(1)](https://reader033.fdocuments.in/reader033/viewer/2022061114/54609dd6b1af9feb588b5245/html5/thumbnails/2.jpg)
Design Level Class Diagram:
![Page 3: Case Study UML(1)](https://reader033.fdocuments.in/reader033/viewer/2022061114/54609dd6b1af9feb588b5245/html5/thumbnails/3.jpg)
Airport Check-In and Security Screening
Restaurant
e-Library OPAC
![Page 4: Case Study UML(1)](https://reader033.fdocuments.in/reader033/viewer/2022061114/54609dd6b1af9feb588b5245/html5/thumbnails/4.jpg)
Bank ATM Use Cases
![Page 5: Case Study UML(1)](https://reader033.fdocuments.in/reader033/viewer/2022061114/54609dd6b1af9feb588b5245/html5/thumbnails/5.jpg)
Hospital Use Cases
1. Use Case Diagram:- Library Management System
![Page 6: Case Study UML(1)](https://reader033.fdocuments.in/reader033/viewer/2022061114/54609dd6b1af9feb588b5245/html5/thumbnails/6.jpg)
Activity Diagram for Issue Book in Library :-
Activity Diagram for Return Book in Library:-
![Page 7: Case Study UML(1)](https://reader033.fdocuments.in/reader033/viewer/2022061114/54609dd6b1af9feb588b5245/html5/thumbnails/7.jpg)
Class Diagram for Library System:-
State diagram for Book:
State diagram for Librarian:
![Page 8: Case Study UML(1)](https://reader033.fdocuments.in/reader033/viewer/2022061114/54609dd6b1af9feb588b5245/html5/thumbnails/8.jpg)
Collaboration diagram for issuing Book:
Collaboration diagram for returning Book:
Sequence diagram for issuing book:
![Page 9: Case Study UML(1)](https://reader033.fdocuments.in/reader033/viewer/2022061114/54609dd6b1af9feb588b5245/html5/thumbnails/9.jpg)
Sequence diagram for returning book:
Component diagram for Library Management System:
![Page 10: Case Study UML(1)](https://reader033.fdocuments.in/reader033/viewer/2022061114/54609dd6b1af9feb588b5245/html5/thumbnails/10.jpg)
Deployment Diagram for Library management system:-
2. USE CASE DIAGRAM FOR AIRPORTCHECK-IN AND BOARDING OF
PASSENGERS
![Page 11: Case Study UML(1)](https://reader033.fdocuments.in/reader033/viewer/2022061114/54609dd6b1af9feb588b5245/html5/thumbnails/11.jpg)
SEQUENCE DIAGRAM FOR AIRPORTCHECK_IN AND BOARDING OF PASSENGERS
COLLABORATION DIAGRAMFOR AIRPORT CHECK-IN
AND BOARDING PASSENGERS
![Page 12: Case Study UML(1)](https://reader033.fdocuments.in/reader033/viewer/2022061114/54609dd6b1af9feb588b5245/html5/thumbnails/12.jpg)
STATE CHART DIAGRAMFOR CHECK-IN EMPLOYEE [AS OBJECT]
STATE CHART DIAGRAMFOR BOARDING EMPLOYEE
[AS OBJECT]
![Page 13: Case Study UML(1)](https://reader033.fdocuments.in/reader033/viewer/2022061114/54609dd6b1af9feb588b5245/html5/thumbnails/13.jpg)
CLASS DIAGRAM FORAIRPORT CHECK-IN AND BOARDING OFPASSENGERS
DEPLOYMENTDIAGRAM FOR AIRPORT CHECK-IN
ANDBOARDING OF PASSENGERS
![Page 14: Case Study UML(1)](https://reader033.fdocuments.in/reader033/viewer/2022061114/54609dd6b1af9feb588b5245/html5/thumbnails/14.jpg)
COMPONENT DIAGRAM FOR AIRPORT CHECK-IN
AND BOARDING OF PASSENGERS
![Page 15: Case Study UML(1)](https://reader033.fdocuments.in/reader033/viewer/2022061114/54609dd6b1af9feb588b5245/html5/thumbnails/15.jpg)
3. CASE STUDY: COURSE-WARE MANAGEMENT SYSTEM
Construct the design element for a course ware management system that can be used to manage courses and classes for an organisation that specialize in providing training.
The organisation offers a variety of courses in a avariety of areas such as learning management techniques and understanding different software languages and technologies.
Each course is made up of set of topics. Tutors in the organisation are assigned courses to teach according to the
area that is specialized in and their availability. The organisation publish and maintain a calendar of different courses
and assign tutors every year. There is a group of Course Administrator in the organisation to manage
the courses including course content, assign courses to tutor and define the course schedule.
The training organisation aim to use the Course-ware Management System to get a better control and visibility to the management of courses as also to streamline the process of generating and managing the schedule of the different courses.
Use Case Diagram:-
Activity Diagram
![Page 16: Case Study UML(1)](https://reader033.fdocuments.in/reader033/viewer/2022061114/54609dd6b1af9feb588b5245/html5/thumbnails/16.jpg)
Class Diagram:-
4. CASE STUDY: Hospital Management System
![Page 17: Case Study UML(1)](https://reader033.fdocuments.in/reader033/viewer/2022061114/54609dd6b1af9feb588b5245/html5/thumbnails/17.jpg)
The hospital has several specialized departments like Cardiology, Gynecologic, Orthopedics, Pediatrics, ENT etc. OPD is another independent department. A doctor is only associated with one specialized department at a time though he/she can be a member of the OPD(Outside Patients Department) department. Each doctor has a visiting time and day in a week.
At reception the patient details are entered and the fees are also taken and the patient is tracked on the basis of the Id generated. In routine a patient can visit the doctors either directly selecting a doctor or by getting admitted to the hospital and then a doctor visits the patients.
A doctor can prescribe tests for the patient to perform. The patient visits the lab to get done the tests prescribed by his/her doctor. The reports are given to the patient. The payments pertaining to the tests are done at the reception. Referring the reports, the doctor prescribes the patient medicines or further tests or is asked to get admitted.
A patient is admitted into a ward of a specialized department (if available) as per the doctor’s prescription. The number of wards is limited and if there is no vacant ward the admission of the patient is rescheduled.
As per the prescription of the doctor the patient is operated on a specified date and time as decided by the doctor who is doing the operation.After the completion of the treatment a patient may get discharged on an advice of a doctor and upon the complete payment of all due charges at the reception. On payment of full dues the reception generates a discharge ticket for the patient
Use Case Diagram:-
Class Diagram:-
![Page 18: Case Study UML(1)](https://reader033.fdocuments.in/reader033/viewer/2022061114/54609dd6b1af9feb588b5245/html5/thumbnails/18.jpg)
Activity Diagram Registration :-
![Page 19: Case Study UML(1)](https://reader033.fdocuments.in/reader033/viewer/2022061114/54609dd6b1af9feb588b5245/html5/thumbnails/19.jpg)
Activity Diagram for Ward Allocation:-
Activity Diagram for Tests to Perform:-
![Page 20: Case Study UML(1)](https://reader033.fdocuments.in/reader033/viewer/2022061114/54609dd6b1af9feb588b5245/html5/thumbnails/20.jpg)
Activity Diagram for Treatment and Operations:-
Activity Diagram Discharge:-
![Page 21: Case Study UML(1)](https://reader033.fdocuments.in/reader033/viewer/2022061114/54609dd6b1af9feb588b5245/html5/thumbnails/21.jpg)
State Chart Diagram for Patient:-
State Diagram for Doctor:-
![Page 22: Case Study UML(1)](https://reader033.fdocuments.in/reader033/viewer/2022061114/54609dd6b1af9feb588b5245/html5/thumbnails/22.jpg)
State Diagram for Ward Object:-
Sequence Diagram for Patient Admit / Registration:-
![Page 23: Case Study UML(1)](https://reader033.fdocuments.in/reader033/viewer/2022061114/54609dd6b1af9feb588b5245/html5/thumbnails/23.jpg)
Sequence Diagram Test & Operation:-
Sequence Diagram Discharge from Hospital :-
![Page 24: Case Study UML(1)](https://reader033.fdocuments.in/reader033/viewer/2022061114/54609dd6b1af9feb588b5245/html5/thumbnails/24.jpg)
Collaboration Diagram Admit to Hospital:-
Collaboration Diagram for Treatment at Hospital:-
![Page 25: Case Study UML(1)](https://reader033.fdocuments.in/reader033/viewer/2022061114/54609dd6b1af9feb588b5245/html5/thumbnails/25.jpg)
Collaboration Diagram for Discharge from Hospital :-
5. Case Study :- RAILWAY RESERVATION SYSTEM
Railway Reservation System is a system used for booking tickets over internet.Any Customer Can book tickets for different trains.Customer can book a ticket only if the tickets are available.Customer searches for the availability of tickets then if the tickets are available he books the tickets by initially filling details in a form.Tickets can be booked in two ways by i-ticket or by e-ticket booking.
In case of i-ticket booking customer can book the tickets online and the tickets are couriered to Particular customer at their address.But in case of e-ticket booking and cancelling tickets are booked and cancelled online sitting at the home and customer himself has to take print of the ticket but in both the cases amount for tickets are deducted from customers account.
For cancellation of ticket the customer has to go at reservation office than fill cancellation form and ask the clerk to cancel the ticket than the refund is
![Page 26: Case Study UML(1)](https://reader033.fdocuments.in/reader033/viewer/2022061114/54609dd6b1af9feb588b5245/html5/thumbnails/26.jpg)
transferred to customer account.After booking ticket the customer has to checkout by paying fare amount to clerk.
Use Case Diagram :- Railway Reservation
ACTIVITY DIAGRAM FOR BOOKING TICKET:
![Page 27: Case Study UML(1)](https://reader033.fdocuments.in/reader033/viewer/2022061114/54609dd6b1af9feb588b5245/html5/thumbnails/27.jpg)
ACTIVITY DIAGRAM FOR CANCEL TICKET:
![Page 28: Case Study UML(1)](https://reader033.fdocuments.in/reader033/viewer/2022061114/54609dd6b1af9feb588b5245/html5/thumbnails/28.jpg)
CLASS DIAGRAM FOR RAILWAY RESERVATION SYSTEM:
COLLABORATION DIAGRAM FOR CANCEL TICKET:
COLLABORATION DIAGRAM FOR BOOKING TICKET:
![Page 29: Case Study UML(1)](https://reader033.fdocuments.in/reader033/viewer/2022061114/54609dd6b1af9feb588b5245/html5/thumbnails/29.jpg)
SEQUENCE DIAGRAM FOR CANCEL TICKET:
SEQUENCE DIAGRAM FOR BOOKING TICKET:
DEPLOYMENT DIAGRAM FOR RAILWAY RESERVATION SYSTEM:
![Page 30: Case Study UML(1)](https://reader033.fdocuments.in/reader033/viewer/2022061114/54609dd6b1af9feb588b5245/html5/thumbnails/30.jpg)
COMPONENT DIAGRAM FOR RAILWAY RESERVATION SYSTEM :
6. CASE STUDY: Retail Store Management System
![Page 31: Case Study UML(1)](https://reader033.fdocuments.in/reader033/viewer/2022061114/54609dd6b1af9feb588b5245/html5/thumbnails/31.jpg)
The Retail Store Management System is a system designed for managing i.e. For ordering, arranging and selling goods.
The Retailer checks for the availability of goods in the store. If the stock of goods is less then retailer places order for goods. While ordering the goods, goods area received at store, the retailer then arrange them by product or by price,then retailer makes payment. If the stock of goods is available then he will arrange goods for selling.
The retailer then sales the goods directly to the customer. The customer buys the items from retailer. The retailer preapares bill for goods purchased by the customer, he receives amount bycredit or by cash from customer. The supplier supplies the goods to the store in the system. The overall sysytem is used to manage the goods in th store.
USE Case Diagram:-
Activity Diagram :-Managing Goods
![Page 32: Case Study UML(1)](https://reader033.fdocuments.in/reader033/viewer/2022061114/54609dd6b1af9feb588b5245/html5/thumbnails/32.jpg)
Class Diagram:
![Page 33: Case Study UML(1)](https://reader033.fdocuments.in/reader033/viewer/2022061114/54609dd6b1af9feb588b5245/html5/thumbnails/33.jpg)
State Chart Diagram :: Order Goods
Sequence Diagram :: Managing Goods
Collaboration Diagram :: Managing Goods
![Page 34: Case Study UML(1)](https://reader033.fdocuments.in/reader033/viewer/2022061114/54609dd6b1af9feb588b5245/html5/thumbnails/34.jpg)
Deployment Diagram:-
ComponentDiagram:-
![Page 35: Case Study UML(1)](https://reader033.fdocuments.in/reader033/viewer/2022061114/54609dd6b1af9feb588b5245/html5/thumbnails/35.jpg)
7. CASE STUDY:- ATM MACHINE AND SYSTEM
ATM or rather Automated Teller Machine is also called as ANY TIME MONEY by many. The ATM system is connected to banks.
The ATM is given the utmost security in terms of technology because its a stand alone system and easily prone to malicious attacks.
The Below diagrams are has come up in Mumbai University MCA exams.
Class Diagram for ATM Machine
Use Case Diagram ATM Machine
Activity Diagram for ATM Machine 1
![Page 36: Case Study UML(1)](https://reader033.fdocuments.in/reader033/viewer/2022061114/54609dd6b1af9feb588b5245/html5/thumbnails/36.jpg)
Activity Diagram for ATM Machine 2
![Page 37: Case Study UML(1)](https://reader033.fdocuments.in/reader033/viewer/2022061114/54609dd6b1af9feb588b5245/html5/thumbnails/37.jpg)
Activity Diagram for Overall ATM Machine:-
![Page 38: Case Study UML(1)](https://reader033.fdocuments.in/reader033/viewer/2022061114/54609dd6b1af9feb588b5245/html5/thumbnails/38.jpg)
Activity Diagram Verify Password ATM Machine:-
Sequence Diagram for ATM Machine :-
![Page 39: Case Study UML(1)](https://reader033.fdocuments.in/reader033/viewer/2022061114/54609dd6b1af9feb588b5245/html5/thumbnails/39.jpg)
Sequence Diagram for Invalid Pin ATM Machine:-
Sequence Diagram ATM withdrawal:-
![Page 40: Case Study UML(1)](https://reader033.fdocuments.in/reader033/viewer/2022061114/54609dd6b1af9feb588b5245/html5/thumbnails/40.jpg)
Collaboration Diagram For ATM machine:-
Collaboration Diagram for ATM withdrawal :-
State Diagram for One Transaction ATM machine:-
![Page 41: Case Study UML(1)](https://reader033.fdocuments.in/reader033/viewer/2022061114/54609dd6b1af9feb588b5245/html5/thumbnails/41.jpg)
State Diagram one Session ATM Machine:-
Component Diagram ATM Machine:-