Escolar Documentos
Profissional Documentos
Cultura Documentos
INDEX
1. Unified modeling language
2
2. Use case Introduction
8
3. Use case diagram
a. Use case of ATM machine 10
b. Use case of Library management 11
c. Use case of Railway Reservation System
12
4. Class introduction 13
5. Class diagram
a. Class diagram of collage management system
16
b. Class diagram of Hospital Management system
17
c. Class diagram of Library management system
18
6. Interactive diagram Introduction 19
7. Interactive diagram
a. Interactive diagram for ATM machine 22
b. Interactive diagram for Library Management system
23
c. Interactive diagram for Railway Reservation system 24
8. Collaboration introduction 25
9. Collaboration diagram
a. Collaboration diagram for ATM machine
26
b. Collaboration diagram for Library machine 27
c. Collaboration diagram for Railway Reservation machine
28
10.State machine diagram 30
11.State chart diagram for CD player 32
12.Activity diagram introduction 33
13.Activity diagram
a. Activity diagram of ATM without swinlanes 35
b. Activity diagram of ATM with swinlanes
36
14.Component diagram introduction 37
15.Component diagrams
a. Component diagram for ATM System 41
b. Component diagram for Hospital Management System
42
16.Deployment diagram 43
17.Deployment diagram for ATM system 44
18.Forward engineering 45
19.Reverse engineering 54
20.Case study
a. Bank ATM System 61
b. Cellular phone Network 69
c. Student course registration system 79
d. Hospital Management System 88
1. Static Diagrams
a) Use case diagrams
b) Class diagrams
c) Object diagrams
d) Component diagrams
e) Deployment diagrams
1. Dynamic diagrams
a) Interaction diagrams
i) Sequence diagrams
ii) Collaboration diagrams
a) State machine diagrams
i) State chart diagrams
ii) Activity diagrams
Applications of UML:
1. Things
2. Relationships and
3. Diagrams
Things:-
a) Structural
b) Behavioral
c) Grouping
d) Annotational
Attributes
Operations
Relationships: -
a) Simple aggregation
b) Composition aggregation
UML Diagrams: -
1. Class diagram
2. Use case diagram
3. Interaction diagram
i) Sequence diagram
ii) Collaboration diagram
1. State machine diagram
i) State chart diagram
ii) Activity diagram
1. Component diagram
2. Deployment diagram
Actor:-
Customer (actor)
Use case: -
Transfer Funds
c han ge pas s w o rd
D at aba s e s e rver
C u s t om er
C h ec k ba lan c e
Tak e m in i s ta t em ent
search books
Issue books
Person
Librarian
Renew books
Student Staff
Pay fine
Return books
E n q u ir y C h e c k in g
R e s e rva t io n
T r a i n s c h e d Bu leer t h a v a il a b i fa
li t rye s
P ay m oney
P assenger t ic k e t Is s u e r
Is s u e t ic k e t
C o n fi r m a t io n o f t ic k e t
C a n c e lla t io n o f t ic k e t
4.CLASS DIAGRAMS
Class:-
Attributes
Operations
Super
class
Unidirectional Bi directional
N o n t e a c hin g s ta ff
C o lle g e
n a m e : s t rin g
n a m e : s t rin g
* Q u a lific a t io n : s t rin g
lo c a t io n : s t rin1g
*
A d d s tu d e n t () *
1 1
re m o ve s tu d e n t()
a d d d e p ()
D e p a rt m e n t
re m d e p t() 1
a d d s t a ff() D e p t n u m : in t
re m s t a ff() D e p t n a m e : s t rin g
* L o c a tio n : s trin g
1 1 1
A d d s u b je c t ()
L ib ra ry
* 1 R e m o ve s u b je c t ()
* B o o k id : in t
T& P s e c t io n 1 .. *
1
s tu d _ id : in t
Is s u e ()
s tu d _ n a m e : s t rin g
re n e w a l()
B ra n c h : s trin g
C o lle c t fin e () *
c o m p a n y n a m e : s trin g
c o llec t b o o k s ()
1
R e c ru itm e n t ()
* *
*
s tu d e n t *
id : in t L e c tu re r
*
n a m e : s t rin g S u b je c t n a m e : s t rin g
B ra n c h : s trin g id : in t D e s ig n a tio n : s trin g
n a m e : s t rin g D e p t id : in t
* * 1 *
E n ro llm en t ()
A t te n d c la s s e s () T e a c hin g ()
A t te n d E x a m s ()
M e d ic a l s t o re
m e d ic in e n a m e : s tr in g
* m e d ic in e c o s t : in t
s u p p ly m e d ic in e s ()
H o s p it a l 1
1
N a m e : s t rin g
L o c a t io n : s t r in g D e p a rt m e n t
1
* D e p t n u m : in t
m a in t a in d o c t o r re c o r d s ( ) D e p t n a m e : s t rin g
1
m a in t a in p a t ie n t r e c o r d s () L o c a t io n : s t r in g
m a i n t a i n s t a ff r e1 c o r d s ( )
1 < < > m a in ta in d o c t o r re c o rd s ()
1
D o c to rs * * *
*
N a m e : s t r in g P a t ie n t s
S p e c i a l i z a t i o n : s t r iTn rge a t m e n t O t h e r s t a ff
N a m e : s t r in g
d is e a s e t y p e : s t r in g n a m e : s t r in g
c o n s u lt in g d o c n a m e : s t r in g
p e r f g e n e r a l c h e c tkr eu ap tsm( ) e n t : s t r i n g D e s ig n a t io n : s t rin g
* * * * * *
p re s m e d ic i n e ( )
B ill p a y m e n t()
p re s te s t s ()
p e rf s u g e ry ()
N u rs e s L a b t e h n ic ia n s
S u r g e o nPs h y s i c i a Inn st e r n s In p a t i e n t O u t p a t i e n t
L ib ra ry
N a m e : s trin g
L oc a tio n : s trin g
Is s u e c a rd s () B oo k s
m a in ta in b o ok d e ta1ils () B o o k id : in t
1 1 * Title : s trin g
1
A u tho r : s trin g
L ibra ry a d m in 1
Id : in t
N a m e : s trin g
M an a ge s lib rary ()
1
* *
* L ib rarian
O p eration U s er
Id : in t
B oo k id : in t id : in t
N am e : s tring
N am e : s trin g
is s u e ()
Is s u e b oo k s ()
1 * ren ew a l() * 1 Tak e b ook s ()
ren ew a l()
return() p ay fine ()
c o llec t fin e ()
fin e() ret urn b oo k s ()
c o llec t b o ok s ()
s tu den t F a c u lty
6.INTERACTION DIAGRAMS
a) Sequence Diagrams.
b) Collaboration diagrams.
1. Sequence Diagrams: A sequence diagram is a graphical
view of a scenario that shows object interaction in a time
based sequence, what happens first, what happens next.
Lifeline
1. Simple
2. Synchronous
3. Balking
4. Time out
5. Asynchronous
6. Procedure call
7. Return
Tools:
1. Object
2. Object message
3. Message to self
4. Return message
5. Destruction marker
2: Check card
7: Valid/Invalid
9: Valid:displays Menu
13: Available/Not
2: Available/not
3: Available:Takes books
4: Not:Leaves Library
7: Valid/Not
9: Valid:Issue Books
3: Available:Yes/No
4: No:End enquiry
7: Issues ticket
8: Updates Database
9: Confirms Reservation
2 : C h e c k c a rd
1 6 : D o u w a n t t o c o n t in u e t r a n s a c t i o n s ?
1 : In s e r t a t m c a r d
5 : E n t e r p in n u m b e r
1 0 : S e le c t w i t h d r a w o p t i o n fr o m m e n u
1 1 : E n t e r w it h d ra w a m o u n t
1 7 : C l o s e t r a n s a c t io n
User A TM
1 5 : A v a il a b l e : T r a n s a c t i o n p e r fo r m e d 6 : C h e c k p in n u m b e r
1 4 : N o t : D is p l a y s m e n u b a la n c e n o t 1a2v:a Cil ahbel ce k fo r a v a i l a b l e b a la n c e
9 : V a l i d : d i s p l a y s 1M 3e: nAu v a ila b l e / N o t
8 : In v a l i d : R e e n t e r p in7 : nVuamli db /eInr v a l i d
4 : V a li d : D i s p l a y e n t e r p i n n u m b e r
3 : In v a li d : In s e r t c a r d p r o p e r ly
D a tab a s e
s e rve r
2: A va ila b le / n o t
1 : S e a rc h fo r re q u ire d b o o k
3 : A va ila b le : Ta k es b o ok s
4 : N o t: L e a ve s Lib ra ry
Us er L ib ra ry
5 : G ive s ID c a rd for is s ue o f b oo k
11: Renewal of book s
1 3 : P a y s fin e
1 6 : R e tu rn s b o o k s 2 0 : B o o k s a d d e d b a c k
1 8 : P a y s fin e
15: Renews book s
9 : V a lid :Is s u e B o ok s 6 : C h e c k s fo r va lida t io n
8 : In va lid : D o e s n o t is s u e 1 0 : U p d a te s D at a b a s e
1 2 : C h e c k s fin e a m o u nt
1 4: U p d a te s d a t a bas e
1 7 : c h ec k s fin e a m o u n t
1 9: U p d a te s d a t a bas e
D a t ab a s
L ib raria n
e
7 : V a lid /N o t
1 : E n q u iry a b o u t t ra in
6 : P a y m o n e y fo r t ic k e t
9 : C o n firm s R e s e rva t i o n
1 0 : C a n c e lla t io n o f t ic k e t
P as s enger R e s e rva t io n
c o u n te r
4 : N o : E n d e n q u iry
5 : y e s : T e lls t h e d e t a il s o f t ra in
7 : Is s u e s t ic k e t
2 : C h e c k fo r a va il a b ilit y
8 : U p d a te s D a ta b a s e
3 : A va ila b le : Y e s / N o1 1 : U p d a t e s d a t a b a s e
d a ta b a s e
2. STATE-MACHINE DIAGRAMS
• On entry
• On exit
• Do
• On event
1. Start state:- A start state (also called an “initial state”)
explicitly shows the beginning of the execution of the
state machine on the state chart diagram or beginning of
the workflow on an activity diagram.
Normally, one outgoing transition can be placed from the
start state.
However, multiple transitions may be placed on start
state, if at least one of them is labeled with a condition. No
incoming transitions are allowed.
The start state icon is a small, filled circle that may
contain the name (Begin process).
Begin process
2. End state:- An end state represents a final or terminal
state on an activity or state chart diagram..
Transitions can only occur into an end state.
The end state icon is a filled circle inside a slightly larger
unfilled circle that may contain the name (End process).
End process
3. State transition:- A state transition indicates that an action
in the source state will perform certain specified actions
and enter the destination state when a specified event
occurs or when certain conditions are satisfied.
A state transition is a relation ship between two states,
two activities or between an activity or a state.
The icon for a state transition is a line with an arrow head
pointing toward the destination state or activity.
Tools:
1. State
2. Activity
3. Start state
4. End state
5. State transition
6. Transition to self
7. Horizontal synchronization
8. Vertical synchronization
9. Decision
10. Swimlanes
power on
open
Insert disk
Select a
song
play
Stop
Decision
Insert card
Enter pin
number
Invalid
Check pin
number.
Valid
Select any
transaction
Perform
Transaction
Yes
End
Transaction
Do u want to continue
transactions?
No
Remove card
Insert card
Check pin
Invalid number
Select any
transaction Valid
Perform
Transaction
End
Transaction
Yes
DO U want to continue
Transaction?
Remove card
No
A TM
H o s p it a l
. e x e fil e . h fi le
D o c to r D e p a r t m e n t P a t ie n t s
M e d ic a l s t o re
D a tab a s e
ATM
card
Procedure:
1. First add “Rose C++”using AddIn->Addin manager”
2. select class diagram, goto Tools->C++->code generation
3. Again select class diagram, goto Tools->C++->Browser Header
Example-18.1:-
Student
Rollno : int
Name : char[20]
Branch : char[5]
Enrollment()
Attend classes()
Attend exams()
Output:-
Student.h
#ifndef Student_h
#define Student_h 1
class Student
{
public:
Student();
~Student();
protected:
private:
private:
int Rollno;
char Name[20];
char Branch[5];
};
#endif
Staff
Id : int
Name : char[10]
Subject : char[10]
Dept Id : int
Teaching() Cleaning()
Incharge()
Output:-
Staff.h
#ifndef Staff_h
#define Staff_h 1
class Staff
{
public:
Staff();
protected:
private:
private
int Id;
char Name[10];
char Subject[10];
int Dept_Id;
};
Teaching Staff.h
#ifndef Teaching_Staff_h
#define Teaching_Staff_h 1
{
public:
Teaching_Staff();
~Teaching_Staff();
#ifndef Non_Teaching_Staff_h
#define Non_Teaching_Staff_h 1
Non_Teaching_Staff();
~Non_Teaching_Staff();
protected:
private:
private
};
#endif
Output:
Car.h
#ifndef Car_h
#define Car_h 1
#include "Wheels.h"
#include "Engine.h"
class Car
{
public:
Car();
~Car();
protected:
private:
private:
char Brand_name[20];
char Num_plate[10];
int Insurance_num;
Engine the_Engine;
Wheels the_Wheels;
};
{
Num_plate = value;
}
#endif
Engine.h
#ifndef Engine_h
#define Engine_h 1
#include "Car.h"
class Engine
{
public:
Engine();
~Engine();
protected:
private:
Car *the_Car;
};
#endif
Wheels.h
#ifndef Wheels_h
#define Wheels_h 1
#include "Car.h"
class Wheels
{
public:
Wheels();
~Wheels();
protected:
private:
private:
int Radius;
Car *the_Car;
};
return Radius;
Radius = value;
return the_Car;
}
the_Car = value;
}
#endif
Procedure:
C:/program files/Rational/Rose/C++/designs/”filename.cpp”
2. Tools->C++->Reverse engineering
3. File->new
Example 1:-
Class employee
Private:
Int id;
Char name[20];
Kakatiya Institute of Technology and Science Page 61
Roll No:_____________________ OOAD LAB
Public :
Getdata();
};
employee
id : int
name : char [20]
Getdata()
Class staff
Private:
Int id;
Name:char[20];
Public:
getdata();
};
Private:
Int x;
Public:
Putdata();
};
Private:
Int y;
Public:
Display();
};
Output:-
staff
id : int
name : char [20]
getdata()
ntstaff tstaff
y : int x : int
Display() Putdata()
Example3 :- Aggregation
Class car
Public:
Char brand_name[20];
Char num_plate[10];
Int ins_num;
Class Engine E;
Class Door D;
Class Wheel W;
};
Class Engine
};
Class Door
Void close();
};
Class Wheel
};
Then we get,
Output:
car
Engine
brand_name : char [20] +E
num_plate : char [10] br_type : char [10]
ins_num : int 1 1 runs_car()
D : Door
Wheel
+W
Radius : int
1
Rotates()
CASE-STUDY
Each bank provides its own computer to maintain its own accounts and process transactions
against them. With this system, a client must first open account before he can use ATM. The
opening account involves the client providing his Personal information, and SSI. A client
may open one or more accounts for deposit ,withdraw, transfer money between checking and
saving account. The client can check the account status 24 hours a day.
When the client deposit/withdraw money. The client must specify which account and the
amount. Then ATMs communicate with a central computer which clears transactions with the
appropriate banks. An ATM accepts a cash card, interacts with the user, communicates with
the central system to carry out the transaction, dispenses cash, and prints receipts. The system
requires appropriate recordkeeping and security provisions. The system must handle
concurrent accesses to the same account correctly. The banks will provide their own software
for their own computers.
Functional Requirements
The functional requirements are organized in two sections; First requirements of the ATM
and second requirements of the bank computer.
* Requirements of the ATM
- authorization process
- transaction (withdrawal process)
Non-functional Requirement
The non-functional requirement is bellowed.
* The ATM network has to be available 24 hours a day.
* Each bank may be processing transactions from several ATMs at the same time.
* The ATM must be able to use several data formats according to the data formats that are
provided by the database of different banks.
System startup
Operator
System shutdown
Session
Invalid Pin
Customer
<<include>>
<<extend>>
Transaction Bank
Bank
ATM customers
ACustomers
State
CustomerNumber Bank()
Current Customer readCustomers()
AccountBank addCustomers()
Start State findCustomer()
Pin State
Account State
Transact State Customer
ATM() CheckingAccount
setCustomerNumber() SavingsAccount
selectCustomer() customerNumber
selectAccount() pin
Withdraw() accounts
Deposit()
setState() Coustomer()
match()
getAccount()
0..*
BankAccount
Balance
ATM Simulation
BankAccount()
deposit()
withdraw()
getAccount()
Atm Database
Interface
:
User Insert Card
Enter Pin
Validate Pin
Validate Ok
Show Options
Choose Option
Select Withdrawl
Enter Amount
Check Balance
Validate Ok
Receive Cash
Remaining balance
Balance Slip
5 : S h o w O p tio n s
A tm
In te rfa c e
1 : In se rt C a rd
2 : E n te r P in 3 : V a lid a te P in
6 : C h o o se O p tio n
8 : E n te r A m o u n t
7 : S e le c t W ith d ra w l 9 : C h e c k B a la n c e
1 1 : R e c e iv e C a sh 4 : V a lid a te O k
1 3 : B a la n c e S lip 1 0 : V a lid a te O k
1 2 : R e m a in in g b a la n c e
D a ta b a s e
: U ser
insert card
enter pin
invalid
valid
select
transaction
perform
more trasactions transaction
no more transactions
collect card
h e a d e r file s
a tm _ m a in
A tm e x e c u ta b le
f ile s
a tm _ file s
A tm d a ta b a s e
w ith d r a w a l b a la n c e c h a n g e p in
m in i s t a te m e n t
Customer may be AT M
card holder,credit,debit AT M M achine
card holder or oline AT M providing services
user of bank M achine of ATM transaction
Bank Client
Database Desktop
Client Desktop
providing services
at desks
Card
Reader
Employee
Console
Webpage providing
services of online
transaction
Problem Statement:
The application monitors cell tower site usage by tracking cell phones as they move
around, are turned on and off, originate or receive calls and run out of battery power. Note
that calls are tracked in two directions - both originating from the cell phone and received by
the cell phone. Calls may be made to or received from a cell phone being tracked in the
application, or from an outside number. Assume that the cell phone data comes from previous
field monitoring and testing procedures (although randomly generated data or keyed input are
other possible data capture sources).
Functional Requirements:
Cellular Network: A cellular network is a network distributed over land areas called cells,
each served by at least one fixed-location known as a or . When joined together these cells
provide radio coverage over a wide geographic area.
Place Phone call:User places a phone call to the receiver and the cellular network identifies
this phone call.
Receive phone call: User recieves a phone call from the sender and the cellular network
identifies this phone call.
Place Conference Call: User places a Conference call if he need and the cellular network
identifies it.
Receive additional Call: when reciever is on call and gets an additional call then he holds
the present call and receive the additional call.
a) System should be designed simple enough to enable User to operate the phone without any
formal training or delay.
c)System must be efficient to use and provide quick recover from the fault.
e)User interface screen must be designed to operate easily. It should have visual appealing.
P la c e P h o n e c a ll P la c e c o n fe r e n c e c a ll
C e llu la r
n e tw o r k
R e c e iv e p h o n e c a ll R e c e iv e a d d itio n a l c a ll
U ser
U s e s c h e d u le r
Speaker
Emit tone()
Dialler
Cellular Radio
Button
Digit()
Connect()
Send()
Dialler Display
Display CRDisplay
DisplayDigit()
S e n d :B u tto n :S e n d B u t to n :D i a le r : C e llu la r D i s p a y C R D i
A a d a p te r R a d io s p la y
1 : B u tt o n p r e s s e d ( )
2 : S e n d ()
3 : C o n n e c ti o n ( p n o )
4 : In u s e ( )
1 : B u tt o n p re s s e d ()
2 : S e n d ()
S e n d : B u t to n : S e n d B u tt o n : D ia le r
A a d a p te r
3 : C o n n e c t io n (p n o )
4 : In u s e ()
: C e llu la r D is p a y C R
R a d io D is p la y
Process the
dial
Busy Ringingtone
Response
Have balance
Balance out
Cut the
service After Completion
idle
Off-hook
On-hook
On-hook
Dial
Ready to Talk
dial
Tim e-out
C e llu la r N e tw o rk M a i n
C e llu la r
E x e c u ta b le
N e tw o rk D a ta b a s e
N e tw o rk
User
M a k e C a ll R e c e iv e C a Ull s e S c h e d u leRr e c e iv e p h o n e C a ll
P la c e P h o n e C a ll
Control
console{0...*} Central
Server
Fixed
Installation
T ablet
PC{0...*}
Problem Statement:
At the beginning of each semester students may request a course catalogue containing a list
of course offerings for the semester. Information about each course, such as professor,
department, and prerequisites will be included to help students make informed decisions.
The new on-line registration system will allow students to select four course offerings for the
coming semester. In addition, each student will indicate two alternative choices in case a
course offering becomes filled or canceled. No course offering will have more than ten
students. No course offering will have fewer than three students. A course offering with
fewer than three students will be canceled. Once the registration process is completed for a
student, the registration system sends information to the billing system, so the student can be
billed for the semester.
Professors must be able to access the on-line system to indicate which courses they will be
teaching. They will also need to see which students signed up for their course offering.
For each semester, there is a period of time that students can change their schedules. Students
must be able to access the on-line system during this time to add or drop courses. The billing
system will credit all students for courses dropped during this period of time.
Functional Requirements:
Maintain curriculum: This use case is started by the registrar. It provides the capability to
create, review, modify, and delete a list of course offerings for a given semester.
Maintain Student Information: This use case is started by the registrar. It provides the
capability to create, review, modify, and delete student information.
Maintain Staff Information: This use case is started by the registrar. It provides the
capability to create, review, modify, and delete staff information.
Register for programmer: The use case is started by the student. It provides the capability
to create, review, modify, and delete a course schedule for a specified semester.
Write exam: This usecase is started by the student. It provides the capability to write exam.
Pay Fee: This usecase is started by the student. It provides the capability to pay fee.
NonFunctional Requirements:
• System should be designed simple enough to enable staff to operate enqiry screen
without any formal training or delay.
• System must be secured and protected from the staff and other unauthorized users.A
student is allowed only to view and restricted to access/insert/update the other part of
the system.
• Student is not necessary to maintain the staff information,student information and
curriculum.
• Registrar is not necessary to pay fee and write exam.
maintaincurrirculum
registrar
maintainstudent
information
maintainstaff
inforam ation
student writeexamination
payfee
university department
has a
name : char[20] deptno : int 1..* head of
location : char[20] depname : char[20]
1
1..* 1
assigned to
member
1..* 1
1..*
student provide staff
sttudent name : char[20] staffname : char[20]
studentid : int staffid : int
1..* 1..*
attend teach
1..*
1..* 1..*
programme
progrmname : char[20]
1: send
2: attend
3: [pass]admit
1: send
student application
3: [pass]admit
2: attend
inteview admission
start
addstudent[c<n]
intialization open
add student/ set c=0
do/ intialize batch entry/ register student
exit/ increment student
cancel [c=n]
cancel
canceled close
do/ notify registerd students cancel do/ finalize batch
end
d a ta b a s e
Problem Statement:
Due to budget cutbacks and general concern for providing the best service
possible to the public, we as a hospital would like to ensure that we are using our scarce
hospital resources in the most efficient manner possible. With this in mind we would like you
to design a system which will help us manage our hospital in an efficient, effective manner.
Specifically the system should help us schedule and monitor the various resources that we
have at the hospital. This includes keeping track of available beds, waiting lists for patients,
patients expected length of stay, scheduling of surgeries, patient notification and billing,
scheduling of nurses and doctors.
A patient can be registered either at the IPD front office or at the OPD reception.
The OPD or IPD identification number is also created for each of the patient's separate visits.
This also serves as a part of patient registration. The IPD/OPD ID is used for tracking the
medical records of the patient for that particular OPD visit or IPD admission. All medical
records of the patient are identified by a combination of numbers, i.e. Patient ID and
OPD/IPD ID. The numbers allow for a flexible search in terms of finding the patient's history
record.
Functional requirements:
Prescription: This Module handles various activities such as Doctor Diagnoses the patient,
gives treatment & gives suggestions to the patients & prescribes laboratory tests& medicines.
Operation: This is initiated by the doctor and undergoes the various operations by
diagnosing the patients.
Checking: This is initiated by doctor who treats patients came for checking. Patients tells the
problem so that the doctor gives prescription according to his problem.
Receptionist: The person who gives the details of doctors, requirements available in the
hospital, gives the appointment to the patient and collects the fee from the patient.
NonFunctional requirements:
b)System must be secured and protected from the staff and other unauthorized users.A
patient is allowed only to view and access the enquiry and restricted to access
/insert/update the other part of the system.
c)Staff members must know the correct functioning of the equipments in the hospitai.
checking
patient
doctor operations
receptionist
prescription
Goes to has a
has a has a
medical shop
is a is a is a
D o c to r
Patient P a tieDoctor
nt in te rfa c e re c e p tio n is t
d ia gn o stic
1 : P a tie n ts n a m e , a ge
2 : C o lle c t fe e s
3 : C h e c k s p a tie n ts
4 : P e rfo rm so m e o p
5 : G e ts R e p o rt
6 : G iv e s p re s c rip tio n
3: Checks patients
4: perform some op
6: Gives Prescript
Doctor Patient
2: Collect fees
5: Gets Report
1: Patients name,age
interface receptionist
diagnostic
Doctor
NO
Prescription
perform
operation
Prescriptio
n
H o s p it a l H e a d e r f ile s
H o s p it a l M a in S p e c if ic a t io n
D o c to r
D ia g n o s is
H o s p ita l
E x e c u ta b le F ile R e c e p tio n is t
D e p a r tm e n t P a t ie n t T e s tin g
R e s u lt
d a ta b a s e
P a tie n t R e c o r d s
N am e Id C h ie f d o cNt oa rm e A ge A p p o in tm e n t
artifact
Contains
Information about
Receptionist PC
articfact
User Friendly
Screens
Problem Statement:
Problems that are facing by the users while using the current Library system. The current
system of the university doesn’t allow users to login from different campuses.
1. As it is not available online every student calls up to find out if the book is available or not.
- Too many calls to answer
2. Every time a student calls for a book you have to check the racks for the availability of the
book. - Too much of physical work.
3. If some one reserves the book, he’s not sure if he definitely can get the book as the
previous student may not return in time.
4. Either the student has to call or come to the library to reserve the book, but cannot reserve
online over the internet.
Functional Requirements:
a)Member of library:All the staff and student members of the college can become a member
and obtain the library card of library by showing id card issued by the college.
b)Article: A college library has books,journals audio and vedio and cassettes and
CDROMS.They are collectively called as articles in the library.
c)Lend Article:A library member can borrow maximum of 4 books for the period of 15 days.
d)Return of the Article:A library member can return an article. In case of default over due
charges will be levied.
e)Renewal of Article:A library member can renew the article borrowed,when other library
members donot reserve it.
f)Loss of Article: Loss of Issued Articles should be reported immediately to the librarian.
g)Loss of Member card: Loss of Member card should be reported immediately to the
librarian.
h)Enquiry:Library member can enquire about the articles details availability and their
possible return dates in case of issued.
i)Reservation: A Library member can reserve an article that is not currently available in the
library.
Non-Functional Requirements
a) System should be designed simple enough to enable library member to operate enquiry
screen without any formal training or delay.
b)System must be secured and protected from library members and other unauthorized users.
A member is allowed only to view and access the enquiry and restricted to
access/insert/update the other part of system.A member can borrow, reserve or return book
only through a librarian.
d)System must be efficient to use and provide quick recover from the fault.
f)User interface screen must be designed to operate easily. It should have visual appealing.
Enquiry
MakeReservation
Member
Article Renewal
Remove reservation
Librarian
Lend article
Return of article
lA
fF
tT
p
cie
M
m
a
b
rn
U
P
0
v
ryip
su
d
to
.a
e
a
tlcn
b
p
rd
w
s.yim
fd
cia
h
tu
yn
rb
m
*lo
e
lc
w
td
a
o
rive
a
n
cip
ltd
sro
w
m
vze
o
d
a
tlcn
isfp
b
m
e
t(rca
io
u
d
n
se
d
le
)n
cio
t(p
rg
m
te
n
(lc)io
b
(ct
n
p
)ih
e
(si)ly
a
rm
(is)e
s(
)te
()
)
F ro n t :T itle :A r tic le :M e m b e r
P a n e l:L e n d ...
: L ib r a r ia n
1 : L e n d in g d e ta ils ( T itle ,M e m b e r )
2 : V a lid a te :F in d B o r ro w in g L im it
3 : B o rr o w lim it o k
4 : F in d a v a ila b ility
5 : A v a ila b le O K
6 : U p d a te is s u e d e ta ils
7 : U p d a te a v a ila b le c o p y
8 : U p d a te b o o k b o rr o w e d
9 : C lo s e
6 : U p d a t e is s u e d e t a ils 2 : V a lid a te :F in d B o r r o w in g L im it
8 : U p d a te b o o k b o rro w e d
3 : B o r r o w lim it o k
: A r tic le :M e m b e r
T it le r e s e rv a tio n /r e s e rv e d c o p ie s + +
N o t r e s e rv e d
R e s e rv e d
e n try / re s e rva t io n := 0
R e s e r v a tio n r e m o v e d / r e s e r v e d c o p ie s --
e
iA
a
R
sIw
vrsc
ie
tF
n
tsfq
a
d
o
iu
e
h
rn
i
rlce
to
r
lm
tva
a
b
ie
tl
a
it
e
vla
i
ro
e
a
istn
li
rce
a
l,
e
b
m
lse
e
rm
b
va
d
e
r
d
o
n
e
L i b ra ry m a in
L ib ra ry
e xe c uta b le
L i b ra ria n M ember
L i b ra ry d a ta b a s e
Node1: Library
Information Server
Node 2: Counter PC
Problem Statement:
Functional Requirements:
Buy ticket:Initiated by the passenger to buy ticket,the passenger pays cash and presses
‘accept cash’ button.the system checks out the cash and print out the ticket and dispense the
balance if any.The system also updates the records to reflect the number of tickets to each
designation,the total cash collected,total cash dispensed,current balance etc.,
Summary report:Initiated by the operator to know the summary of the total business
transacted for the day,the cash collected and balance cash available in the system.
Withdraw cash: Initiated by the operator to withdraw cash from the machine. The operator
connects to the machine locally and the machine dispenses cash.
Deposit cash :Initiated by the operator to deposit cash in the machine. The operator connects
to the machine locally and specifies the amount to be deposited with the denomination
details.
Check Master files: Initiated by the system administrator. System administrator can log in
from a remote place and check the details of machine-id, user-id, password and ticket,
balance details.
a) System should be designed simple enough to enable operators to get summary reports,get
chas details, withdraw cash and deposit cash without any delay.
b)System must be secured and protected from passengers and other unauthorized users. A
passenger is allowed only to enquire ticket details and buy ticket.
e)System must be efficient to use and provide quick recover from the fault.
g)User interface screen must be designed to operate easily. It should have visual appealing.
Passenger
Buy ticket
check master files
Withdraw cash
Deposit Cash
Requistionslip
startingplace
FrontPanel destinationplace
traveldate
passenger[5]
age[5]
remark[5]
Cash
fare
Denomination
Printer
Ticket Report
Note
Denomination Denomination
P assenger : P F ro n t T ic k e t R e q u is itio F a re c a l c u l
P anel t ra n s a c te r n s l ip a to r
1 : T ic k e t R e q u e s t
2 : G e n e ra te R e q u e s t
3 : P re p a re S lip
4 : G e t F a re
5 : F a re
7 : F a re 6 : F a re
8 : In d ic a te F a re
1 : T ic k e t R e q ue s t 2 : G e ne ra te R e q ue st
F ro nt T ic k e t
P a ne l tra ns a c te r
8 : Ind ic a te F a re 7 : F a re
P a ss enge r : P
6 : F a re
3 : P re p a re S lip
4 : G e t F a re
R e q uisiti F a re c a lc
o ns lip ula to r
5 : F a re
Start
specify ticket
details
Check master
files
Buy Ticket
Get cash
details
Pay cash
Update master
Files
T ic k e t V e nd ing M a in
T ick e t V e nd ing
E xe c uta b le F ile
T ick e tV e nd ingD a ta b a s
e
D e p o s it C a sh W ithd ra w c a sh
S um m a ry R e p o rtB uy T ic k e t T ic k e t D e ta ils
server1 server2
server3
Problem Statement
The Trading System must take care of sales information of the company and must
analyze the potential of the trade.
A Trading System processes live market data from the Data Provider using compute
resources hosted by the Compute Provider, running software from the Software Provider to
supply processed data to the customer.
A Trading System demands a high availability of resources. Non-availability of
resources means an absence in market trading which, in turn, can lead to missed
opportunities. Security is of paramount importance. In addition, regulatory issues exist within
institutions that place restrictions on the accessibility of spatial information across their
distributed enterprises.
Functional Requrements:
Ship order: This module is initiated by the customer in which all orders will be shipped
without delay.
Ship Partial order:This module is initiated by customer in which all orders will be
shipped partially.
Bill customer: This module is initiated by customer to bill the consumer (for credit card use
only).
Validate customer: This module is initiated to check for the validation of the customer
a)System should be designed simple enough to enable customer to operate enqiry place,
track, ship, partial ship order without any delay.
b)System must be secured and protected from the customer and other unauthorized users.A
student is allowed only to view and restricted to access/insert/update the other part of the
system.
d)Software must be efficient to use and provide quick recover from the fault.
C u stom er
S hip partial ord er
B ill cu sto m er
Product
Customer
Order Id
name Places Item Name
address
quantity 1 1..* Price
phone
Location
Prepare
Process
1 : S ub m it O rd er
2: P lace order
3: T rigger bill
4: Ackn ow ledge o rd er
1: Submit Order
Order
taken
Customer :
Customer
3: Trigger bill
Order Billing
fulfillment agent
C u s to m e r S a le s
Reques t
S ervice
Tak e order
F ill order
P ay
Deliver
O rder
Collec t
order
T rading M ain
T rading System
Executable File
T rading Database
Purchase
Stock Balance
Reorder
Check
Place order
Receiver
Order