2

Download as doc, pdf, or txt
Download as doc, pdf, or txt
You are on page 1of 56

OOAD LAB

1. Draw the class diagrams for the following English statements and Also, show
some of the Operations and Attributes in it
1. A rose is a kind of flower

flower

1.1 generalization

rose

2. A forest is an aggregation of trees


1
forest 1..* trees
1.2 composition

3. A city is an aggregation of lights

city 1 0..* lights


1.3 aggregation

4. Circle is a kind of shape

shape

1.4 generalization
circle

5. Window will have the frame

1 1
window frame 1.5 composition

Bapatla Engineering College, Bapatla


1
6. Engine is a part of the car

car 1 1 engine 1.6 aggregation

7. A bank will have an account


1 0..1 1.7 qualify association
bank accno
acount

8. Person is married to a person

person 1.8 self association

9. Football team will have players


1 1..*
footballteam players 1.9 composition

10. Corporation will have corporation division


1 * corporationdivision
corporation
1.10 aggregation

11. Ram works at a restaurant

ram 1 1 restaurant 1.11 association

12. Ravi plays cricket

Ravi cricket
1.12 association

Bapatla Engineering College, Bapatla


2
13. Ravi always degrade himself

ravi
1.13 self association

14. All mammals have 2 eyes

mammals * 2 eyes 1.14 aggregation

15. Bank has many ATMs, ATM knows only 1 bank


1 *
Bank atm
1.15 association

16. Inventory has many items, items know 1 inventory


1 * 1.16 association
inventory items

17. 1 CPU associated with 0 or more Controllers

cpu 1 0..* controllers


1.17 association

18. 1 Bank associated with 0 or more Accounts

1 0..* 1.18 association


1Bank accounts

19. Ravi can play either football or cricket

football

RAVI {or}
1.19 association
Cricket

Bapatla Engineering College, Bapatla


3
2. Construct a model of an electric pencil sharpener showing all relevant
attributes and operations. What is its interface?

electronic
pencil 2 interface
sharpner
whole

3. Model a computer as a class and a touchpad as its interface. List the


operations of the touchpad. Also, show some of the operations in the
computer that you access via the touchpad. In your model, include a class
that represents the user. Use both the full box representation and the lollipop
representation.

computer
person
login() 3 interface
shutdown() touchpad

4. Categorize the following relationships in to generalization, aggregation,


realization or association and draw the class diagrams. Beware; there may be
n-ary associations in the list

1. A route connects two cities


connects
route cities
4.1 association
1 2

2. A student takes a course from a professor


take a course
student professor 4.2 association

3. Files contains records


contains
file records 4.3 composition
1 *

Bapatla Engineering College, Bapatla


4
4. A country has a capital city
has
country capitalcity
4.4 composition
1 1

5. A dining philosopher uses a fork

diing uses
philospher fork 4.5 association

6. A person plays for a team in a certain year


plays
Person team 4.6 association

7. A drawing object is text, a geometrical object, or a group

text

{or}
drawing object geometrical
4.7 association
{or}

group

8. Modems and keyboards are input/output devices

i/p devices

4.8 generalization

modems keyboards

9. TV is operated through remote

Bapatla Engineering College, Bapatla


5
tv user 4.9 interface
remote

5. You are interacting with an online travel agent and encounter the following
use cases. Prepare a use case diagram, using the generalization and include
relationships.
Purchase a flight. Reserve a flight and provide payment and address information
Provide payment. Information provide a credit card to pay for the incurred charges
Provide address. Provide mailing and residence addresses
Purchase a hotel stay. Reserve a hotel room and provide payment and address
information

reserveflight
<<include>>

customer

providepayment

providemailingaddress

purchasehotelstay

Bapatla Engineering College, Bapatla


6
Pragram6:
ATM Machine
Problem Statement:
ATM accepts a relevant card, interacts with the user, communicates with the
central system to carry out the transaction, dispense cash and prints receipts. The system
to be designed and implemented must include appropriate record keeping and security
provisions. The system must handle concurrent accesses to the same account.

Bapatla Engineering College, Bapatla


7
Class Diagram:

B a nk
nam e : c har
branc h : char
A TM
A ddres s : c har
S tate : c har

C lie nt
Nam e : c har A cco unt
A c c no : c har ac c ount N o : c har
P in No : num ber balanc e : num ber
ac c Ty pe : c har
withdraw()
depos it() w ithdrew ()
trans fer() c redit()
balenquiry () trans for()
balE nq()

C urre ntA cco unt


ac c no : c har S a ving sA cco unt
balanc e : num ber ac c no : c har
nam e : c har balanc e : num ber
nam e : c har

Figure 6.1: class diagram for ATM

Bapatla Engineering College, Bapatla


8
Use Case Diagram:

Bapatla Engineering College, Bapatla


9
enter intoATM

insert ATMcard

ask for languageselection

choose thelanguage

ask for PINnumber

customer enter ATMpinnumber

database

verifythePINnumber

if validuser askfor desired


operation

do withdrawor balance
enquieryoperations

if operationis withdraw
check balance

givetransactiondetails

collect receipt

leavefromtheatm

Figure 6.2: Use Case Diagram for ATM

Sequence Diagram:

Bapatla Engineering College, Bapatla


10
C ustom er A TM D ataB ase

1: Insert card
2: V alidate account

3: V alid A ccount

4: Request P IN

5: E nter P IN
6: C heck P IN

7: V alid P IN
8: Request for operation

9: S elect op eratio n
10: P roce ss Request

11: Return process result


12: Release am ount/printdetails

Figure 6.3: Sequence Diagram for ATM

Collaboration Diagram:

Bapatla Engineering College, Bapatla


11
A TM

1 : In s e rt c a rd
5 : E n te r P IN 2 : V a li d a te a c c o u n t
9 : S e le c t o p e ra ti o n 6 : C h e c k P IN
1 0 : P ro c e s s R e q u e s t
4 : R e q u e s t P IN 3 : V a li d A c c o u n t
8 : R e q u e s t fo r o p e ra tio n 7 : V a li d P IN
1 2 : R e le a s e a m o u n t/p ri n td e1ta1 i:lsR e tu rn p ro c e s s re s u lt

C u s to m
er D a ta B a s
e

Figure 6.4: Collaboration Diagram for ATM

Activity Diagram:

Bapatla Engineering College, Bapatla


12
Enter Card

Enter PIN

Valid

Yes

Cas h Withdraw BalanceEnquiry

Enter Am ount to Check Account


withdraw details

CheckMinBal
Need Print
ance
BalanceAvailabla
Yes
No
Take Cash

Print Slip

Print slip

M
M Display
Details

ACTIVITY-DIAGRAM

Figure 6.5: Activity Diagram for ATM

Deployment Diagram:

Bapatla Engineering College, Bapatla


13
C ustomer

Requests/Services

Atm system

Information
BankDatabase

Maintainence

Bank

Figure 6.6: Deployment Diagram for ATM

Program7:

Bapatla Engineering College, Bapatla


14
E-Seva
Problem Statement:
E-seva is the online payments. In the e-seva there are many types of online bill
payments (electric bill, phone bill etc).and there is a online ticket reservation system. The
electronic bill presentment & payment application (EBPP) is a web based application
which helps billers and there customers settle there transitions online.
Briefly speaking billers and issue bills (e-bill) Online and send them to their
customers electronically. The users can select to view and pay their e-bills in multiple
languages. The system will also keep tractions history between billers and customers.
EBPP system should be reasonably accessible to potential user. And online ticket
reservation system. Railways wishes to develop a ticketing and reservation system .this
must support advance booking of the tickets, cancellation of tickets and change of class of
a ticket. The system will also have a web interface where their user can register
themselves and purchase ticket online.. The system will also have a querying facility that
allows user to check train time –tables, Fares and availability of tickets.

Class Diagram:

Bapatla Engineering College, Bapatla


15
E s e va
lo c a t io n : s t rin g
n u o fb ra n c h e s : n u m b e r
n o o fe m p loy e e s : n u m be r

E s e a va O ffi c e
lo c a t io n : s t rin g
b ra n c h : s t rin g
b ra n c h c o d e : n u m b e r

n o o fe m p loy e e s ()

C lie nt
n a m e : S trin g E s e va E m p lo ye e
a d d re s s : s t ring n a m e : S trin g
p h o n en o : n um b e r d is ign a t io n : s t ring
s a la ry : d o u ble
s e le c tla n gu a g e ()
p a y b ill() p ro c e s s c lie n t s re q ()
c o llec t re c ip t ()
E s e va W e b c o llec t m o n e y ()
e n q u iry a b o u tt ra n s a c tion () m a in ta in log ()
res e rve t ic k e t() m a in ta in t im e t a b le s ()
c o llec t tic k e t ()

R a ilw a yre s e rva tio n

res e rve t ic k e ts ()
c a n c eltic k e t s ()
m a in ta in t im e t a b le s ()

Figure 7.1: Class Diagram for E-SEVA

Use Case Diagram:

Bapatla Engineering College, Bapatla


16
S e le c tL a ng ua g e M a inta inT ra ns L o g

S e le c tT yp e O fB ill

P a yB ills
E s e va c le a rk
B ille r

P ro c e s s R e q ue s t

M a inta inTim e T a b le s
C o lle c tR e c e ip t

E nq uire R e s e rva tio n& Tim e T a


b le s

P ro c e s s R e q ue s t

C o lle c tT ic k e t

Figure 7.2: Use Case Diagram for E-SEVA

Sequence Diagram:

Bapatla Engineering College, Bapatla


17
Customer E_Center ESEVA

1: MaintainDataBase

2: SelectLanguage

3: DisplayInSelectedLang

4: SelectBillType
5: VerifyBillDetails

6: Return Bill Details


7: Display Bill amount

8: Pay Money

9: CollectMoney and ProcessRequest

11: PrintDetails 10: UpdateDataBase

12: CollectPaySlip

13: EnquireReservation
14: CheckAvailability

15: ReturnAvailability
16: DisplayAvailability

17: PayMoney

18: ProcessRequest

19: PrintTicket

20: CollectTicket

Figure 7.3: Sequence Diagram for E-SEVA

Collaboration Diagram:

Bapatla Engineering College, Bapatla


18
9 : C o lle c tM o ne y a nd P ro c e s s R e q ue s t
1 8 : P ro c e s s R e q ue s t

E _ C e nte
r

2 : S e le c tL a ng ua g e
4 : S e le c tB illTyp e
8 : P a y M o ne y
1 3 : E nq uire R e s e rva tio n 5 : V e rifyB illD e ta ils
1 7 : P a yM o ne y 1 0 : U p d a te D a ta B a s e
1 4 : C he c k A va i la b ility
1 2 : C o lle c tP a yS lip3 : D is p la yInS e le c te d L a ng 6 : R e turn B ill D e ta ils
2 0 : C o lle c tTic k e t 7 : D is p la y B ill a m o unt 1 5 : R e turnA va ila b ili ty
1 1 : P rintD e ta ils
1 6 : D is p la yA va ila b ility 1 : M a inta i nD a ta B a s e
1 9 : P rintT ic k e t

C us to m
er
ESEVA

Figure 7.4: Collaboration Diagram for E-SEVA

Activity Diagram:

Bapatla Engineering College, Bapatla


19
E sevaHome

C ustom er E _S eva_C lerk

S elect
C heckB illD et
Language
ails

S elect Type
of B ill
C olle ct
Pa y M oney
A m ount

E nquireRes P rocessReq
ervation uest

Pa y M oney

Up dateD ata
B a se
C olle ct
receip t/Ticket

Figure 7.5: Activity Diagram for E-SEVA

Deployment Diagram:

Bapatla Engineering College, Bapatla


20
C ustomer

Requests/S rvices E seva C enter

ServicesInformation
E seva _DB

RailwayInformation

Ra ilway_D B

Figure 7.6: Deployment Diagram for E-SEVA

Pragram8:
Bapatla Engineering College, Bapatla
21
Safe Home
Problem Statement:
The home security system that would protect against and/or recognize a variety of
undesirable situations such as illegal entry, fire, flooding and others. The product, will
use appropriate sensors to detect each situation can be programmed by the home owner,
and will automatically telephone a monitoring agency when a situation is detected.
The main concern in systems development has been the integration of
technologies to increase customer satisfaction; the most recent being the integration of
wireless devices and home appliances. SHACS is one such system which aims at
accomplishing this. It is a system which is controlled by wireless devices like cell phones,
PDAs, palm tops etc. and in turn controls home appliances like ovens, water sprinklers,
air conditioner, doors, home alarm system, etc.
Users use SHACS to control their home appliances by using their wireless
devices. It is an adaptable system too; it detects changes in environment and acts
accordingly. It should be flexible enough to allow addition or removal of devices to
control its functioning, and also the appliances it controls. Also it should be capable
enough to add new users or remove obsolete ones.

Class Diagram:

Bapatla Engineering College, Bapatla


22
M o n ito r n g a g e n c y
n a m e : s t rin g
lo c a t io n : s t rin g
phoneno : num ber

g e t s i g n a l s fr o m s h a c s ( )
fi n d c u s t o m e r a d d r e s s ( )
t a k in g a p p r o p r ia t e d e c is io n s ( )
p ro v id e s e r vic e ( )

S a fe h o m e s y s te m
n a m e : s t rin g
S a fe H o m e s y s te m c u s to m e r
m a n u fa c t u r e r : s t r i n g
n a m e : s t rin g h e lp lin e n o s : s t r in g
a d d re s s : s trin g
c u s tid : n u m b e r m o n it o rd e v ic e s ()
m o n ito rs e n s o rs ()
m o n it o rd e v ic e s () in fo rm a u t h o r it ie s ( )
m o n ito rs h a c s () c h e c k a c c id e n t s ()

Figure 8.1: Class Diagram for SHACS

Use Case Diagram:


Bapatla Engineering College, Bapatla
23
D e te c tIlle g a lE n tr y D e te c tF IR E D e te c tF lo d d i nDg e te c tO th e rs

P ri m a ryA la r m S e n s o rs C o n tro lM a n a g e m e n t

< < in c lu d e > >

In fo rm O wn e r
H o m e O w ne r M a in ta i n U s e rs
S a fe H o m e A p p
li a n c e s
< < in c lu d e > >

In fo rm A g e n c y

M o n ito rS H A C S P ro vi d e S e rv i c eMs o n ito rin g ADg ee v ic e M a n a g e m e n t


nc y

Figure 8.2: Use Case Diagram for SHACS

Sequence Diagram:

Bapatla Engineering College, Bapatla


24
C u s to m e r S a fe H o m e S y s te m M o n ito rin g A g e n c y

1 : D e v ic e M a n a g e m e n t

2 : A d d D e vi c e
3 : C o n tro lD e v i c e s

4 : D e te c tA c c i d e n ts

5 : A p p ly P ri m a ry A c tio n s

6 : In fo rm O w n e r
7 : In fo rm M o n i to r i n g A g e n c y

8 : P e rfo rm R e la tiv e A c ti o n

9 : P e rfo rm R e la tive A c ti o n

Figure 8.3: Sequnce Diagram for SHACS

Collaboration Diagram:
Bapatla Engineering College, Bapatla
25
3 : C o n tr o lD e v i c e s
4 : D e te c tA c c i d e n ts
5 : A p p ly P r im a r y A c tio n s

S a fe H o m e S
y s te m

2 : A d d D e vic e
9 : P e rfo rm R e la ti v e A c ti o n 7 : In fo r m M o n i to r in g A g e n c y

8 : P e rfo rm R e la ti v e A c tio n
1 : D e v ic e M a n a g6 e: mIn fo
e nr m
t O w ne r

M o n ito ri n g A
C u s to m g e ncy
er

Figure 8.4: Collaboration Diagram for SHACS

Activity Diagram:

Bapatla Engineering College, Bapatla


26
SAFEHOME

ControlD evi InformOwner


ces
D etect TakeP rimary
Accidents Actions

Inform Monitoring
MonitoringAgency Agency

ProvideServi
ce

Figure 8.5: Activity Diagram for SHACS

Deployment Diagram:

Bapatla Engineering College, Bapatla


27
S a fe H o m e C us to m e r

SHAC S
M a inta na nc e

S e rvic e s
M o nito ring A g e nc y

Figure 8.6: Deployment Diagram for SHACS

Program9:
Bapatla Engineering College, Bapatla
28
Safe Railways
Problem Statement:
A Safe railway system is a system that should not cause any accidents to the trains
because these accidents may cause due to railway signaling, brake control, level-crossing,
fire accidents, scheduling of trains on a single track.
Railway signaling is a system used on railways to control traffic safely that is to prevent
trains from colliding. If there is a delay in signaling, it may result in collision. To prevent
this block signaling is used which uses a computer to calculate a safe zone, behind each
moving train, which no other train may enter depends on precise knowledge of where
each train is and how fast it is moving.
For brake control, an automatic train stop device is used which automatically activates an
emergency brake to stop a train when the operator does not correctly response to a stop
signal.

Class Diagram:

Bapatla Engineering College, Bapatla


29
R A IL W A Y S
N o O fs t a t io n s : n u m b e r
N o O ft ra in s : n u m b e r
N o O fe m p s : n u m b e r

m o n it o r S t a t io n s ()
r e s p o n d t o P r o b le m s ()
a c t iva t rS R S ()
R a i lw a y E m p lo y e e
n a m e : s tr i n g
e m p N o : num b e r
d e s i g n a ti o n : s tr i n g
tra i n N o : n u m b e r
p ho ne N o : num b e r S A F E R A IL W A Y S
m a n u fa c t u re r : s t rin g
r e c e i v e S i g n a ls ( ) T ra i n N o s : n u m b e r
a p p ly L e v e lC r o s s in g ()
a p p ly B r e a k s ( ) r e c e i ve S ig n a l ()
m o n ito r T r a c k s () a c t i va t e S R S ( )
m o n ito r T r a i n A rr iv a ls ()
c le a rT ra c k s ( )
g i v e S i g n a ls ( )
r e -b u ild S i g n a ls ( )
fi n d P ro b le m s ()
i n fo r m S R S ()

Figure 9.1: Class Diagram for SRS

Use Case Diagram:

Bapatla Engineering College, Bapatla


30
Signalling

Signal Failure

Re-Build Signal StationMaster

Guard Out of Control

Activate SRS

Fire Accidents

Apply Breaks

Driver Inform Breaks Failure

Activate SRS SafeRaliway


Controller

Level-Cros sing

LineMen Level Crossing Failed

Activate SRS

Figure 9.2: Use Case Diagram for SRS

Sequence Diagram:

Bapatla Engineering College, Bapatla


31
Tra in R a ilw a yE m p l R a ilw a ys A ut SRS
o ye e ho rity

1 : P ro b le m O c c ure d

2 : D e te c tP ro b le m

3 : Id e ntifyP ro b le m

4 : A p p lyP rim a ryA c tio ns

5 : N o tS o lve d
6 : Info rm P ro b le m

7 : T a k e P rim a ryA c ti o ns

8 : N o tS o lve d
9 : A c tiva te S R S

1 0 : S to p T ra in

1 1 : Tra inH a lte d

Figure 9.3: Sequence Diagram for SRS

Collaboration Diagram:

Bapatla Engineering College, Bapatla


32
1 1 : T ra i n H a lte d 2 : D e te c tP ro b le m
3 : Id e n ti fy P ro b le m

1 : P ro b le m O c c u r e d
5 : N o tS o lve d
T r a in
R a ilw a yE m p l
o ye e
4 : A p p lyP ri m a r yA c tio n s

8 : N o tS o lv e d
6 : In fo r m P ro b le m
7 : T a k e P rim a ryA c ti o n s
1 0 : S to p T ra i n

R a ilw a y s A u
th o ri ty

SRS 9 : A c ti va te S R S

Figure 9.4: Collaboration Diagram for SRS

Activity Diagram:

Bapatla Engineering College, Bapatla


33
Railways

Lineman/Driv
er RailwayAuth
ority

DetectProblem
s
RebuildSign
al
TakePrimary
Actions

ActivateSRS
InformAuthori
ty

Figure 9.5: Activity Diagram for SRS

Deployment Diagram:

Bapatla Engineering College, Bapatla


34
E m p lo ye e

P ro b le m s /R e q ue s ts

SRS

R a ilw a ys S R S A c tiva tio n

Figure 9.6: Deployment Diagram for SRS

Pragram10:

Bapatla Engineering College, Bapatla


35
Hospital Management
Problem Statement:
An Automation System in a Hospital or a Nursing Home would require to very
precise and must result into cost cutting and efficient management. The crucial points that
the system emphasis on are listed in the following.
• Requiremet less number of Staff to cater more patients in same time or even less.
• Hospital Management System not only provides an opportunity to the hospital to
enhance their patient care but also can increase the profitability of the organization.
• The system would enable hospitals or Nursing Homes to serve the rapidly
growing number of health care consumers in a cost-effective manner.
• Hospital administrators would be able to significantly improve the operational
control and thus streamline operations.
• This would enable to improve the response time to the demands of patient care
because it automates the process of collecting, collating and retrieving patient
information.
• The senior Doctors would spend his precious time more in clinical activities than
to put in clerical activities otherwise.

Bapatla Engineering College, Bapatla


36
Class Diagram:

H o s p ita l S ys te m
P a tie n t Nam e
Name N o . o f D o c to rs
A d d re s s + R e g is te r N o . o f P a tie n ts
Age
F a c i li ti e s ()
V e ri fy D e ta ils () D o c to rs ()
R e g is te r() R e g is tra ti o n ()
B i llin g ()

+ T re a ts
D o c to rs + C o ll e c ts In fo
Na m e
S p e c ia liza tio n

P a ti e n t D e ta i ls ()
T re a tm e n t()

Figure 10.1: Class Diagram for HM

Bapatla Engineering College, Bapatla


37
Use Case Diagram:

R e g is te ri n g
R e c e p ti o n is t

P a tie n ts
F a c i li ti e s A va ila b le

D o c to rs In fo rm a ti o n D o c to r

< < in c lu d e > >

P a tie n ts In fo rm a ti o n

< < in c lu d e > >H e a lth /S i c k n e s s


A u th o ritie s
R e p o rt G e n e ra ti o n

P e rs o n a l

Figure 10.2: Use Case Diagram for HM

Bapatla Engineering College, Bapatla


38
Sequence Diagram:

Patient System Doctors Authorities

1: Facilities Info
Facilities
Available 2: Display Facilities

3: Doctors Info
Doctor 4: Display Doctors Details
Details
5: Perform Registration

6: Enter Personal Details


Registerin
g
7: Entering Details

8: Process

9: Enter Health Details

10: Entering Details

11: Process

12: Thank You


13: Connect

Patient 14: Enter Authorisation


Details
15: Entering

16: Process

17: Response

18: Give Patient Details

19: Process

20: Display Details

21: Connecting
Report
Generation
22: Enter Authorisation

23: Entering

24: Process

25: Done

26: Generate A Report

27: Process

28: Display Day's Operations

Figure 10.3: Sequence Diagram for HM

Bapatla Engineering College, Bapatla


39
Collaboration Diagram:

8 : P ro ce ss
11 : P roc e s s
1 : F a cilitie s Info 16 : P roc e s s
3 : D o cto rs Info 19 : P roc e s s
P a tie nt 5 : P erform R e g istra tio n 24 : P roc e s s
7: E nte ring D e ta ils 27 : P roc e s s
10 : E ntering D e ta ils

2: D is pla y F a c ilitie s
4 : D is pla y D oc to rs D e tails S yste m
6 : E nter P e rs o na l D e ta ils
9 : E nte r H e alth D e ta ils
1 2 : Tha nk You
22 : E nte r A utho risa tio n
25 : D o ne
2 8 : D is pla y D a y's O p e ra tio ns
1 3 : C onne ct
1 5 : E nte ring
1 8 : G ive P a tie nt D e ta ils

1 4: E nte r A uthoris atio n 2 1 : C o nne cting


1 7 : R e sp o nse 2 3: E nte ring
20 : D is pla y D e ta ils 26 : G e ne ra te A Rep o rt

D o ctors

A utho riti
es

Figure 10.4: Collaboration Diagram for HM

Bapatla Engineering College, Bapatla


40
Activity Diagram:

Enter
Hospital

Get
Registered

See for
facilities

Contact
doctor

Get cured of
disease

Ask for
subscription

Pay the
amount

Figure 10.5: Activity Diagram for HM

Deployment Diagram:
Bapatla Engineering College, Bapatla
41
P a tient

C uring

D octor Ho spit
Looks al

M anages

Report
A uthori Genera tes
ty

Figure 10.6: Deployment Diagram for HM

Program11:

Bapatla Engineering College, Bapatla


42
Cellular phone
Problem Statement:
A mobile phone (also called mobile, cellular telephone, or cell phone) is
an electronic device used for two-way radio telecommunication over a cellular
network of base stations known as cell sites. Mobile phones differ from cordless
telephones, which only offer telephone service within limited range through a single base
station attached to a fixed land line, for example within a home or an office.
A mobile phone allows its user to make and receive telephone calls to and from
the public telephone network which includes other mobiles and fixed-line phones across
the world. It does this by connecting to a cellular network owned by a mobile network
operator. A key feature of the cellular network is that it enables seamless telephone calls
even when the user is moving around wide areas via a process known as handoff or
handover.

Class Diagram:

Bapatla Engineering College, Bapatla


43
C e llP h o n e N e tw o rk S ys te m
M o d e l : b y te
Nam e
N u m b e r : b o o le a n
A d d re s s
N o o n C o n n e c t io n s
M a k e A C a ll()
G ro u p C a l l()
V e rify N u m b e rs ()
W a k e U p C a l l()
S c h e d u le T h e C a lls ()
G a m e s ()
S e rvic e s ()
M e s s a g e s ()
B i lli n g ()
C e llP h o n e ()

C e llU s e r
Nam e
A d d re s s s
P ro o f

Figure 11.1: Class Diagram for CP

Use Case Diagram:

Bapatla Engineering College, Bapatla


44
M a k e A C a ll
D a ta B a s e S y s te m

R e c e i v e A C a ll

C u s to m e r

G ro u p C a ll

N e tw o rk

W a k e U p C a ll

C h e c k in g fo r C a lle r & C a lle


N u m b e rs

Figure 11.2: Use Case Diagram for CP

Sequence Diagram:

Bapatla Engineering College, Bapatla


45
C ustomer C ell Phone Network

1: D ial for a Number


2: Verify the C aller & C allee
Make a
C all
3: Process

4: Response

5: S chedule the C alls

6: C onnect to the C allee


Group call
7: Make A Group C all
8: V erify the Numbers

9: P rocess

10: Response

11: S chedule the C alls

12: C onnect to C allee

13: Make a C all


14: V erify the Number

Wake-up 15: P rocess


call
16: Response

17: A sk for Time

18: S pecify the Time


19: Make a S chedule

20: Process
21: Response

22: Response

Figure 11.3: Sequence Diagram for CP

Collaboration Diagram:

Bapatla Engineering College, Bapatla


46
1 : D ia l for a Num be r
7 : M a ke A G ro up C all
1 3: M a ke a C a ll
1 8 : S pe cify the Tim e C e ll
P ho ne
C ustom
er 6 : C o nnect to the C a lle e
1 2 : C o nnect to C a lle e
1 7 : A sk for Tim e
22 : R e sp o nse

4 : R e sp onse
5 : S ched ule the C a lls
10 : R e sp o nse
1 1 : S che d ule the C a lls
16 : R e sp o nse
21 : R e sp o nse

2 : V e rify the C a ller & C a lle e


8 : V erify the Num b ers
3 : P roce ss 1 4 : V e rify the Num b er
9 : P roce ss 1 9 : M a ke a S che d ule
1 5 : P ro ce ss
2 0 : P ro ce ss

Ne two rk

Figure 11.4: Collaboration Diagram for CP

Activity Diagram:

Bapatla Engineering College, Bapatla


47
Figure 11.5:Activity Diagram for CP

Deployment Diagram:

Bapatla Engineering College, Bapatla


48
C ell
User

Services

C ell
se...

Network

Networ
...
Maintaining database
Updati
on...

Figure 11.6: Deployment Diagram for CP

Pragram12:

Bapatla Engineering College, Bapatla


49
Online Book Shop
Problem Statement:
In the world of retail the presence of Internet is very useful, as well as media campaigns
can also be used for purchases by means of electronic transactions, or better known as the
E-Commerce. This application is running on Internet technology, which can be accessed
by customers from various places around the world. These applications include the
activities of the Branch Information and Book Store, Book Stock Data, New Book
Product Information, Latest Information News, Information Guest Book, Forum
Information, Polling Information, Payment Information Procedures and Product Delivery
Process Book, Customer Account Information and Booking Process, Book Products.
Simply this application can make a reservation more quickly, save money and time for
both parties

Class Diagram:

Bapatla Engineering College, Bapatla


50
C li e n t/ C u s t o m e r
Nam e
A d d re s s S i te M a n g
C a rd N o N am e
S y s te m
P IN
S e a rc h ()
O rd e r B o o k s () D e l i ve r T h e B o o k s ( )
P a y t h e A m o u n t ()

D a ta B a s e M G
N o .O f B o o k s
C o s t O f B o o+k Ms a na g e s
E d i t io n o f B o o k s

U p d a tio n ()

Figure 12.1: Class Diagram for OBS

Use Case Diagram:

Bapatla Engineering College, Bapatla


51
L is t o f B o o k s

S e le c ting B o o k s

S ite M a na g e r
C us to m e r < < e x te n d > >

P a y the A m o unt

< < e x te n d > >

Thro ug h O nL ine

Thro ug h M .O .

D a ta B a s e S ys te m s

Ne w B ooks

Figure 12.2: Use Case Diagram for OBS

Sequence Diagram:

Bapatla Engineering College, Bapatla


52
User System Site
Manager
1: Enter Into System
Display the
2: Ask for Option
List

3: Display List
4: Retrieve Index Page

5: Displays The List

6: Option As Selected Books


Select the
Books 7: Enter Book Details

8: Enter Information

9: Process The Details

10: Done

11: Ask For Amount to be Paid

Pay the
Amount 12: Process

13: Show The Amount

14: Pay The Amount

15: Book Issued

16: Establish Connection

17: Perform Authentication

Updation 18: Information Entered


and Mgmt
19: Connection Established

20: Show The Day's Operations

21: Display Details

22: Perform Necessary Updations

23: Deliver the Books

Figure 12.3: Sequence Diagram for OBS

Collaboration Diagram:

Bapatla Engineering College, Bapatla


53
1 : E nte r Into S ys te m 4 : R e trie ve Ind e x P a g e
3 : D is p la y L ist 9 : P ro c e ss The D e ta ils
6 : O p tio n A s S e le cte d B o o k s 1 2 : P ro c e s s
8 : E nte r Info rm a tio n
1 1 : A sk F o r A m o unt to b e P a id
U se r 1 4 : P a y The A m o unt

S ys te m
2 : A s k fo r O p tio n
5 : D is p la ys The L is t
7 : E nte r B o o k D e ta ils
1 0 : D o ne
1 3 : S ho w The A m o unt
1 5 : B o o k Is s ue d

1 6 : E s ta b lis h C o nne c tio n


1 8 : Info rm a tio n E nte re d
2 0 : S ho w The D a y's O p e ra tio ns
2 2 : P e rfo rm N e ce s s a ry U p d a tio ns

1 7 : P e rfo rm A uthe ntic a tio n


1 9 : C o nne c tio n E sta b lis he d
2 1 : D isp la y D e ta ils
2 3 : D e live r the B o o k s

S ite
M a na g e r

Figure 12.3: Collaboration Diagram for OBS

Activity Diagram:

Bapatla Engineering College, Bapatla


54
Enter Online
Store

See list of
books

Selecting
books

Pay amount

MO Through
Online

Pay Paying

Get registered if
needed

Figure 12.5: Activity Diagram for OBS

Deployment Diagram:

Bapatla Engineering College, Bapatla


55
Custo
mer

Browse Books

Online
Bo...

Taking order and mgn

Site
M...
Updating
Datab
ase

Figure 12.6: Deployment Diagram for OBS

Bapatla Engineering College, Bapatla


56

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy