Sie sind auf Seite 1von 30

Object Oriented Modeling and Design ONLINE SHOPPING CART

SYSTEM
CONTENTS : Page No.
! SCOPE
! A"DIENCE
!# ORGANISATION
!$ APPLICA%LE DOC"MENTS
#! SO&T'ARE RE("IREMENT SPECI&ICATION #
$! &"NCTIONAL MODEL $
)! ACTI*ITY DIAGRAM +
,! "SE CASE DIAGRAM
-! INTERACTION DIAGRAM
-!! SE("ENCE DIAGRAM .
-!!# COLLA%ORATION DIAGRAM #$
/! STATE CHART DIAGRAM #-
+! CLASS DIAGRAM #+
.! IMPLEMENTATION DIAGRAM
.! COMPONENT DIAGRAM #.
.!# DEPLOYMENT DIAGRAM $
RGIT0 M"M%AI! Page De1art2ent o3 MCA!
Object Oriented Modeling and Design ONLINE SHOPPING CART
SYSTEM
! Scope :
T4e 3ollo5ing s6bsections describe t4e sco1e o3 t4e 3ast 3ood o6tlet s7ste2 in
ter2s o3 its a6dience0 organi8ation0 and a11licable doc62ents
1.1 Audience :
C6sto2ers0 Ad2inistrators0 Sellers!
1.2 Organization :
ONLINE SHOPPING CART SYSTEM
1.3 Applicable Document :
T4e 3ollo5ing doc62ents 1ro9ide in3or2ation necessar7 to 6nderstand t4is
doc62entation:
RGIT0 M"M%AI! Page # De1art2ent o3 MCA!
Object Oriented Modeling and Design ONLINE SHOPPING CART
SYSTEM
# So!t"are #e$uirement Speci!ication:
S%tem Abtract &
T4e Online S4o11ing Cart s7ste2 3acilitates t4e C6sto2er to 9ie5 t4e Ite2s
Prod6cts0 in;6ire abo6t t4e ite2 details0 a9ailabilit7 o3 seats and 2an7 2ore! T4e 2ajor
36nctionalit7 o3 s7ste2 is to allo5 t4e 6ser to boo< and cancels t4e 3lig4ts as 1er 6ser
re;6ire2ents! It also 1ro9ides t4e ad2inistrator or 2anager to 2odi37 e=isting 3lig4ts or
to introd6ce a ne5 3lig4t>s in t4e sc4ed6le!
Major 3eat6res 1ro9ided b7 t4e s7ste2 are :
! C6sto2er
T4e s7ste2 allo5s t4e 6ser or 2e2ber to 1er3or2 3lig4t ;n6ir7 incl6ding 3lig4t
sc4ed6ling0 seats a9ailabilit7 stat6s0 3are details0 etc!
#! Ad2inistrator
It allo5s t4e c6sto2er to register in order to gi9e t4e ser9ices to its 2e2ber !
$! Online s4o11ing s7ste2
T4e s7ste2 allo5s t4e 2e2ber to order t4e 1rod6ct as 1er 4is?4er re;6ire2ents! T4e
c6sto2er is 1ro21t to enter t4e c6sto2er details and credit card details! T4e 2e2ber
t4en recei9es t4e 6ni;6e cart n62ber !
)! Prod6ct Listing
T4is 1rocess gi9es t4e details abo6t t4e 16rc4asing 1rocess 2ade b7 t4e c6sto2er at
t4e details o3 t4e s4i11ing and ta=es in9ol9ed 5it4 t4e cost
,! Ad2inistrator
T4e ad2inistrator 2od6le o3 t4e s7ste2 allo5s t4e ad2in?2anager to 2anage t4e
1rod6cts ite2 It 1ro9ides t4e ad2in ?2anger to 2odi37 or c4ange t4e e=isting ite2s or to
introd6ce a ne5 ite2s! A1art 3ro2 2odi37ing t4e categor7 it also allo5 t4e
ad2in?2anager to ta<e t4e ta=es and incl6de t4e s4i11ing c4arges along 5it4 t4e 4?5 s?5
and ser9ice re;6ire2ents!
RGIT0 M"M%AI! Page $ De1art2ent o3 MCA!
Object Oriented Modeling and Design ONLINE SHOPPING CART
SYSTEM
#! 'unctional (odel.
Data 'lo" Diagram !or Online S)opping Cart So!t"are
RGIT0 M"M%AI! Page ) De1art2ent o3 MCA!
Customer
.
Product
item
listing
1.2
Product
Id
1 .3
Pay
1.5
Product
Purchased
1.4
Shipping
1.7
Product Listing
Reuest
!or
products
Product
Id
Purchase
Process
Pay
Process
"aster Product
Pending
Product #ata
Product LIst
Product Detail Shipping Info
Pending
Product
Data
Shipping
Charges
Shipping
Data
L$%$L 1
Object Oriented Modeling and Design ONLINE SHOPPING CART
SYSTEM
Data 'lo" Diagram !or Product *iting
RGIT0 M"M%AI! Page , De1art2ent o3 MCA!
Object Oriented Modeling and Design ONLINE SHOPPING CART
SYSTEM
Data 'lo" Diagram !or Adminitrator.
RGIT0 M"M%AI! Page - De1art2ent o3 MCA!
Object Oriented Modeling and Design ONLINE SHOPPING CART
SYSTEM
3. Acti+it% Diagram.
@ An Acti9it7 diagra2 is a 9is6al re1resentation o3 an7 s7ste2As acti9ities and 3lo5s o3 data
or decisions bet5een acti9ities!
@ Acti9it7 diagra2s 1ro9ide a 9er7 broad 9ie5 o3 a b6siness 1rocess!
@ T4e7 re1resent t4e d7na2ics o3 a s7ste2!
@ T4e7 are 3lo5 c4arts t4at are 6sed to s4o5 t4e 5or< 3lo5 o3 a s7ste2!
@ T4e7 s4o5 t4e 3lo5 o3 control 3ro2 acti9it7 to acti9it7 in t4e s7ste2!
@ T4e7 s4o5 54at acti9ities can be done in 1arallel0 and an7 alternati9e 1at4s t4ro6g4
t4e
3lo5!
@ P6r1ose
@ Model b6siness 5or<3lo5s
@ Model o1erations
@ Acti9it7 diagra2s co22onl7 contain
@ Acti9it7 states and action states
@ Transitions
@ Objects
Action State and Acti+it% State
@ Action states are ato2ic and cannot be deco21osed
@ 'or< o3 t4e action state is not interr61ted!
@ Acti9it7 states can be 36rt4er deco21osed
@ T4eir acti9it7 being re1resented b7 ot4er acti9it7 diagra2s
@ T4e7 2a7 be interr61ted
@ Re1resented in "ML b7 a ro6nded rectangle!
@ Activity re1resents t4e 1er3or2ance o3 so2e be4a9ior in t4e 5or< 3lo5!
Tranition
@ Transitions are 6sed to s4o5 t4e 1assing o3 t4e 3lo5 o3 control 3ro2 acti9it7 to acti9it7!
T4e7 are t71icall7 triggered b7 t4e co21letion o3 t4e be4a9ior in t4e originating acti9it7.
RGIT0 M"M%AI! Page / De1art2ent o3 MCA!
Object Oriented Modeling and Design ONLINE SHOPPING CART
SYSTEM
@ '4en t4e action or acti9it7 o3 a state co21letes0 3lo5 o3 control 1asses
i22ediatel7 to t4e ne=t action or acti9it7 state
@ A 3lo5 o3 control 4as to start and end at so2e 1lace
initial state BB a solid ball sto1 state BB a solid ball inside a circle
,ranc)ing
@ '4en 2odeling t4e 5or<3lo5 o3 a s7ste20 it is o3ten necessar7 to s4o5 54ere t4e
3lo5 o3 control branc4es based on a decision 1oint!


@ T4e transition 3ro2 a decision 1oint contain a g6ard condition!
@ T4e g6ard condition is 6sed to deter2ine 54ic4 1at4 3ro2 t4e decision 1oint is ta<en!
@ Decisions along 5it4 t4eir g6ard conditions allo5 7o6 to s4o5 alternati9e 1at4s
t4ro6g4 a 5or< 3lo5.
@ A branc4 s1eci3ies alternate 1at4s ta<en based on so2e %oolean e=1ression
@ A branc4 2a7 4a9e one inco2ing transition and t5o or 2ore o6tgoing ones
S%nc)ronization ,ar
@ In a 5or<3lo5 t4ere are t71icall7 so2e acti9ities t4at 2a7 be done in 1arallel!
@ A s7nc4roni8ation bar allo5s 7o6 to s1eci37 54at acti9ities 2a7 be done
conc6rrentl7!
@ A s7nc4roni8ation bar 2a7 4a9e
C 2an7 inco2ing transition and one o6tgoing transition0 or
C one inco2ing transition and 2an7 o6tgoing transitions!
@ It is 6se to s1eci37 t4e 3or<ing and joining o3 1arallel 3lo5s o3 control
@ A s7nc4roni8ation bar is rendered as a t4ic< 4ori8ontal or 9ertical line
RGIT0 M"M%AI! Page + De1art2ent o3 MCA!
Object Oriented Modeling and Design ONLINE SHOPPING CART
SYSTEM
@ A 3or< 2a7 4a9e one inco2ing transitions and t5o or 2ore o6tgoing transitions
C eac4 transition re1resents an inde1endent 3lo5 o3 control
C conce1t6all70 t4e acti9ities o3 eac4 o3 o6tgoing transitions are conc6rrent
@ eit4er tr6l7 conc6rrent D26lti1le nodesE
@ or se;6ential 7et interlea9ed Done nodeE
@ A join 2a7 4a9e t5o or 2ore inco2ing transitions and one o6tgoing transition
C abo9e t4e join0 t4e acti9ities associated 5it4 eac4 o3 t4ese 1at4s contin6es in
1arallel
C at t4e join0 t4e conc6rrent 3lo5s s7nc4roni8e
C eac4 5aits 6ntil all inco2ing 3lo5s 4a9e reac4ed t4e join0 at 54ic4 1oint one
3lo5 o3 control contin6es on belo5 t4e join
RGIT0 M"M%AI! Page . De1art2ent o3 MCA!
Object Oriented Modeling and Design ONLINE SHOPPING CART
SYSTEM
+ie" t)e
product
cutomer
+iit !a$
-tem not !ound
"ant to purc)ae.
no
%e
product a+ilable in india.
no
%e
go t)roug) t)e
product detail
are u member.
*ogin
#egiter
%e
no
)opping cart i
aigned to cutomer
item get added
to )opping cart
con!irm t)e )opp...
generate purc)ae
detail
pa%ment
detail
%e
pa%ment on
deli+er%
get"a% %tem
acti+ated
no
%e
pa%ing b% creditcard.
no
%e
"ant to purc)ae.
!inal bill
no
+ari!ication o! cutomer.
%e
'ill !eedbac/
%e
ignout
no
"ant to !ill !eedbac/.
Cancel
Product
no
%e
do %ou "ant to cancel t)e product.
no
RGIT0 M"M%AI! Page F De1art2ent o3 MCA!
'ig 0.1 Acti+it% Diagram :
Object Oriented Modeling and Design ONLINE SHOPPING CART
SYSTEM
1. 2e3Cae Diagram.
T4e 6seBcase conce1t 5as introd6ced b7 I9ar Gacobson in t4e objectBoriented so3t5are
engineering DOOSEE 2et4od!
A 6seBcase diagra2 is a gra14 o3 actors0 a set o3 6se cases enclosed b7 a s7ste2 bo6ndar70
co226nication D1artici1ationE associations bet5een t4e actors and t4e 6se cases0 and
generali8ation a2ong t4e cases!
"se case diagra2s s4o5 4o5 6sers interact 5it4 t4e s7ste2!
"se case diagra2s describe 54at a s7ste2 does 3ro2 t4e stand1oint o3 an e=ternal obser9er!
T4e e214asis is on what a s7ste2 does rat4er t4an how.
"se case diagra2s are closel7 connected to scenarios! A cenario is an e=a21le o3 54at
4a11ens 54en so2eone interacts 5it4 t4e s7ste2! Here is a scenario 3or a 2edical clinic!
HA 1atient calls t4e clinic to 2a<e an a11oint2ent 3or a 7earl7 c4ec<61! T4e rece1tionist
3inds t4e nearest e21t7 ti2e slot in t4e a11oint2ent boo< and sc4ed6les t4e a11oint2ent
3or t4at ti2e slot! H
"sed d6ring re;6ire2ents elicitation to re1resent e=ternal be4a9ior
Actors re1resent roles0 t4at is0 a t71e o3 6ser o3 t4e s7ste2
Use cases re1resent a se;6ence o3 interaction 3or a t71e o3 36nctionalit7
T4e 6se case 2odel is t4e set o3 all 6se cases! It is a co21lete descri1tion o3 t4e 36nctionalit7
o3 t4e s7ste2 and its en9iron2ent
Actor
@ An actor 2odels an e=ternal entit7 54ic4 co226nicates 5it4 t4e s7ste2:
o "ser
o E=ternal s7ste2
o P47sical en9iron2ent
@ An actor 4as a 6ni;6e na2e and an o1tional descri1tion!
@ E=a21les:
@ Passenger: A 1erson in t4e train
@ GPS satellite: Pro9ides t4e s7ste2 5it4 GPS coordinates
2e Cae
A 6se case re1resents a class o3 36nctionalit7 1ro9ided b7 t4e s7ste2 as an e9ent 3lo5!
A 6se case consists o3:
@ "ni;6e na2e
@ Partici1ating actors
@ PreBconditions
@ Entr7 conditions DtriggersE
@ &lo5 o3 e9ents
@ E=it conditions Ds6ccess Ig6arantees>E
RGIT0 M"M%AI! Page De1art2ent o3 MCA!
Customer
Item Purchased
Select shipping address
&dd shipping address
&dd Credit card type
&dd Credit card num'er
&dd credit card
&dd $(piration date
Choose shipping type
)nline customer
Select credit card
**include++
**include++
**include+
+
*
*
in
c
lu
d
e
+
+
**include++
**include++
Object Oriented Modeling and Design ONLINE SHOPPING CART
SYSTEM
@ S1ecial re;6ire2ents
T4e "se Case diagra2 3or 54ole s7ste2 is as s4o5n in 3ig ,!$
T)e <<extend>> #elation)ip
@ JJe=tendKK relations4i1s re1resent e=ce1tional or seldo2 in9o<ed cases!
@ T4e e=ce1tional e9ent 3lo5s are 3actored o6t o3 t4e 2ain e9ent 3lo5 3or clarit7!
@ "se cases re1resenting e=ce1tional 3lo5s can e=tend 2ore t4an one 6se case!
@ T4e direction o3 a JJe=tendKK relations4i1 is to t4e e=tended 6se case
T)e 44include55 #elation)ip
@ An JJincl6deKK relations4i1 re1resents be4a9ior t4at is 3actored o6t o3 t4e 6se case!
@ An JJincl6deKK re1resents be4a9ior t4at is 3actored o6t 3or re6se0 not beca6se it is an
e=ce1tion!
@ T4e direction o3 a JJincl6deKK relations4i1 is to t4e 6sing 6se case D6nli<e
JJe=tendKK relations4i1sE!
'ig :1.1 2e Cae Diagram
RGIT0 M"M%AI! Page # De1art2ent o3 MCA!
Object Oriented Modeling and Design ONLINE SHOPPING CART
SYSTEM
**include++
Pay ,ill
Prepare ,ill
%alidate Customer
&dministrator
-pdate Items
Register Customer
Customer
Search Item
Registered
Customer
,uy Item
**include++
**include++
**include++
'ig 1.2 2e cae Diagram
RGIT0 M"M%AI! Page $ De1art2ent o3 MCA!
Object Oriented Modeling and Design ONLINE SHOPPING CART
SYSTEM
2SE CASE DESC#-PT-ON :
Actor:
! Ne5 C6sto2ers
!# Registered C6sto2er
!$ Ad2inistrator
2e cae:
! Searc4 Ite2
#! Register Ite2
$! %67 Ite2
)! "1date Ite2
! Searc) -tem
An7 6ser can searc4 t4e ite2! "ser can searc4 t4e ite2 b7 na2e or co21an7!
#! #egiter Cutomer
To b67 t4e ite20 t4e c6sto2er 4as to be a registered c6sto2er! T4is 1rocess is 6sed to register
a c6sto2er.
$! ,u% -tem
A registered c6sto2er can b67 a ite2 6sing t4is 1rocess! T4is 1rocess incl6de searc4 ite20
9alidate c6sto2er0 1re1are bill0 1a7 bill!
RGIT0 M"M%AI! Page ) De1art2ent o3 MCA!
Object Oriented Modeling and Design ONLINE SHOPPING CART
SYSTEM
2e Cae Table
"se case ID
"se case na2e *ie5 s4o11ing cart
Actor Online c6sto2er
PreBcondition O1en t4e 5ebsite
PostBcondition Searc4 3or 1rod6ct
&lo5 o3 e9ents o1en t4e 5ebsite o3 online s4o11ing cart
"se case ID #
"se case na2e Searc4 3or 1rod6ct
Actor Online c6sto2er
PreBcondition *ie5 s4o11ing cart
PostBcondition Select t4e 1rod6ct
&lo5 o3 e9ents O1en t4e 5ebsite0 searc4 t4e 1rod6ct 3ro2 list
"se case ID $
"se case na2e Create ne5 6ser
Actor Online c6sto2er
PreBcondition Select t4e 1rod6ct
PostBcondition Select credit card
&lo5 o3 e9ents O1en t4e 5ebsite0 searc4 t4e 1rod6ct 3ro2 list0 select t4e 1rod6ct0 create
ne5 6ser
RGIT0 M"M%AI! Page , De1art2ent o3 MCA!
Object Oriented Modeling and Design ONLINE SHOPPING CART
SYSTEM
"se case ID )
"se case na2e P6rc4ase ite2
Actor Online c6sto2er
PreBcondition Select credit card
PostBcondition Re9ie5 order in3or2ation
&lo5 o3 e9ents O1en t4e 5ebsite0 searc4 t4e 1rod6ct 3ro2 list0 select t4e 1rod6ct0 create
ne5 6ser0 select credit card0 16rc4ase t4e selected ite2
"se case ID ,
"se case na2e Login as registered 6ser
Actor Online seller and online c6sto2er
PreBcondition O1en t4e 5ebsite
PostBcondition Sell or 16rc4ase t4e 1rod6ct
&lo5 o3 e9ents O1en t4e 5ebsite0 Login as registered 6ser
"se case ID -
"se case na2e Ite2 registration
Actor Online seller
PreBcondition Login into t4e s4o11ing cart s7ste2
PostBcondition Con3ir2 t4e registration
&lo5 o3 e9ents O1en t4e 5ebsite0 Login as registered 6ser0 register t4e ite2 into s7ste2
RGIT0 M"M%AI! Page - De1art2ent o3 MCA!
Object Oriented Modeling and Design ONLINE SHOPPING CART
SYSTEM
"se case ID /
"se case na2e C4ange t4e in3or2ation
Actor Ad2inistrator
PreBcondition Login into t4e s7ste2 as ad2inistrator
PostBcondition "1date t4e s7ste2
&lo5 o3 e9ents O1en t4e 5ebsite0 Login as ad2inistrator0 2a<e c4anges in t4e in3or2ation
"se case ID +
"se case na2e %loc< 6sers
Actor Ad2inistrator
PreBcondition Select t4e 6ser
PostBcondition "1date t4e s7ste2
&lo5 o3 e9ents O1en t4e 5ebsite0 Login as ad2inistrator0 select t4e 6ser0 bloc< t4e 6ser
"se case ID .
"se case na2e In3or2 t4e deal to seller
Actor Online Seller and s4o11ing cart s7ste2
PreBcondition C4ec< t4e a9ailabilit7 o3 ite2
PostBcondition Ma<e a deal
&lo5 o3 e9ents O1en t4e 5ebsite0 login as s4o11ing cart s7ste2 0 seller sell t4e ite2 to
s4o11ing cart s7ste20 in3or2 t4e deal to seller
RGIT0 M"M%AI! Page / De1art2ent o3 MCA!
Register Ite2
Searc4 3or 1rod6ct
C4oose s4i11ing t71e
Select credit card
P6rc4ase ite2
Re9ie5 order con3ir2ation
*ie5 s4o11ing cart
Add ite2 to s4o11ing cart
Login as registered 6ser
Online seller
S4o11ing Cart s7ste2
In3or2 t4e deal to seller
%loc< 6sers
Ad2inistrator
C4ange ite2 in3or2ation
Online C6sto2er
Create ne5 6ser
Object Oriented Modeling and Design ONLINE SHOPPING CART
SYSTEM
!ig 1.3. 2e cae diagram !or Online S)opping S%tem
)! 2(* -nteraction Diagram
-! Se$uence Diagram :
RGIT0 M"M%AI! Page + De1art2ent o3 MCA!
Object Oriented Modeling and Design ONLINE SHOPPING CART
SYSTEM
user
Shopping cart
system
&dministrator
-ser Login
user name . pass/ord
gi0es the details
gi0e access to mem'er
'ig.6.1.1 Se$uence Diagram !or 2er regiteration
1 )nline seller
&dministrator
Item Registration
Log out234
'ig.6.1.2 Se$uence Diagram !or Seller regiteration
RGIT0 M"M%AI! Page . De1art2ent o3 MCA!
Object Oriented Modeling and Design ONLINE SHOPPING CART
SYSTEM
Cart ite2
: Online
C6sto2er
S4o11ing cart Process
order
Order
s622ar7
Logo6t
Adds Ite2
Gets Ite2
Prod6ct Details
Ta=es
Processes
Add t4e 1rod6cts
Ta=es
Dis1la7s t4e Orderd Ite2
Dis1la7s t4e ordered ite2
Con3ir2s
Con3ir2s
C4ec<o6t
C4ec<s O6t
Processes
Pa72ent Details
S4i11ing C4arges
'ig.6.1.3 Se$uence Diagram !or Online Cutomer
RGIT0 M"M%AI! Page #F De1art2ent o3 MCA!
Object Oriented Modeling and Design ONLINE SHOPPING CART
SYSTEM
: Online C6sto2er
S4o11ing
s7ste2
Cart s7ste2 Ordering
s7ste2
Login
Add ite2
Add categor7
Add 6ser
Delete 6ser
C4ange 1ass5ord
Delete ite2
Delete categor7
Logo6t
'ig.6.1.0 Se$uence Diagram !or Online Adminitrator
RGIT0 M"M%AI! Page # De1art2ent o3 MCA!
Object Oriented Modeling and Design ONLINE SHOPPING CART
SYSTEM
-!# Collaboration diagram:
T4e7 are also interaction diagra2s! T4e7 con9e7 t4e sa2e in3or2ation as se;6ence
diagra2s0 b6t t4e7 3oc6s on object roles instead o3 t4e ti2es t4at 2essages are sent! In a
se;6ence diagra20 object roles are t4e 9ertices and 2essages are t4e connecting lin<s!
@ Collaboration diagra2s s4o5 D6sed to 2odelE 4o5 objects interact and t4eir roles!
@ T4e7 are 9er7 si2ilar to se;6ence diagra2s! Act6all7 t4e7 are considered as a cro
bet5een class and se;6ence diagra2!
@ Sequence Diagrams are arranged according to Ti2e!
@ Collaboration Diagrams re1resent t4e str6ct6ral organi8ation o3 object.
@ L%ot4 se;6ence and collaboration diagra2s are called interaction diagra2sM
@ &or2s a conte=t 3or interactions
o Ma7 realize 6se cases
o Ma7 be associated 5it4 o1erations
o Ma7 describe t4e static str6ct6re o3 classes
@ Collaboration diagra2s contain t4e 3ollo5ing:
o Class roles Ds6bs7ste2s?objects?classes?actors? e=ternal s7ste2sE as be3ore!
o Association roles D1at45a7s or lin<s o9er 54ic4 2essages 3lo5E
o Message 3lo5s D2essages sent bet5een class rolesE
user Shopping cart
system
&dministrator
-ser Login
user name . pass/ord gi0es detail
gi0e access to mem'er
11
41
21 31
'ig.6.2.1 Collaboration Diagram !or 2er regitration
RGIT0 M"M%AI! Page ## De1art2ent o3 MCA!
Object Oriented Modeling and Design ONLINE SHOPPING CART
SYSTEM
1 )nline seller
&dministrator
Item registration
log out234
11
21
'ig.6.2.2Collaboration Diagram !or Seller regiteration
1 )nline customer
Shopping
cart
Logout
)rder
summary
Process
order
Cart item
11 &dds Item
111 Chec5out
21 6ets Item
71 #isplays the )rderd Item
181 Con!irms
31 Product #etails
41 &dd the products
91 :a(es
;1 Processes
71 Payment #etails
51 Shipping Charges
'ig.6.2.3 Collaboration Diagram !or Online Cutomer
RGIT0 M"M%AI! Page #$ De1art2ent o3 MCA!
Object Oriented Modeling and Design ONLINE SHOPPING CART
SYSTEM
: Online C6sto2er
S4o11ing
s7ste2
Cart
s7ste2
Ordering
s7ste2
: Logiin
.: Logo6t
#: Add ite2
$: Add categor7
/: Delete ite2
+: Delete categor7
): Add 6ser
,: Delete 6ser
-: C4ange 1ass5ord
'ig.6.2.0 Collaboration Diagram !or Online Adminitrator
RGIT0 M"M%AI! Page #) De1art2ent o3 MCA!
Object Oriented Modeling and Design ONLINE SHOPPING CART
SYSTEM
)! Statec)art Diagram:
T4e na2e o3 t4e diagra2 itsel3 clari3ies t4e 16r1ose o3 t4e diagra2 and ot4er details! It
describes di33erent states o3 a co21onent in a s7ste2! T4e states are s1eci3ic to a
co21onent?object o3 a s7ste2!
A Statec4art diagra2 describes a state 2ac4ine! No5 to clari37 it state 2ac4ine can be
de3ined as a 2ac4ine0 54ic4 de3ines di33erent states o3 an object0 and t4ese states are
controlled b7 e=ternal or internal e9ents!
transaction Processed
"em'er
Logging
%eri!ying
Re<Logging
:ransaction
Per!orming
Printing
:ic5et
Reser0ing
&ccessing the
account
managing
account
Credit card
Processing
Cancelling
"em'er Login
"em'er Relogin
In0alid +3 times
In0alid Login
%alid login
"em'er &ccess
Per!orm Reser0ation
Per!orm cancellation
Process credit card details
Process credit card details
:ransaction Processing
'ig.7.1 State C)art diagram !or Online S)opping S%tem
RGIT0 M"M%AI! Page #, De1art2ent o3 MCA!
Object Oriented Modeling and Design ONLINE SHOPPING CART
SYSTEM
'uy the item
Searching
Selecting
,uying
Pay 'ill
Register
registered customer
ne/ customer
more items 'uy item
item selection o0er
'ig7.2 State diagram !or cutomer.
RGIT0 M"M%AI! Page #- De1art2ent o3 MCA!
:R&=S&C:I)
=
transid
pnrno
transdate
amt
commit23
roll'ac523
Payment System
custno
custid
custname
creditcardno
,illing&ddress
%ei/)rder23
Payment#etails23
)=LI=$ S>)PPI=6 C&R:
S?S:$"
>::P
Cart&ddition
Creidtno 1 String
#escription 1 String
ItemId 1 String
&mount 1
Integer
Category 1 String
6et@to@cart23
Chec5@out23
C&=C$LL&:I)=
cusno 1 Integer
Item id 1 Integer
amount 1 Integer
retri0e23
update23
CR$#I: C&R# >)L#$R
cardno
issuedate
e(pirydate
0eri!ydtls23
per!orm@transaction23
C-S:)"$R
=um'er o! Item 1 Integer
cusid 1 Integer
Shipnname 1 String
Company 1 String
&ddress 1 String
Payment23
Cart&ddition23
Cancellation23
-S$R
$mail id 1 String
pass/ord 1 String
Airst name 1
String
Last =ame 1 String
Street &ddress 1 String
BipCode 1 Integer
City 1 String
State 1 String
Country 1 String
Phone 1 String
Login23
Registration23
Logout23
S$LL$R
Item name 1 String
Item id 1 Integer
#iscount 1 Integer
Categoty 1 Integer
Object Oriented Modeling and Design ONLINE SHOPPING CART
SYSTEM
8. C*ASS D-A9#A( :
&ig +! Cla diagram !or Online S)opping S%tem
RGIT0 M"M%AI! Page #/ De1art2ent o3 MCA!
Object Oriented Modeling and Design ONLINE SHOPPING CART
SYSTEM
:.-mplementation Diagram.
.! Component Diagram :
Co21onent diagra2s are di33erent in ter2s o3 nat6re and be4a9ior! Co21onent diagra2s
are 6sed to 2odel 147sical as1ects o3 a s7ste2!
P47sical as1ects are t4e ele2ents li<e e=ec6tables0 libraries0 3iles0 doc62ents etc t4at
resides in a node! So co21onent diagra2s are 6sed to 9is6ali8e t4e organi8ation and
relations4i1s a2ong co21onents in a s7ste2! T4ese diagra2s are also 6sed to 2a<e e=ec6table
s7ste2s!
Descri1tion o3 t4e co21onent diagra2 3or online s4o11ing s7ste2 is as 3ollo5s :
Data base ser9er contains all t4e database tables! It contains Ad2inistrator0 Registered
C6sto2er0 Seller0 Ite2 and Pa72ent!
A11lication ser9er contains Access classes 1ac<age and %6siness classes 1ac<age and 9ie5
la7er classes0 i!e! 9ie5 classes 1ac<age!
Clients are t4e nodes 4a9ing no 1rocessing ca1abilities! Onl7 bro5ser is t4ere on t4is node
to send a re;6est
RGIT0 M"M%AI! Page #+ De1art2ent o3 MCA!
Object Oriented Modeling and Design ONLINE SHOPPING CART
SYSTEM
Payment
%ie/ Classes
>ome Page
Login
Aorm
Searching
Aorm
Registration
Aorm
-pdation
Aorm
)rdering
Aorm
Payment
!orm
,usiness Classes
Registered
Customer
Seller
&dministrator
&ccess Classes
&ccess
#ata'ase
Component Diagram :
RGIT0 M"M%AI! Page #. De1art2ent o3 MCA!
Object Oriented Modeling and Design ONLINE SHOPPING CART
SYSTEM
.!# Deplo%ment Diagram :
De1lo72ent diagra2s are 6sed to 9is6ali8e t4e to1olog7 o3 t4e 147sical co21onents
o3 a s7ste2 54ere t4e so3t5are co21onents are de1lo7ed!
So de1lo72ent diagra2s are 6sed to describe t4e static de1lo72ent 9ie5 o3 a s7ste2!
De1lo72ent diagra2s consist o3 nodes and t4eir relations4i1s!
!

&pplication Ser0er.e(e
#ata ,ase
Ser0er
&pplication
Ser0er
Client
Client
Client
**Pri0ate =et/or5++
**Pri0ate =et/or5++
**Pri0ate =et/or5++
**L&=++
)racle Ser0er
&ig .!!# De1lo72ent diagra2 3or Online S4o11ing S7ste2!
RGIT0 M"M%AI! Page $F De1art2ent o3 MCA!