Cinema Booking System Final
-
Upload
mahrbhojia -
Category
Documents
-
view
227 -
download
0
Transcript of Cinema Booking System Final
-
8/11/2019 Cinema Booking System Final
1/27
1
Cinema Booking System
Course: Modelling and Design (fall 2007)Course responsible: Thomas Hildebrandt
Submitted by: Toomas Kutt([email protected]),
Fraz Tabassam([email protected])
Jens kaae Christensen([email protected])
http://www.itu.dk/people/hilde/mailto:[email protected]://www.itu.dk/people/hilde/mailto:[email protected] -
8/11/2019 Cinema Booking System Final
2/27
!
ContentsSystem "ntrodution:............................................................................................................#
System de$inition.................................................................................................................%Fator &na'ysis:...................................................................................................................%
rob'em omain o*er*ie+..................................................................................................%
&'iation domain o*er*ie+..............................................................................................-The rob'em domain............................................................................................................-
Structure............................................................................................................................-
C'asses:............................................................................................................................-*ents:............................................................................................................................./
0eha*ior:..........................................................................................................................
The &'iation omain:....................................................................................................2
3sa4e...............................................................................................................................2&tors:............................................................................................................................11
3se Cases:..........................................................................................................................11Searh.............................................................................................................................11
0ookin4..........................................................................................................................11
ayment.........................................................................................................................1!
Tiketrint.....................................................................................................................1!Sessionditin4...............................................................................................................1!
Cinemaditin4...............................................................................................................1!
Funtions:..........................................................................................................................1%esi4n oument..............................................................................................................!1
urose:.........................................................................................................................!1Corretion to the ana'ysis:.............................................................................................!15ua'ity 6oa's:................................................................................................................!1
Tehnia' 'at$orm:............................................................................................................!!
7uiment:.....................................................................................................................!!
System So$t+are:...........................................................................................................!!esi4n 8an4ua4e:..........................................................................................................!!
&rhiteture:......................................................................................................................!!
Comonent &rhiteture:...............................................................................................!!roess &rhiteture:.....................................................................................................!#
9ode' Comonent:........................................................................................................!%
Funtion Comonent:....................................................................................................!Con'usion:........................................................................................................................!/
;e$erenes:........................................................................................................................!/
-
8/11/2019 Cinema Booking System Final
3/27
#
Cinema Booking SystemSystem Introduction:
The system o*ers a'' inemas in a ountry, but deendin4 uon needs, it an inte4rate
inemas o$ other ountries as +e''. &ny inema has one or more rooms, and eah room
ontains a set o$ seats. & room an be bui't and inte4rated in the system throu4h a roomesi4ner inter$ae, mana4ed throu4h a +eb based inema mana4er inter$ae. "n $uture
re'eases, this system +i'' ro*ide an inter$ae a''o+in4 ehen enterin4 the +eb=a4e the
system automatia''y sets the searh onditions to the 'oa' area, and a time inter*a'sannin4 the rest o$ the urrent day. >hen the user has entered searh riteria he or she
+i'' be resented +ith a 'ist o$ session='inks that $u'$i'' the riteria or an emty 'ist.
C'ikin4 a session 'ink returns a 4rahia' resentation o$ the room o$ the session, at+hih seats an be se'eted?dese'eted, a tota' rize dis'ayed and a bookin4=ommit
button. & bookingnumber +i'' be dis'ayed at the sreen. The user an brin4 a'on4 this
bookin4 number and ha*e the tikets rinted 'ater. &'so, this bookin4 number is essentia'i$ the user shou'd ha*e his?her money bak due to session=ane''ation, disease or other
rob'ems. "$ a user does not ay be$ore some time 'imit, sei$ied by the 'oa' inema,be$ore the session be4ins, the reser*ation +i'' automatia''y be ane''ed and theorresondin4 set o$ seats beomes a*ai'ab'e $or other users. >hen the mo*ie has been
on $or some time=san, +hih is a'so set by the inema mana4er, bookin4 or buyin4 a
tiket $or that artiu'ar sessionis no 'on4er ossib'e. o+e*er, the session in$ormation
is ket $or some time to hand'e any ustomer=re7uests or =om'aints. 3on ayment,rintin4 the orresondin4 tikets is ossib'e at any omuter onneted to the internet
and a rinter, or at any cinemao*ered by the system. "t is the userAs resonsibi'ity to
take are o$ the tikets beause a 4i*en tiket, reresentin4 a seat, an on'y be rintedone.
The system ro*ides $untiona'ity $or a cinemamana4er to shedu'e $uture mo*ies athis?her o+n cinema, i.e., enterin4 sessions into the database, as +e'' as han4in4 the
shedu'in4 and orretin4 errors in shedu'in4 ("$ any bookin4s ha*e been made this
beomes a bit more trikyB).
Thus, the system has t+o kinds o$ 'ients,
1= 3ser: (Searhin4, 0ookin4, ayin4)
-
8/11/2019 Cinema Booking System Final
4/27
%
!= Cinema manager(ersons +ho use the system $or their inema)
"$ some inema +ants to be art o$ the system, someone resonsib'e $or mana4in4 theinema must ontat the system administration. The system administration +i'' 4rant
ermission to the inema so shedu'in4 o$ mo*ies at the artiu'ar inema an be
er$ormed.
System defnitioneo'e an use this system to searh mo*ies and inemas in any area sei$ied by theuser. Cinemasonsists o$ roomsand seats. 3sers o$ the system an searh $or cinemas
or moviesThey shou'd be ab'e to narro+ do+n the searh to any area and time inter*a'.
Booking, ayment and rintin4 tikets is ossib'e $rom any omuter on='ine. The entra''ass is the session'ass that ha*e in$ormation about movie, cinema, room, time, seats
and bookings. Cinema mana4ers an shedu'e, reshedu'e and orret mo*ie session
shedu'in4. Session in$ormation is o''eted in timetable=objets $or makin4 searhin4
more e$$iient.
Factor Analysis:!unctionality searhin4, bookin4, buyin4, shedu'in4
"##l domain= ser*in4 inema ustomers, 'erks.
Conditions= Cooeration +ith inema 'erks, other simi'ar bookin4 systems,
(9u'ti'in4ua' system. Don ski''ed users. 22.22E utime, a'most un'imited ressoures.)
$ec%nology= 'ient=ser*er, re'iated ser*er $arms, inrementa''y bui't uon need, 1.=
1.. onurrent users.
&b'ects Cinema, ;oom, Seat, Session, 9o*ie, 0ookin4, TimeTab'e.
es#onsibility= re'iab'y searhin4 mo*ies and inemas and bookin4 and buyin4.
Problem Domain overview
The tar4et system shou'd ro*ide $ai'ities $or 'ients and inema 'erks to searh $or*aant seats at artiu'ar mo*ie=sessions usin4 *arious riteria 'ike ity, inema, mo*ie
tit'e, mo*ie ate4ory et.. >hen users ha*e identi$ied a artiu'ar session the session
sreen is dis'ayed, at +hih, deendin4 on the o'or o$ the seat=symbo's, it is ossib'e tohoose a number o$ seats to book or reser*e. & reser*ation an either be $o''o+ed diret'y
by ayment or a reser*ation number an be brou4ht to another omuter and used as
'o4in or to the inema and in both ases ayment an be made and tikets rinted. "$ ainema burns do+n or $or any other reason a session is ane''ed, it is announed on the
+eb a4e. "t is ruia' that users kee his?her reser*ation number i$, $or any reason,money $or bou4ht tikets shou'd be re$unded. Thus, sessions are ket in some session
stora4e $or some time to make it ossib'e to trak any re'e*ant in$ormation in any aseso$ om'aint.
-
8/11/2019 Cinema Booking System Final
5/27
-
Application domain overviewThe system shou'd sustain a'' tasks neessary $or any ustomer to make the inema
ehether a inema +ants to ha*e 'erks em'oyed at theinema, is a matter o$ hoie o$ the inema o+ner. This system is suosed to +ork in a
+ay that a'' neessary tasks an be done so'e'y by the user. The +ho'e setrum $rom
searhin4 a mo*ie and 'oation to ha*in4 bou4ht and rinted a set o$ tikets is mana4edby the system and ontro''ed by the user. Cane''ation and hand'in4 o$ errati senariosor use=ases is o*ered by keein4 ast session in$ormation stored $or some 'imited time.
The system ontains a'' mo*ies that any inema mana4er has bothered to enter into the
system. So, i$ an o'd or ne+ mo*ie has not been entered and a inema mana4er +ants toshedu'e the mo*ie at his?her inema in the near $uture, he or she has to enter it +ith a''
re7uired $ie'ds. This is done throu4h the inema mana4er inter$ae.
The problem domain
Structure
Clusters
Fi4ure 1 sho+ the 'ass dia4ram and the on'y 'uster +e ha*e in our system is indiated:
Cinemas ha*e rooms +hih ha*e seats. Cinemas a44re4ate rooms +hih a44re4ates seats.
& desrition o$ 'asses and e*ents $o''o+s.
Classes:
Time table
Time tab'e is ontainer 'ass in urrent system. "t ontains 'ist o$ a'' sessions, 'ist o$ a''
mo*ies and inemas. Time tab'e 'ass is se'eted $or searhin4 oint o$ *ie+. &s itontains om'ete in$ormation about inemaAs, mo*ies and session, user an searh a''
the sessions a*ai'ab'e $or mo*ie or an searh a'' the inemas re4istered +ith inema
bookin4 system."ttributes: timeTab'e", inema8ist, mo*ie8ist, session8ist.
Session
& session objet uni7ue'y ho'ds to4ether time, room, seat booking and movie. Sessionis the entra' 'ass that oordinates this in$ormation, thus it ho'ds the data mode' read to
resent a sreen o$ *aant and reser*ed seats. "t a'so kees trak o$ bookin4 and ayment
in$ormation.
"ttributes: time, session "
Booking
"n$ormation on a set o$ seats at a session a user an be identi$ied throu4h a reser*ationnumber.
"ttributes: bookin4 ".
Movie
9o*ie ontains in$ormation about the mo*ies in 4enera'. For e
-
8/11/2019 Cinema Booking System Final
6/27
Cinema
Cinema 'ass arries 4enera' in$ormatin about a inema i.e. name o$ inema, 'oation, and
ontat in$ormation."ttributes: name, address, muniia', te'ehone, $a
-
8/11/2019 Cinema Booking System Final
7/27
/
Events:
seatSelected/seatDeselected
& ustomer se'ets and dese'ets seats +hi'e hoosin4 the aroriate seats at the session
sreen.
seatPaid
& seat has been aid $or.
Book
"$ a seat +as se'eted at the time o$ ommittin4 the bookin4 it beomes reser*ed.
bookCancelled
& ustomer may enter the bookin4 " and ane' the reser*ations.
bookTimeOut0e$ore session=start, be$ore some time=inter*a' set by the inema mana4er, a'' non=aid
reser*ations are set $ree automatia''y $or other ustomers to book.
ticketPrinted
Tikets, reresentin4 sin4'e seats
>hen the inema mana4er enters an be rinted on'y one.
sessionScheduled/sessionCancelledsession data to the database a number o$ sessions 4et
shedu'ed, 'ike ressin4 a Gommit session shedu'eH button. Sessions an be ane''ed.
sessionTimeOut& number o$ minutes into a mo*ie session, the number is deided by the inema mana4er,the seats o$ a session beome una*ai'ab'e $or buyin4. The session is then stored $or 'ater
use in ase o$ any in7uiries or om'aints.
searchTermsEntered
The ustomer has ressed the Gsearh buttonH, searh=riteria bein4 *a'id or not.
roomUdated!created/deleted"
;ooms an be desi4ned, re'atin4 to number and arran4ement o$ seats, in the system usin4
the room=desi4ner inter$ae a*ai'ab'e $or inema mana4ers. &'so rooms an be reno*ated
and han4ed.
cinemaUdated!entered/e#ited"
Cinemas may enter or e
-
8/11/2019 Cinema Booking System Final
8/27
movieUdated!entered"
>hen a ne+ mo*ie has been rodued it shou'd be entered into the system, +ith a''
re'e*ant desriti*e $ie'ds, so that inema mana4ers an ik the tit'e $rom a 8ist0o< andshedu'e it at his?her inema.
Classes
Events Cinema Seat Room Session Movie Timetable Booking
seatSelected *
seatDeselected *
seatPayed + + +
selectionBooked + + +
bookCancelled + + +
bookTimeOut + + +
roomCreated + + +
roomDeleted + + +
cinemaEntered + + +
cinemaEited + + +
sessionSc!eduled + + + + +sessionTimeOut + +
sessionCancelled + + +
ticketPrinted +
movieEntered + +
$able *: *ent tab'e.
ehavior:
rob'em domain dynamis is main'y assoiated +ith session, bookin4 and seat 'asses.
Booking:
In ommittin4 a re7uest $or a bookin4 o$ a se'eted set o$ seats, a bookin4 objet is
reated that ho'd the re'e*ant in$ormation. "t is destroyed +hen it is ane''ed, aid $or or
timed out.
!igure 2: 0eha*iora' attern, state hart, $or the 'ass 0ookin4.
-
8/11/2019 Cinema Booking System Final
9/27
-
8/11/2019 Cinema Booking System Final
10/27
1
&tors
3se Cases nduser Cinema 9ana4er
Searh
0ookin4
ayment
Tiket rint Sesseion editin4
Cinema editin4
Fi4ure -: &tors and use ases
!igure .: 3se ase dia4ram
-
8/11/2019 Cinema Booking System Final
11/27
11
Actors:
Fi4ure / ehen ommittin4 a bookin4, a messa4e
about ossib'e reshedu'in4 are announed at the site and that money an be re$undedusin4 roer identi$iation.
-
8/11/2019 Cinema Booking System Final
12/27
1!
Payment
>hen a bookin4 has been ommitted, the user is resented +ith a hoie o$ ayin4
immediate'y or 'ater. "$ immediate'y is hosen the user is resented +ith a standard
roedure $rom aya' or other third=arty ayment=ser*ie.
Tic#etPrint>hen ayment $or a set o$ seats has been er$ormed either outside or at the inema, the
indi*idua' tikets an be rinted. This is done by the user identi$yin4 him=?herse'$ +ith
either a strie=ode rinted at home or e'se+here +hih an be interreted by a mahine
at inema, or identi$iation throu4h the ard used $or ayment. "$ ayment is er$ormed atthe inema, identi$iation is not neessary.
SessionEditin"
Cinema mana4ers shedu'e mo*ie sessions throu4h an inter$ae. Sessions an be entered
into and de'eted $rom the system. Sessions an a'so be edited. &'' this is done throu4h theinema mana4er inter$ae. "$, $or some reason a mo*ie=session must be ane''ed or
reshedu'ed, this is strai4ht $or+ard +hi'e there are no bookin4s $or the session itbeomes a more om'e< task i$ bookin4s ha*e a'ready been made $or the session. Thenannounements must be made on the site. 0eause users are anonymous, they annot be
noti$ied diret'y. o+e*er, users o$ the system are made a+are o$ this risk +hen makin4
a bookin4.
CinemaEditin"
Cinema mana4ers an be a''o+ed to re4ister their inema +ith the system, at +hih oint
the rooms shou'd be bui't and beome a*ai'ab'e to the system. The use ase is best
desribed as a Gho+ toH use the inema mana4erAs room desi4ner. De+ rooms an bebui't, ne+ seats added and so on. These tasks are er$ormed throu4h the inema mana4er
inter$ae.
-
8/11/2019 Cinema Booking System Final
13/27
1#
!igure 3: The state=hart dia4ram de$ines di$$erent +ays the system an han4e state.
The bookin4 use=ase is the entra' use=ase o$ our system.
-
8/11/2019 Cinema Booking System Final
14/27
1%
Functions:Tab'e ! sho+s 'ist o$ $untion, assoiated +ith the system. Tab'e a'so sho+s tye o$ eah$untion and om'e
-
8/11/2019 Cinema Booking System Final
15/27
1-
System has in tota' ten user inter$ae $orms. These $orms are di*ided in to three arts.
1= nd user
!= Cinema 'erk#= Cinema mana4er
n4'ish is the 'an4ua4e $or a'' the user inter$ae $orms.
!igure 6: Da*i4ation dia4ram $or user inter$ae $orms.
-
8/11/2019 Cinema Booking System Final
16/27
1
>e deided to make di$$erent user inter$ae $orms $or inema 'erk. Cinema 'erk is a'so
enduser o$ the system, as 'erk is standin4 at 'oa' inema and he does not need a'' the
$orms +ith searhin4 and other riterias. e an diret'y *ie+ a'' the seats $or artiu'arsession and ab'e to book any o$ the a*aia'b'e seat. Cinema mana4er a'so has searete
user inter$ae $orms. For inema mana4ers a seia' $orm +ith administrati*e 'o4in has
been added.
Fi4ure 1: nduser $orm1.
-
8/11/2019 Cinema Booking System Final
17/27
1/
Fi4ure 11: nduser $orm!.
Fi4ure 1!: nduser $orm#.
-
8/11/2019 Cinema Booking System Final
18/27
1
Fi4ure 1#: nduser $orm%.
Fi4ure 1%: nduser $orm -.
-
8/11/2019 Cinema Booking System Final
19/27
12
Fi4ure 1-: nduser $orm .
Fi4ure 1: Cinema 'erk $orm1.
-
8/11/2019 Cinema Booking System Final
20/27
!
Fi4ure 1/: Cinema 'erk $orm!.
Fi4ure 1: Cinema mana4er $orm1.
-
8/11/2019 Cinema Booking System Final
21/27
!1
Fi4ure 12: Cinema mana4er $orm!.
Desi"n Document
Purpose:
The tar4et system shou'd be ab'e to searh $or mo*ie or inema. "t shou'd a'so be ab'e to
book or buy a tiket $or a mo*ie. 0y usin4 the tar4et system ustomer shou'd be ab'e toane' the bookin4. The urrent system shou'd be inte4rated +ith another system thattakes the resonsibi'ity o$ seure ayment system.
Correction to the analysis:
Some orretions +ere made to ana'ysis doument. De+ attributes added to 'asses in
order to ature the in$ormation o$ e*ents.
$uality %oals:
Fi4ure 12 sho+s riority o$ desi4n riteria. Seia' emhasis +as ut on the usabi'ity,
seurity and re'iabi'ity. Customers o$ the urrent system are 4oin4 to use their redit ards
that are +hy seurity and re'iabi'ity are o$ 4reater onern. >e made seure onnetion+ith another system +hih takes the resonsibi'ity o$ seure ayment system. Corretion
is a'so imortant beause it tar4et system is not interatin4 +ith other systems orret'y
then there may be hanes o$ +ron4 ayments.
-
8/11/2019 Cinema Booking System Final
22/27
!!
Criterion ery
5m#ortant
5m#ortant 8ess
5m#ortant
5rrelevant 1asily
fulfilled
4sable 9
Secure 9
1fficient 9
Correct 9eliable 9
Maintainable 9 9
$estable 9
!leible 9
Com#re%ensible 9
eusable 9
/ortable 9
5ntero#erable 9
!igure 20: /riority of design criteria
Technical Plat&orm:
E'uipment:
The system is $or a'' the +eb bro+sers runnin4 on re4u'ar CAs.
System So&tware:
esi4n o$ our system based on im'ementin4 the system in CM (C Shar) 'an4ua4e.
Desi"n (an"ua"e:
The desi4n doument is based on the 398 notation.
Architecture:
Component Architecture:
The Current a'iation is basia''y a +eb a'iation and user an 4et a'' the re'a*ent
in$ormation by usin4 any +eb bor+oser $rom any +here. Keein4 this senario +e
se'eted the 'ient=ser*er ariteture $or urrent system. "t onsists o$ t+o 'ayers, a 'ientand a ser*er 'ayer. Ser*e interats +ith se*era' 'ients at the same time. Fi4ure !1 sho+s
the systemsAs arhiteture.
-
8/11/2019 Cinema Booking System Final
23/27
!#
Fi4ure !1: ia4ram sho+in4 the systemAs omonent arhiteture.N1O
Process Architecture:
The system is e
-
8/11/2019 Cinema Booking System Final
24/27
!%
Fi4ure !!: ia4ram sho+in4 the SystemAs roess arhiteture.N1O
)odel Component:
The mode' omonent im'ements mode' and ontains a'' the 'asses o$ the urrent
system.
-
8/11/2019 Cinema Booking System Final
25/27
!-
Structure$
Fe+ han4es +ere made to 'ass dia4ram in re'ation to ana'ysis doument. De+
attributes added to 'asses. Fi4ure !# sho+s ne+ 'ass dia4ram. Do+ +e desribe'asses +ith more detai'.
Classes
Cinema
/ur#ose:;e4ister the basi in$ormation about inemas
"ttributes:name, address, t'$ no, munia'ity.
erations: 6etCinemaDame, ditCinema, 6et;oom8ist.
Room
/ur#ose:;e4ister in$ormation o$ room +ithin sei$i inema.
"ttributes:roomDame, roomShedu'edate, roomnteredate, room
-
8/11/2019 Cinema Booking System Final
26/27
!
Fi4ure !#: C'ass dia4ram $or mode' omonent.N1O
Function Component:Three ne+ 'asses +ere reated and 'aed in the $untion omonent. The urose o$these 'asses is to arry out some o$ the $untions. The searh 'ass takes are o$ returnin4
4eo4rahia' in$ormation, to narro+ do+n the amount o$ data to searh. rintTiket is in
the $untion omonent beause it does not be'on4 any+here e'se. 8ast, the ayment
inter$ae is e
-
8/11/2019 Cinema Booking System Final
27/27
!/
Conclusion:>e be'ie*e to ha*e reated an o*er*ie+ o$ a inema bookin4 system that may be
de*e'oed o*er time. >e ro*e that understandin4 on'y the mode'in4 onets and notthe under'yin4 tehno'o4ies makes a resu't that may not be roer. >e ha*e dra+n a
$rame+ork that may ser*e as a tem'ate $or ro4rammers to start out $rom. >hether a
om'ete'y di$$erent aroah shou'd ha*e been used +e are unab'e to jud4e. >ee