You are on page 1of 93

Syllabus

CS2357 OBJECT ORIENTED ANALYSIS AND DESIGN LAB 0 0 3 2

1. Passport automation system. 2. Book bank 3. Exam Registration 4. Stock maintenance system. 5. Online course reservation system 6. E-ticketing 7. Software personnel management system 8. Cre it car processing 9. E-book management system 10. Recruitment system 11. !oreign tra ing system 12. Conference "anagement System 13. BPO "anagement System

CS2357

OBJECT ORIENTED ANALYSIS AND DESIGN LAB

LTPC 0032

OBJECTIVE: To !"!#o$ % &'(')$*o+!,- .o##o/'(0 -1! 12 !2!*,'3!3 #'3-! 4!#o/.


1. #o evelop a problem statement. 2. $evelop an %EEE stan ar SRS ocument. &lso evelop risk management an pro'ect plan ()antt c*art+. 3. % entify ,se Cases an evelop t*e ,se Case mo el. 4. % entify t*e business activities an evelop an ,"- &ctivity iagram. 5. % entity t*e conceptual classes an evelop a omain mo el wit* ,"- Class iagram. 6. ,sing t*e i entifie scenarios fin t*e interaction between ob'ects an represent t*em using ,"- %nteraction iagrams. 7. $raw t*e State C*art iagram. 8. % entify t*e ,ser %nterface. $omain ob'ects. an #ec*nical services. $raw t*e partial layere . logical arc*itecture iagram wit* ,"- package iagram notation. 9. %mplement t*e #ec*nical services layer. 10. %mplement t*e $omain ob'ects layer. 11. %mplement t*e ,ser %nterface layer. 12. $raw Component an $eployment iagrams. TOTAL 5 45 PERIODS

S600!3-!

o&%'(3 .o* 7'(')$*o+!,-.

1. Passport automation system. 2. Book bank 3. Exam Registration 4. Stock maintenance system. 5. Online course reservation system 6. E-ticketing 7. Software personnel management system 8. Cre it car processing 9. E-book management system 10. Recruitment system 11. !oreign tra ing system 12. Conference "anagement System 13. BPO "anagement System

S600!3-! So.-/%*! Too#3


&rgo,"-. Eclipse %$E. /isual Para igm. /isual case. an Rational Suite

INTROD8CTION TO 87L DIAGRA7S E9NO: DATE: ,"- stan s for ,nifie "o eling -anguage. #*is ob'ect-oriente system of notation *as

evolve from t*e work of )ra y Booc*. 0ames Rumbaug*. %var 0acobson. an t*e Rational Software Corporation. #*ese renowne computer scientists fuse t*eir respective tec*nologies into a single. stan ar i1e mo el. #o ay. ,"- is accepte by t*e Ob'ect "anagement )roup (O")+ as t*e stan ar for mo eling ob'ect oriente programs. Eac* ,"- iagram is esigne to let evelopers an customers view a software system from a ifferent perspective an in varying egrees of abstraction

T:$!3 o. 87L D'%0*%&3 ,"- efines nine types of iagrams2 class. ob'ect. use case. se3uence. collaboration. statec*art. activity.

C#%33 D'%0*%&3 Class iagrams are t*e backbone of almost every ob'ect oriente met*o . inclu ing ,"-. #*ey escribe t*e static structure of a system. S*ows a collection of static mo el elements suc* as classes an types. t*eir contents. an t*eir relations*ips. 83! C%3! D'%0*%&3 ,se case iagrams mo el t*e functionality of system using actors an use cases. S*ows use cases. actors. an t*eir interrelations*ips S!;6!(,! D'%0*%&3

Se3uence iagrams escribe interactions among classes in terms of an exc*ange of messages over time. "o els t*e se3uential logic. in effect t*e time or ering of messages between classifiers.

Co##%4o*%-'o( D'%0*%&3 Collaboration iagrams represent interactions between ob'ects as a series of se3uence messages.

Collaboration iagrams escribe bot* t*e static structure an t*e ynamic be*avior of a system. S-%-!,1%*- D'%0*%&3 Statec*art iagrams escribe t*e ynamic be*avior of a system in response to external stimuli. Statec*art iagrams are especially useful in mo eling reactive ob'ects w*ose states are triggere by specific events. A,-'"'-: D'%0*%&3 &ctivity iagrams illustrate t*e ynamic nature of a system by mo eling t*e flow of control from activity to activity. &n activity represents an operation on some class in t*e system t*at results in a c*ange in t*e state of t*e system. #ypically. activity iagrams are use to mo el workflow or business processes an internal operation.

E2.No: 01 DATE: AT7 SYSTE7 7OD8LE 1 ,ser inserts *is car . /ali ate t*e user4s car . #*e pin is entere by t*e user #*e &#" system vali ates t*e pin. using a atabase. %f t*e pin is invali . an error message is printe

7OD8LE 2 Enter amount to be wit* rawn Enter type of account to be use

7OD8LE 3 /ali ate t*e amount. C*eck if t*e user4s account *as t*e re3uire amount. %f not available. print an error message. 7OD8LE 4 $ispense t*e amount %f user re3uires a receipt. print t*e receipt of t*e transaction an t*e account balance. E'ect t*e car for t*e user to take back

CLASS DIAGRA7
CustomerDetail Card Pin request() BankDB Log Balance process equest() Withdrawal AccNo Amount drawAmt() feasible()

8SE CASE DIAGRA7

!nsert"Card

ead"Card

#alidate"Card Customer $nter"Pin A%&"'er(er

#alidate"Pin

$nter"Amount

Dispense"Amount

ACTIVITY DIAGRA7

)ser"selects" withdrawal

)ser"enters"account" pin

'*stem"(erifies" pin

!s"password" correct+ -es $nter"amount

!n(alid"pin No

!s"amount"(alid+ No -es ,i(e"amount

!n(alid"amount

COLLABORATION DIAGRA7
1/"Boot"up

./"'witch"0n 3/"$nter"amount )! 2/"get"Cash"Amount 5/"0pen"Connection 6/"Checking"Account 7/"#alidate"Amount 4/"'et"Cash"Amount 8/",i(e"amoubnt Bank" Network A%&" 'er(er

Cash" Dispenser

SE<8ENCE DIAGRA7
)! A%&"'er(er Cash" Dispenser Bank"Network

'witch"0n Boot"up

get"Cash"Amount

$nter"amount 'et"Cash"Amount 0pen"Connection Checking"Account #alidate"Amount ,i(e"amoubnt

CO7PONENT DIAGRA7
'er(er

)ser

A%&")!

Printer

DB&'" 'er(er

DEPLOY7ENT DIAGRA7

'er(er

,et"details

DB&'" 'er(er

Withdraw

Printer )! Print"receipt

STATE C=ART DIAGRA7

099"entr*:displa*" ;Not"A(ailable; switch"turned"on":" perform"startup

switch"turned"offf: perform"shutdown

card"inserted:create"session 'er(ing"customer" include"session session"completed"or"aborted !DL$"entr*:displa*" ;Please"!nsert"Card;

RES8LT:

#*e above mo ules for t*e &#" System *ave been esigne an verifie .

E2.No: 02 DATE: CO8RSE REGISTRATION SYSTE7 7OD8LE 1 )et t*e stu ent registration number an *is ate of birt*. #*e registration number s*oul be verifie wit* t*e existing atabase of vali registration numbers.

7OD8LE 2 )et t*e cutoff. Compare t*e cutoffs an recor t*e cutoff along wit* t*e stu ent4s registration time.

7OD8LE 3 $isplay t*e colleges. w*ose re3uire cutoff is less t*an or e3ual to t*e stu ent4s total cutoff mark. #*e stu ent must c*oose *is preferre college. $isplay t*e available courses in t*e selecte college. #*e stu ent must now c*oose *is preferre course.

7OD8LE 4 #*e stu ent must finally be informe t*at *e *as been registere successfully.

ACTIVITY DIAGRA7

Enter Reg5o 5o %s t*e no vali 6

7es Enter CutOff Cut off Compare Cut off wit* Cutoffs of available colleges

%s cut off89re3uirement of college6 7es & to &vailable Coll -ist

Select Course

Register Stu ent

Save

COLLABORATION DIAGRA7

:2 /erify ;2 Enter %$ <2 Enter esire course =2 Re3uest Selection @2 >2 a Stu ent(+ ?2 Save(+ C2 Courses

S2Stu ent

Course "aintenance System

SE<8ENCE DIAGRA7

S2Stu ent Enter %$

Course "aintenance System

C2 Courses

/erify Re3uest Selection

Enter esire course a Stu ent(+

Save(+

8SE CASE DIAGRA7

Enter Registration 5umber

/erify %$

Stu entReg

Enter Cut-Off

S*ow &vailable Courses

Registration System

Select Course

Register Stu ent

CLASS DIAGRA7
College Coll<!D name cutoff selectCourse() add'tudent() Course course<!D name seats<A(ailable register()

'tudent<Details egNo D0B getCutoff()

'elects

has

DEPLOY7ENT DIAGRA7
Client" Processor Web"'er(er

CO7PONENT DIAGRA7

STATE C=ART DIAGRA7

,et" egister"no

,et"cut"off

Compare" cuttoff

Add"to"a(ailable" college"list

$nter" course

egister" 'tudent

RES8LT: #*e above mo ules for t*e Course Registration System *ave been esigne an verifie .

E2.No: 03 DATE: 7OD8LE 1: 7OD8LE 2: 7OD8LE 3: 7OD8LE 4: 7OD8LE 5: 7OD8LE 6:

E9PERT SYSTE7

#*e user logs into t*e system wit* t*e user login i an passwor . #*e connection is ma e wit* t*e EA atabase w*ere a ran om set of ;B 3uestions along wit* t*eir c*oices are selecte . #*e 3uestions are selecte in suc* a way t*at t*e same set is not repeate for t*e same login i .

Cere. ten 3uestions are isplaye . &s t*e user c*ooses an option it is store in EA marks format for evaluation.

#*e marks t*at are store in EA marks are transferre to EA system. EA system calculates t*e sum an isplays it as Emotional Auotient.

#*e EA value is connecte to t*e EA atabase in w*ic* t*e c*aracteristic matc*ing t*e EA value is isplaye .

&gain. t*e EA value is compare wit* t*e atabase for isplaying t*e users4 rawbacks an ways of improvement.

%f t*e user is intereste t*en provi e an interface for entering personal etails wit* EA for future reference. #*e etails are store in t*e EA atabase an can be accesse only t*roug* entering t*e correct passwor .

CLASS DIAGRA7
$="&arks selectedchoices (aluatechoices()

$="=uestions selectques choices

transfers

"""calculates $="'*stem choice(alue sum.()

ACTIVITY DIAGRA7

'tart"the" application $nter"the"username" and"password

#erif*"username" and"password

$nter"into" s*stem

$nter"personal" details

ead"the" question 'elect"the" answers

#iew"past" records

'ubmit"answers 'a(e"*our" current"$= #iew"the"result

'a(e"settings

Log"out

COLLABORATION DIAGRA7

1/"(erif*"username"and"password )ser" !nterface $="Database

4/"update"marks"on"database 5/"calculate"result ./"login 2/"pose"question 7/"displa*"$= 3/"select"answer 6/"gi(e"$="result

$="'*stem

SE<8ENCE DIAGRA7

$="'*stem login

)ser"!nterface

$="Database

(erif*"username"and"password

pose"question

select"answer

update"marks"on"database

calculate"result

gi(e"$="result

displa*"$=

STATEC=ART DIAGRA7

$nter"login" details #erif*" details $nter" s*stem ead" question 'ubmit" answer #iew"result

$nter"user" details Look"through" past"records

'a(e" current"$=

'a(e"user" settings

Log"out"of" the"s*stem

8SECASE DIAGRA7

Creation

Log>in )ser Answer"questions Administrator

Wait"for"inference

#iew"marks

Personal"Details

&aintenance

CO7PONENT DIAGRA7

'er(er

)ser

$?pert")!

Printer

DB&'" 'er(er

DEPLOY7ENT DIAGRA7

'er(er

,et"details

DB&'" 'er(er

,et"question

Printer )! Print"result

RES8LT: #*e above mo ules for t*e Expert System *ave been esigne an verifie .

E2.No: 4 DATE:

LIBRARY 7ANAGE7ENGT SYSTE7

7OD8LE 1 Provi e a user interface for getting t*e user4s login etails. /erify login %$ an if correct. provi e access to t*e library atabase.

7OD8LE 2 Provi e a searc* mec*anism to searc* for a particular book. %nput t*e book name an t*e aut*or4s name.

7OD8LE 3 )et t*e book etails from t*e atabase. $isplay t*e book etails on t*e screen.

7OD8LE 4 &llow t*e user to select t*e book for c*ecking out. %ssue t*e book.

SE<8ENCE DIAGRA7

'tudent

Librarian

librar*

" Administrator

$nter"Login"Details #erif*"Authentication ,rant"Permission:"Den* $nter"Login"Details #erif*"Authentication

,rant"Permission:Den* $nter"Book"name 'earch"the"book

$nter"author"name

Check"the"book Displa*"results

CLASS DIAGRA7

'oftware"$ntr*

Data"$ntr* Name !d"no@ Book"name Author D0! D0 Card"""no

=uer*ing

!ssue() eturn"()

!ssue" =uer*ing D0!@ enewal() !ssue()

eturn =uer*ing eturn()

COLLABORATION DIAGRA7

-ibrarian 'tudent

8/"$nter"author"name ../"!ssue"the"book ./"$nter"Login"Details 5/",rant"Permission:Den*

2/",rant"Permission:"Den* 3/"$nter"Login"Details 6/"$nter"Book"name 1/"#erif*"Authentication" 4/"#erif*"Authentication 7/"'earch"the"book

'*stem 8SE CASE DIAGRA7

Administrator

'earch"book"name

'elect"book"name 'tudent Librarian

$nter"student"login"details

!ssue"the"book

ACTIVITY DIAGRA7

$nter"login" name

#erif*

,rant" permission

$nter"book" name

$nter"author" name

Displa*"the" book

Check"out"the" book

STATEC=ART DIAGRA7

$nter"login" name

#erif*

,rant" permission

$nter"the" book"name !ssue"the" book Displa*"the" book

CO7PONENT DIAGRA7

DEPLOY7ENT DIAGRA7

Client" Processor

Web"'er(er

RES8LT: #*e above mo ules for t*e -ibrary "anagement System *ave been esigne an verifie .

E2.No: 5 DATE: 7OD8LE 1

ONLINE TIC>ET RESERVATION SYSTE7

Before entering t*e system. users *ave to login )et t*e username an passwor from existing users. )ive new users t*e option to sign up.

7OD8LE 2 )et t*e source an estination.

Provi e a rop own box for t*e ate. C*eck availability of tickets.

7OD8LE 3 %f tickets are available. get t*e number of passengers. )et t*e name an age of all passengers. %f tickets are not available. resc*e ule.

7OD8LE 4 Print t*e cost of t*e tickets. )et t*e payment etails from t*e user. Confirm t*e etails an t*e ticket. $isplay confirme ticket to t*e user.

ACTIVITY DIAGRA7

Displa*" a(ailabilit*

,et"booking" request

Displa*" pa*ment"details

,et"userAs" pa*ment"details No !f"complete

Print"ticket

CLASS DIAGRA7
CustomerDetails Name Address $mail Age book() Booking Booking<no Date %otal 'tatus name Pa*() Pa*ment Date Amount

8SECASE DIAGRA7

Choose"sourceB"destination

Check"a(ailabilit*

Booking""'er(er

Customer

$nter"details

equest"booking

&ake"pa*ment

Bank"'*stem

Confirm"booking

SE<8ENCE DIAGRA7

Customer

'er(er

Bank

Check"a(ailabilit* -es !f"noB"reschedule $nter"information

econfirm"booking

Pa*ment Confirm"pa*ment ,et"ticket

COLLABORATION DIAGRA7
1/"-es

./"Check"a(ailabilit* 3/"$nter"information Customer 2/"!f"noB"reschedule 4/" econfirm"booking 7/",et"ticket 6/"Confirm"pa*ment 5/"Pa*ment 'er(er

Bank

STATE C=ART DIAGRA7

Displa*ing" a(ailabilit*

equest" booking

Check"a(ailabilit*

Displa*ing" pa*ment"details

)serAs"pa*ment" details

Print"%icket

CO7PONENT DIAGRA7
Bank

0nline" Booking"'er(er

Customer

DEPLOY7ENT DIAGRA7

'er(er")pdate

ailwa*" Database

)ser"PC

RES8LT: #*e above mo ules for t*e Online #icket Reservation System *ave been esigne an verifie .

E2.No:6 DATE: 7OD8LE 1:

PAYROLL SYSTE7S

Enter t*e employee etails name an eno. Obtain CR&.$&.P!. )et t*e basic pay as per esignation.

7OD8LE 2: Calculate e uctions an allowance percentage. Calculate t*e basic pay.

7OD8LE 3:

Calculate t*e number of ays taken leave. Calculate t*e e uctions ue to leave. Calculate t*e net pay after subtracting t*e net e uctions. Provi e salary slip.

8SE CASE DIAGRA7

$nter"details"into"database

0btain"basic"pa*"as"per" designation

emplo*er

Calculate"net"deductions

emplo*ee

calculate"deductions"due"to"lea(e

net"salar*

SE<8ENCE DIAGRA7

emplo*er

database

salar*" calculation

emplo*ee

$nter"emplo*ee"details

obtain"basic"pa*

obtain"hraBdaBta

obtain"lea(e"details

calculate"salar*

store

retrie(e"net"pa*

hand"o(er"pa*"slip

COLLABORATION DIAGRA7

./"$nter"emplo*ee"details emplo*er 6/"retrie(e"net"pa* 4/"calculate"salar* 5/"store

database

7/"hand"o(er"pa*"slip

1/"obtain"basic"pa* 2/"obtain"hraBdaBta 3/"obtain"lea(e"details salar*" calculation

emplo*ee

CLASS DIAGRA7

$mplo*ee emp<!D emp<name date<of<Coin salar* dept designation getDetails()

""""".@@D

Designation t*pe basicpa* netdeductions hra pf da calculate'alar*()

Lea(e casualLea(e earnLea(e no<of<*ears<worked medicalLea(e calculateLea(e()

ACTIVITY DIAGRA7

pro(ide"emplo*ee" details

get"basic"pa*"as"per" designation

calculate"net"deductions"and" allowance"percentage

netpa*Ebasic" pa*>deductions

netpa*Ebasic" pa*F"(hraBdaBpf)

pro(ide"salar*

CO7PONENT DIAGRA7

DEPLOY7ENT DIAGRA7

Node"./ egistrar

)pdate

Node"1/PC

STATE C=ART DIAGRA7

,et"emplo*ee" details

,et"basic" pa*

Calculate"net" deductions

basic" pa*Fallowance

Basic" pa*>deductions

'alar*

RES8LT: #*e above mo ules for t*e Payroll System *ave been esigne an verifie .

E2.No:7 DATE: 7OD8LE 1 )et login etails of t*e user %f new user. create a new account /erify passwor an %$

<8I? SYSTE7

7OD8LE 2 $isplay t*e 3uestions #*e user selects an option for eac* 3uestion or skips it. "ove to next 3uestion

7OD8LE 3 C*eck if t*e answers for eac* 3uestion are rig*t or wrong. Sum up all scores to get t*e total marks )et t*e total of all users.

7OD8LE 4 !in t*e winner. %f a user is a winner. print you win. Else print. game over.

SEQUENCE DIAGRAM

partcipant

'witch"0(er"%he" =uestion

Compiler

Central"'*stem

eg"9or" NA&$ Ask"=uestion

Answer"the"=uestions

Geep" ecord"'core

No"Answer

Calculate"%he" Participant"'core

Won"%he",ame

!s"!t"High" 'core

Lose"%he",ame

CLASS DIAGRA7

Admin !D Password registration() calculation() Central'*stem&anagement()

user user"name !D Password pla*s() sign"up()

compiler namelist question answer askquestion() keepsmark() compilers()

COLLABORATION DIAGRAM

./ egister" 5/No"Answer

Participant

'witch"0(er" %he"=uestion

1/Ask"=uestion .I/Won"%he",ame ../Lose"%he",ame

6/'witch"%o"Ne?t"=uestion

7/Answer"%he"=uestions

2/Answer"%he"=uestion 4/Ask"=uestion

8/Calculate"%he"'core

Compiler

3/Geep" ecord"0f"'core

Central" '*stem

8SECASE DIAGRA7

pla*er"name

pla*er"id

pla*er"password

sign"up

administrator generates"question

selecting"options

timings pla*er switch"o(er"sections s*stem

checking"the"answers

print"the"result

)pdate"user"information

ACTIVITY DIAGRA7

login

'ign")p

N0

Check"whether" user"is"registered -$' $nter"%he"=uiJ

'electing" 0ption

!f"Answered -$' &arks"Added

N0

'witch"%o"Ne?t" =uestion

,ame"0(er

N0

!ts"a" High'core+ -$' Won"%he" ,ame

STATE C=ART DIAGRA7

Log"in

$nter"the" s*stem

'elect" option

Ne?t" question

Add"marks

$nd"game

CO7PONENT DIAGRA7

'er(er

)ser

=uiJ")!

Printer

DB&'" 'er(er

DEPLOY7ENT DIAGRA7

'er(er

,et"details

DB&'" 'er(er

,et"question

Printer )! Print"result

RES8LT: #*e above mo ules for t*e Aui1 System *ave been esigne an verifie .

E2.No:8 DATE:

REAL TI7E SC=ED8LER

7OD8LE 1)GET 8SER DETAILS )et t*e name. %$ an P*one number of t*e user. )et t*e passwor from t*e user. )ive options to eit*er view t*e sc*e ule of t*e user or to a

a new sc*e ule.

7OD8LE 2)VIE@ SC=ED8LE %n t*e view sc*e ule win ow. isplay o &ppointment name o &ppointment time o &ppointment location

7OD8LE 3)ADD SC=ED8LE #o a a sc*e ule. t*e user must enter t*e name. time an location of t*e appointment. #*e user s*oul be alerte if t*e sc*e ule is ma e after > P". %f t*e user is busy at t*e selecte time. *e can resc*e ule. #*e user can also elete an appointment using t*e elete option.

7OD8LE 4)RESC=ED8LE #o resc*e ule. t*e user must first c*eck w*et*er *e is free at t*e specifie time or not. %f yes. *e can procee wit* t*e resc*e uling process. Ot*erwise. *e must again c*eck for an alternate time.

7OD8LE 5 #*e user must finally be informe t*at *is sc*e ule *as been successfully create .

8SE CASE DIAGRA7

#iew"'chedule

Add"'chedule

Delete"'chedule Person<Details eschedule

'*stem

Check"A(ailabilit*

SE<8ENCE DIAGRA7

Person

Appointment" Control

Appointment

#iew"schedule

Add"appointment

Check"a(ailabilit* !f"*esB"create"appointment

No

eschedule Confirm"appointment

CLASS DIAGRA7

Person Person<Name Person<!D Phone<No Password #iew'chedule() $dit'chedule()

""makes

'chedule Acti(it* %ime Location Delete'chedule() eschedule()

"""needs

A(ailabilit* New<time New<location CheckA(ailabilit*()

ACTIVITY DIAGRA7

$nter"details

#iew"'chedule

Add" appointment

-es

A(ailable+

no eschedule" appointment

Confirm" schedule

COLLABORATION DIAGRA7

./"#iew"schedule 1/"Add"appointment Person Appointment"Control

4/"No

3/"!f"*esB"create"appointment

2/"Check"a(ailabilit* 5/" eschedule 6/"Confirm"appointment

Appointment

STATEC=ART DIAGRA7

CO7PONENT DIAGRA7

DEPLOY7ENT DIAGRA7

Client" Processor

Web"'er(er

RES8LT:

#*e above mo ules for t*e Real #ime Sc*e uler System *ave been esigne an verifie .

E2.No:9

RE"O#E PROCE$,RE C&--

DATE: 7OD8LE 1 Create an account for eac* customer. Customer *as to log in using user name an passwor .

7OD8LE 2 Prepare t*e or er. Provi e eac* customer wit* t*e s*opping cart containing all t*e items t*at t*e customer wants to buy. )ive t*em access to all t*e etails about ifferent types of computers t*at is available in t*e store.

7OD8LE 3 Provi e or er form an let t*e customer to fill out payment an s*ipping etails. Store t*e or er in atabase. Review t*e or er an c*eck w*et*er t*e items are available. Email t*e or er etails to t*e customers email i .

7OD8LE 4 Sen information to t*e ware*ouse to start s*ipping process. Print t*e invoice. &ccept customer payment.

COLLABORATION DIAGRA7

2/"Prepare"for"order Config" window 0rder

3/"Displa*"order 0rder" window 5/"'tore"order 4/"'ubmit"order

./"0pen"new 1/"Accept"config

6/"Link"customer Pa*ment

7/"Link"pa*ment

Customer

CLASS

DIAGRA7

Customer name address ph"no email get""order() !n(oice number date total

Configuration item"t*pe item"descp

0rder od"num date address total status sales"pname

Pa*ment pa*ment"method date"recei(ed amt"recei(ed

8SE CASE DIAGRA7

Displa*"standard"computer"config

Build"computer"config

0rder"configured"computer

customer equest"salesperson"contact

!nform"warehouse"about"order

warehouse )pdate"order"status 'alesperson

Print"in(oice

#erif*"and"accept"customer" pa*ment

SE<8ENCE

DIAGRA7

Customer 0pen"new

Config"window

0rder

0rder"window

Pa*ment

Accept"config

Prepare"for"order

Displa*"order

'ubmit"order 'tore"order Link"customer Link"pa*ment

ACTIVITYDIAGRA7

Displa*"current" config

,et"order" request

Dispal*" purchase"form Ktime"outL KincompleteL ,et"purchase" details K0GL

'tore"order

$mail"order" details

STATE C=ART DIAGRA7

"""""Pending New"order 'tock"not A(ailable stock"a(ailable 'tock""""a(ailable KcancelledL Back"order ead*"to" ship

accepted

9uture" order

Cancelled

9illed

CO7PONENT DIAGRA7

Customer

0nline" shopping

0rder

DEPLOY7ENT DIAGRA7

Client" Processor

Web"'er(er

RES8LT: #*e above mo ules for t*e Remote Proce ure Call System *ave been esigne an verifie .

E2.No:10

STOC> 7AINTANENCE SYSTE7


DATE: 7OD8LE 1: (user entry for log-in+ -og-in is re3uire #*e ol %f t*e passwor in or er to purc*ase pro ucts from t*e store. passwor . etails. or username is invali .t*en an error message is isplaye .

customer enters t*e seller4s site by entering t*e username an

%f a new customer wants to purc*ase pro ucts t*en *e nee s to sign up to enter *is 7OD8LE 2: (selection+ &fter signing in t*e customer can select particular pro uct an isplaye . a etaile

escription of it is

#*e customer can also select t*e option compare to see t*e features of ifferent available pro ucts. &fter analy1ing t*e various features .t*e best of all t*e pro ucts is c*osen. 7OD8LE 3: (transaction+ #*e customer in or er to buy t*e pro uct uses *is cre it car 7OD8LE 4: ( elivery+ Once t*e customer enters t*e necessary acknowle gement is sent an t*e selecte etails an w*en t*e S,B"%# button is clicke . t*e pro uct is elivere . by entering t*e necessary etails.

CLASS DIAGRA7

8SE CASE DIAGRA7

SE<8ENCE DIAGRA7

)'$

P 0D)C% enter"username""and"password login

'$LL$ "'!%$

PA-&$N%

selecting"product

product"has"been"enabled

paid"through"credit"card

COLLABORATION DIAGRA7

4/"paid"through"credit"card )'$ PA-&$N%

./"enter"username""and"password 2/"selecting"product 1/"login

3/"product"has"been"enabled P 0D)C% '$LL$ " '!%$

ACTIVITY DIAGRA7

$nter"username"and" password

login

'elect"the"product

Pa*"through"credit" card

STATEC=ART DIAGRA7

entering"login" details

log"in

selection"of" the"product

pa*ment"through" credit"card

CO7PONENT DIAGRA7

DEPLOY7ENT DIAGRA7

Client" Processor

Web"'er(er

RES8LT:

#*e above mo ules for t*e Stock "aintenance System *ave been esigne an verifie .

Co(-!(- B!:o( S:##%463

ONLINE P8RC=ASE SYSTE7


1. ANALYSIS ;.; % entifying t*e &ctors ;.: % entifying t*e ,se Cases 2. RE<8IRE7ENTS :.; System Re3uirements :.: Software Re3uirements 3. DESIGN =.; ,se Case $iagram =.: Class $iagram =.= Se3uence $iagram =.< Collaboration $iagram =.> &ctivity $iagram =.@ State $iagram

ONLINE P8RC=ASE 8SE CASE DIAGRA7


OnlinePurchase

Browse Catlog

Select Item

Software Customer
"e#uest Item

Ask for Payment Shi!!ing details

Issue Details

Issue Authorization

Banking
Check for validity

Deliever Goods

Dealer

ONLINE P8RC=ASE CLASS DIAGRA7

Sho!!ingCard
Attributes

Customer
Attributes

public"float"subtotal public"float"salesmone* public"float"totalmone*


Operations

public"'hoppingCard() public"float"get'ubtotal() public"(oid"set'ubtotal(float"(al") public"float"get'alesmone*() public"(oid"set'alesmone*(float"(al") public"float"get%otalmone*() D public"(oid"set%otalmone*(float"(al") public"(oid"place0rder() public"(oid"remo(e0rder() public"Customer(oidKI@@DL"getCustomer() public"(oid"setCustomer(Customer"(alKI@@DL") public"CreditCard(oidKI@@DL"getCreditCard() public"(oid"setCreditCard(CrdeitCard"(alKI@@DL") public"CustomerKI@@DL"getCustomer() public"(oid"setCustomer(Customer"(alKI@@DL") public"CreditCardKI@@DL"getCreditCard() . public"(oid"setCreditCard(CreditCard"(alKI@@DL")
. mCreditCard

pri(ate"string"addrtoship pri(ate"string"name pri(ate"string"addrtobill pri(ate"string"emailadd pri(ate"int"creditrating


Operations

mCustomer

public"Customer() public"string"getAddrtoship() public"(oid"setAddrtoship(string"(al") public"string"getName() . public"(oid"setName(string"(al") public"string"getAddrtobill() public"(oid"setAddrtobill(string"(al") public"string"get$mailadd() public"(oid"set$mailadd(string"(al") public"int"getCreditrating() public"(oid"setCreditrating(int"(al") public"(oid"displa*Categor*() public"(oid"select!tem() public"(oid"delie(er!tem() public"(oid"remo(e0rder()

mCustomer

CreditCard
Operations

ItemOfPurchase
Attributes

PrefferedCustomer

pri(ate"int"quantit* pri(ate"float"priceperitem
Operations

public"!tem0fPurchase() public"int"get=uantit*() public"(oid"set=uantit*(int"(al") public"float"getPriceperitem() public"(oid"setPriceperitem(float"(al") public"Customer"fetCustomer() public"(oid"setCustomer(Customer"(al") public"ProductKI@@DL"getProduct() public"(oid"setProduct(Product"(alKI@@DL") public"ProductKI@@DL"getProduct() public"(oid"setProduct(Product"(alKI@@DL")

public"CreditCard() Attributes public"int"getNumber() pri(ate"int"discountrate public"(oid"setNumber(int"(al") Operations public"date"get$?pir*date() mPrefferedCustomer public"PrefferedCustomer() public"(oid"set$?pir*date(date"(al") public"int"getDiscountrate() public"boolean"get!ssue() public"(oid"setDiscountrate(int"(al") . public"(oid"set!ssue(boolean"(al") D public"Customer"getCustomer() public"(oid"authoriJeCharge() public"(oid"setCustomer(Customer"(al") public""Preffered() public"Customer"getCustomer.() public"!tem0fPurchase"get!tem0fPurchase() public"(oid"setCusotmer.(Customer"(al") public"(oid"set!tem0fPurchase(!tem0fPurchase"(al") public"Customer"getCustomer() public"PrefferedCustomerKI@@DL"getPrefferredCustomer() public"(oid"setCustomer(Customer"(al") public"(oid"setPrefferredCustomer(PrefferedCustomer"(alKI@@DL") public"PrefferedCustomerKI@@DL"getPrefferedCustomer() public"(oid"setPrefferedCustomer(PrefferedCustomer"(alKI@@DL")

mProduct .

Product
Attributes Operations

public"Product()

ONLINE P8RC=ASE SE<8ENCE DIAGRA7

$ Sho!!ingcart $ Customer
public"(oid"brow secatalog()

$ creditcard

public"(oid"displa*catalog() public"(oid"select!tem()

public"(oid"getCredit ating() public"(oid"getAddr%o'hop()

public"(oid"setCreditCard()

public"(oid"shipmentDetails()

public"(oid"authoriJedCharge()

public"(oid"get$?pir*Date()

(alidation

public"(oid"authoriJe()

public"(oid"setCrediting(int"(al")

public"(oid"setAddr%o'hip()

public"(oid"dele(er!tem() public"(oid"reCected() public"(oid"remo(e0rder()

ONLINE P8RC=ASE COLLABORATION DIAGRA7

$ Customer
public"(oid"setAddr%o'hip() public"(oid"brow secatalog()

public"(oid"dele(er!tem() public"(oid"shipmentDetails() public"(oid"getAddr%o'hop() public"(oid"displa*catalog() public"(oid"getCredit ating()

public"(oid"select!tem()

public"(oid"setCreditCard()

public"(oid"remo(e0rder()

public"(oid"setCrediting(int"(al")

$ Sho!!ingcart
public"(oid"reCected()

public"(oid"authoriJe()

public"(oid"authoriJedCharge()

$ creditcard

public"(oid"get$?pir*Date()

ONLINE P8RC=ASE ACTIVITY DIAGRA7


OnlinePurchase
Customer )nnamed 'hoppingcart Creditcard

Browse Catlog
M"9rom"0P<Acti(it*"N

Dis!laying Catlog
M"9rom"0P<Acti(it*"N

Selecting Catlog
M"9rom"0P<Acti(@@@

Dis!laying %%%%
M"9rom"0P<Acti(it*"N

Selecting
M"9rom"0P<Acti(it@@@

"e#uesting
M"9rom"0P<Acti(it*"N

'alidating credit
M"9rom"0P<Acti(it*"N

Issuing !ayment
M"9rom"0P<Acti(it*"N

Acce!ting delivery
M"9rom"0P<Acti(it*"N

)nnamed

Delievering Item
M"9rom"0P<Acti(it*"N

Authorized
M"9rom"0P<Acti(it*"N

"e&ected
M"9rom"0P<Acti(it*"N
)nnamed

ONLINE P8RC=ASE STATEC=ART DIAGRA7

C()C*I+G

P"OC)SS D),I')"-

/AI.I+G

CA+C),,I+G

DISPA.C(

$O!%

CLASS CODE public class Customer(+ D private string name private string a tos*op private int cre itrating public Customer(+ D E public voi eliever%tem(+ D E public voi select%tem(+ D E public voi remove%tem(+ D E E public class %temOfPurc*ase(+ D private int 3uantity private flaot priceperitem public %temOfPurc*ase(+ D E public float getPriceper%tem(+ D E public voi setPriceper%tem(float val+ D %tem 9 val E Epublic class Pro uct(+ D public Pro uct(+ D E E RESULT:#*us t*e ,"- mo els for t*e Online Purc*ase System *ave been evelope an verifie .

ST8DENT 7AR>S ANALYSIS SYSTE7


1. ANALYSIS ;.; % entifying t*e &ctors ;.: % entifying t*e ,se Cases 2. RE<8IRE7ENTS :.; System Re3uirements :.: Software Re3uirements 3. DESIGN =.; ,se Case $iagram =.: Class $iagram =.= Se3uence $iagram =.< Collaboration $iagram =.> &ctivity $iagram =.@ State $iagram

8SE CASE DIAGRA7

CLASS DIAGRA7

SE<8ENCE DIAGRA7

COLLABORATION DIAGRA7

ACTIVITY DIAGRA7

STATEC=ART DIAGRA7

CLASS CODE public class "arksRegister D private int StringRegnoF private int int"axmarksF private int int"inmarksF private int int"arksobtaine F GHH Iroseui <@$JB:B!BB;? HG public "arksRegister(+ D E GHH Iroseui <@$JB;B!B:?C HG public voi c*eckRegno(+ D E GHH Iroseui <@$JB;C>B;!! HG public voi c*eckSub'ectCo e(+ D E GHH Iroseui <@$JB;CCB=J> HG public voi setResults(+ D E E RESULT:#*us t*e ,"- mo els for t*e Stu ent "arks &nalysis System *ave been evelope an verifie .

You might also like