issa hajal-report 28-9-2015(final) (1)
TRANSCRIPT
-
8/19/2019 Issa Hajal-Report 28-9-2015(Final) (1)
1/60
Correction in red
Use same font size through
the whole of the report
Page de garde
1
-
8/19/2019 Issa Hajal-Report 28-9-2015(Final) (1)
2/60
ACKNOWLEDGEMENTS
The realization of this project has been possible thans to the
help of se!eral people " #o$l% lie to e&press '( )ratit$%e*
"n the +rst place " #ill ha!e to than h$)el( the a%!isor Dr*
Na#af Ka(al for his contin$o$s s$pport an% follo# $p, an%
enrichin) a%!ices- his )$i%ance helpe% 'e a lot thro$)ho$t
this project*
" also #ant to than all the 'e'bers of the j$r(, in partic$larDr* .ala Naja Chief of the j$r(, #ho #as !er( attenti!e an%
al#a(s a!ailable thro$)ho$t the co'pletion of this #or-Dr*/a'al /i%a an% Dr* Moha''a% Saa%eh for consi%erin) this#or an% their insi)htf$l co''ents an% enco$ra)e'ent*
M( sincere )ratit$%e )oes also to Mr* 0osto' a'a, hea%
of the s'art sec$rit( co''$nit( for recei!in) $s #ith
pleas$re an% )i!in) $s the opport$nit( to join his tea'*
Witho$t their precio$s s$pport it #o$l% not be possible to
con%$ct this research*
2
-
8/19/2019 Issa Hajal-Report 28-9-2015(Final) (1)
3/60
A3ST0ACT
"n resta$rants b$siness, spee% in han%lin) c$sto'er4s re5$ests is
!er( i'portant for pro!i%in) )oo% c$sto'er ser!ice, #hich in t$rn
re6ect a +ne i'a)e abo$t the resta$rant*
7S'art Sec$rit(8 #ishes to a%% a ne# f$nctionalit( to its e&istin)
9OS soft#are b( %e!elopin) a 'obile application that co!ers an%
perfor's or%erin) ser!ices #hich facilitate #aiter4s job* This report
e&plains ho# a soft#are is %e!elope%* An% beca$se it4s a 'obile
technolo)( it 'eans that #aiter can tae the or%er ri)ht a#a( on
the 'obile %e!ice #hich lo#er the chances of lost or for)ottenor%ers that $psets c$sto'ers, 'oreo!er, application increase
ser!in) spee% an% acc$rac( )i!in) c$sto'ers )oo% ser!ice
Key words: 9OS, an%roi%, object oriente% soft#are,co''$nication s(ste', S:L ser!er, ;ML*
GLOSS90 O< WO0D
9OS= 9oint of sale*
>ML= E&tensible Mar$p Lan)$a)e*
G;"= )raphical $ser interface*
ADT= An%roi% De!eloper Tools*
S:L= Str$ct$re% :$er( Lan)$a)e*
;ML= ;ni+e% Mo%elin) Lan)$a)e*
?
-
8/19/2019 Issa Hajal-Report 28-9-2015(Final) (1)
4/60
E0= Entit( 0elational
Table of ContentsACKNOWL!"#N$%&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&'
A(%$)AC$&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&*
"LO%%P)+ O, WO)!&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&*
-N$)O!UC$-ON&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&.
1* General "ntro%$ction*************************************************************************@
2* Objecti!e******************************************************************************************@
?* 9lan of the report******************************************************************************B* Tass*************************************************************************************************
* 9roject en!iron'ent Conte&t of Masters trainin)***************************F
C/AP$) ': )0U-)#N$ ANAL+%-%&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&'1
1* "ntro%$ction************************************************************************************1
2* Abo$t an%roi%********************************************************************************* 1
?* The actors***************************************************************************************1
?*1Waiter****************************************************************************************1
?*2Mana)er************************************************************************************11
B*
-
8/19/2019 Issa Hajal-Report 28-9-2015(Final) (1)
5/60
2* ;ML*************************************************************************************************1B
?* ;se Case Dia)ra'**************************************************************************1B
?*1;se Case Dia)ra' of #aiter******************************************************1
?*2;se Case Scenarios of #aiter****************************************************1H
?*?;se Case %ia)ra' of Mana)er***************************************************2@?*B;se Case Scenarios of Mana)er*************************************************2@
B* Class %ia)ra'********************************************************************************* 2F
B*1The 'ain paca)e*********************************************************************?
B*2The paca)e of entities*************************************************************?1
B*?The a%apters paca)e***************************************************************?2
B*BThe %atabase 'ana)e'ent paca)e****************************************??
* Concl$sion**************************************************************************************?B
C/AP$) ---: !A$A(A%&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&341* "ntro%$ction************************************************************************************?
2* E0 %ia)ra'*************************************************************************************?H
?* 0elational sche'a**************************************************************************?@
B* TableIs %escription**************************************************************************?
* Concl$sion**************************************************************************************B?
C/AP$) -5: $%$-N" AN! 5AL-!A$-ON&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&22
1* "ntro%$ction************************************************************************************BB
2* ;se% technolo)ies**************************************************************************BB
2*1/AJA*******************************************************************************************BB
2*2>ML********************************************************************************************BB
2*?S:L********************************************************************************************BB
B* Screenshots************************************************************************************BH
B*10e)ister*************************************************************************************BH
B*2Lo)in******************************************************************************************B@
B*?Tables****************************************************************************************B
B*BCate)ories an% ite's*****************************************************************BF
B*Or%er an% %escription****************************************************************
B*HAll or%ers***********************************************************************************1
B*@Chan)e table*****************************************************************************2
B*Lo)o$t***************************************************************************************?
CONCLU%-ON AN! N/ANC#N$%&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&42
-
8/19/2019 Issa Hajal-Report 28-9-2015(Final) (1)
6/60
)eferences&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&44
L-%$ O, ,-"U)%:
,igure ': %mart %ecurity Logo&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&'1,igure *: use case diagram of waiter&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&'6
,igure 3: use case diagram of manager&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&*7
,igure 2: Class diagram for Acti8ity pac9age&&&&&&&&&&&&&&&&&&&&&&&&&3'
,igure 4: Class diagram for entities pac9age&&&&&&&&&&&&&&&&&&&&&&&&&3*
,igure 6: Class diagram for adapters pac9age&&&&&&&&&&&&&&&&&&&&&&&33
,igure .: Class diagram for dataase#anagement pac9age&&&&32
,igure 7: ntity relational diagram&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&3.
,igure ;: )elational schema&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&37
,igure '1: )egister operation&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&2.
,igure '': Login Operation&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&27
,igure '*: $ale operation&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&2;
,igure '3: Categories and items&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&41
,igure '2: Order operation&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&4'
,igure '4: dit or delete order operation&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&4*
,igure '6: Change tale operation&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&43
,igure '.: Logout operation&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&42
H
-
8/19/2019 Issa Hajal-Report 28-9-2015(Final) (1)
7/60
L-%$ O, $A(L%
$ale ': !escription of use case < )egister =&&&&&&&&&&&&&&&&&&&&&&&&&'7
$ale *: !escription of use case < Login =&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&';
$ale 3: !escription of use case < %elect tale =&&&&&&&&&&&&&&&&&&&&*1
$ale 2: !escription of use case < $a9e order =&&&&&&&&&&&&&&&&&&&&&*'
$ale 4: !escription of use case < %elect tale =&&&&&&&&&&&&&&&&&&&&**
$ale 6: !escription of use case < dit order =&&&&&&&&&&&&&&&&&&&&&&&*2
$ale .: !escription of use case < Cancel order =&&&&&&&&&&&&&&&&&&&*2
$ale 7: !escription of use case < Change tale =&&&&&&&&&&&&&&&&&&*4
$ale ;: !escription of use case < Clean tale =&&&&&&&&&&&&&&&&&&&&&*6
$ale '1: !escription of use case < As9 for ill =&&&&&&&&&&&&&&&&&&&&*.
$ale '': !escription of use case < Logout =&&&&&&&&&&&&&&&&&&&&&&&&&&*7
$ale '*: !escription of use case rm order =&&&&&&&&&&&&&&&&&31
$ale '3: !escription of use case < Cancel order =&&&&&&&&&&&&&&&&&3'
$ale '2: !escription of tale ?$ale?&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&21
$ale '4: !escription of tale @Order$emp&&&&&&&&&&&&&&&&&&&&&&&&&&&2'
$ale '6: !escription of tale ?User#anage?&&&&&&&&&&&&&&&&&&&&&&&&&2*
$ale '.: !escription of tale @Order$emp!etails&&&&&&&&&&&&&&&&2*
$ale '7: !escription of tale @-tems&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&23
$ale ';: !escription of tale @Categories&&&&&&&&&&&&&&&&&&&&&&&&&&&22
$ale *1: !escription of tale @Addition!etails&&&&&&&&&&&&&&&&&&&&&22
$ale *': !escription of tale @Addition&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&22
$ale **: !escription of tale @ProgramOptions&&&&&&&&&&&&&&&&&&&24
@
-
8/19/2019 Issa Hajal-Report 28-9-2015(Final) (1)
8/60
"NT0OD;CT"ON
1* General "ntro%$ction
"n these %a(s, there ha!e been a lot of resta$rants that oers)oo% 'eal for their c$sto'ers* 3$t people al#a(s co'plain abo$tor%erin) ser!ices* The c$rrent or%erin) 'etho% $ses paper an%pen, an% is 'an$all( %one b( the #aiter #ith the help of a 'en$*
This #a( the or%er nee%s ti'e to be taen an% passe% to theitchen, so it #ill not be ecient if the resta$rant has a lot of clients* ;sin) tablets 'a( sol!e the abo!e iss$e* "'a)ine that atablet beco'es a 'en$ an% a #aiter can or%er %irectl( fro' it*
Startin) fro' the 'entione% nee%s for a s(ste' that can 'ini'ize
h$'an errors, 7S'art Sec$rit(8 #ishes to a%% a ne# f$nctionalit(to its e&istin) 9OS soft#are b( %e!elopin) a 'obile applicationthat co!ers an% perfor's or%erin) ser!ices to facilitate a #aiter4s
job*
"n this #a( #aiter can #elco'e his cost$'ers an% pic an
$nocc$pie% table, then 'aes the or%er $sin) the tablet instea% of
paper an% pen
-
8/19/2019 Issa Hajal-Report 28-9-2015(Final) (1)
9/60
2* Objecti!e
O$r objecti!e is to b$il% a soft#are that easil( 'aes, e%its an%
cancels an or%er $sin) a tablet instea% of paper an% pen- it also
sa!es ti'e since it %eli!ers the or%er %irectl( to the itchen b(
$sin) a tablet as a 'e%i$'* The or%er #ill be sent to the ser!er
an% seen b( the chef in the itchen*
?* 9lan of the report
"n or%er to %oc$'ent o$r trainin), #e %i!i%e% this report into fo$r
chapters=
1 The +rst chapter contains the re5$ire'ent anal(sis, #hich
e&presses the f$nctional re5$ire'ent of this project*
2 The secon% chapter is concerne% abo$t the ;ML %ia)ra's
that e&plain the f$nctionin) of the tar)ete% application*
? "n the thir% chapter #e %isc$sse% the %atabase*
B The fo$rth chapter presents the 'ain steps of
i'ple'entation an% testin) of this application*
B* Tass
1 Anal(ze the %oc$'entation an% p$t the project re5$ire'ent*
2 Learn 'ore abo$t An%roi% application $sin) /AJA an% S:L
ser!er*
? Create the %atabase $sin) S:L ser!er*
B Start the i'ple'entation an% create all classes an% objects
nee%e%*
F
-
8/19/2019 Issa Hajal-Report 28-9-2015(Final) (1)
10/60
Test the application*
* 9roject en!iron'ent Conte&t of Masterstrainin)
The project of this Masters trainin) is %e!elope% at S'art
sec$rit(8 co'pan( $n%er the %irection an% s$per!ision of Mr*
0isto' a'a* S'art Sec$rit( is base% in TripoliLebanon, it is a
lea%in) co'pan( in Lebanon an% Mi%%le East, specialize% in
sellin) an% installin) sec$rit( s(ste's an% co'ponents for lar)e
an% s'all projects* So'e of the ser!ices oere% b( S'art
Sec$rit(=
• Ji%eo S$r!eillance CCTJ an% "9 ca'eras*
•
-
8/19/2019 Issa Hajal-Report 28-9-2015(Final) (1)
11/60
,igure ': %mart %ecurity Logo
C.A9TE0 1= 0E:;"0EMENT ANALS"S
1* "ntro%$ction
"n this chapter #e #ill +rst %isc$ss the $se% technolo)ies an% the
pro)ra''in) lan)$a)es nee%e% to b$il% this application-
On the other han% #e #ill sho# the actors accessin) the s(ste'
an% their f$nctional re5$ire'ent, an% #e #ill e&hibit the
'anip$late% objects*
-
8/19/2019 Issa Hajal-Report 28-9-2015(Final) (1)
12/60
?* The actors
The actors are the people accessin) the s(ste'- the( are
either in a %irect or an in%irect contact #ith the s(ste'* We
can i%entif( the follo#in) actors #ith their tass=
?*1 Waiter is the 'ain $ser of the application- he isresponsible of con!e(in) the re5$est of the client to the
'ana)er* That 'eans tain) or e%itin) an or%er an%
brin)in) the bill #hen %e'an%e%*
?*2 Mana)er is a secon% actor, he is not relate% %irectl(to the 'obile application, he $ses a %estop application
an% he can con+r' or cancel the or%er pro!i%e% b( the
#aiter*
B*
-
8/19/2019 Issa Hajal-Report 28-9-2015(Final) (1)
13/60
• Tae, e%it an% cancel an or%er
• As for cleanin) the table once it is e'pt(*
• As for bill
• Lo)o$t
B*2 The 'ana)er is the secon% $ser of the s(ste', hecan=
Q Con+r' the or%er pro!i%e% fro' the #aiterQ Cancel this or%er
* Manip$late% objects
*1 Table
• Table n$'ber
•N$'ber of chairs
• T(pe
• Stat$s
*2 Or%er
• ;ser 'an)er
• Table
• Date• T(pe RRtable, %eli!er(, tae a#a(
•
*? ;ser Mana)er
1?
-
8/19/2019 Issa Hajal-Report 28-9-2015(Final) (1)
14/60
•
-
8/19/2019 Issa Hajal-Report 28-9-2015(Final) (1)
15/60
• Or%er
H* Concl$sion
"n this chapter #e ha!e %isc$sse% the pro)ra''in) lan)$a)es,
an% #e speci+e% the actors, their f$nctional re5$ire'ent an% the
'anip$late% objects*
C.A9TE0 ""= MODEL"NG
1* "ntro%$ction
"n this chapter #e #ill )o thro$)h the 'o%elin) an% the concept of
the project-
-
8/19/2019 Issa Hajal-Report 28-9-2015(Final) (1)
16/60
soft#areintensi!e s(ste'* "t has 5$icl( beco'e the %efacto
stan%ar% for b$il%in) ObjectOriente% soft#are*
The i'portant point to note here is that ;ML is a 4lan)$a)e4 for
specif(in) an% not a 'etho% or proce%$re* 2P
?* ;se Case Dia)ra'
The $se case %ia)ra' is a ;ML %ia)ra' $se% to )i!e an o!er!ie#
abo$t the f$nctional re5$ire'ents of a soft#are s(ste'* The( are
$sef$l for presentations to 'ana)e'ent or project participants*
;se cases are 'eans of co''$nication bet#een $sers an% thes(ste'*
.ere #e %escribe the interaction bet#een the #aiter, the 'ana)er
an% s(ste'*
?*1 ;se Case Dia)ra' of #aiter
1H
-
8/19/2019 Issa Hajal-Report 28-9-2015(Final) (1)
17/60
,igure *: Use case diagram of waiter
?*2 ;se Case Scenarios of #aiter
?*2*1 0e)ister ;se Case
1@
-
8/19/2019 Issa Hajal-Report 28-9-2015(Final) (1)
18/60
;se Case 0e)ister
9ri'ar(
actor
Waiter
9re
con%itions
• The %e!ice '$st be connecte% to the ser!er*
• The #aiter '$st ha!e the 7a%'in pass#or%8*
• .e '$st not be re)istere% in a%!ance*
9ost
con%itions
The ne# #aiter has re)istere% an% his infor'ation
inserte% into %atabase*
Error cases • One of the pre!io$s precon%itions not
release%*
• One of the +el%s is not +lle%*
Main
Scenario
• The ne# #aiter clics the 7re)ister8 b$tton in
the 7lo)in8 acti!it(*
• The 7re)ister8 acti!it( #ill appear*
• .e +lls all +el%s in this pa)e #ith his personal
infor'ation*
• .e clics on 7re)ister8 to perfor' this
operation*
• The application !eri+es if all +el%s are +lle%*
• The application !eri+es if the $serna'e an%
pass#or% alrea%( e&ist*
• The ser!er application re)isters the acco$nt
b( insertin) the infor'ation into %atabase*
Table 1= Description of $se case 0e)ister
1
-
8/19/2019 Issa Hajal-Report 28-9-2015(Final) (1)
19/60
?*2*2 Lo)in ;se Case
;se Case Lo)in
9ri'ar( actor Waiter
9re
con%itions
• The %e!ice '$st be connecte% to the ser!er*
• The acti!it( 7lo)in8 is acti!e*
• The #aiter has re)istere%*
• .e '$st re'e'ber his $serna'e an% pass#or%*
9ost
con%itions
The #aiter #ill be lo))e% in an% start $sin) the
s(ste'*Error cases • The infor'ation entere% is either in!ali% or
ins$cient, an% the s(ste' %ispla(s an error
'essa)e*
•
-
8/19/2019 Issa Hajal-Report 28-9-2015(Final) (1)
20/60
?*2*? Select table ;se Case
;se Case Select table
9ri'ar( actor Waiter
9re
con%itions
• The %e!ice '$st be connecte% to the ser!er*
• The #aiter has lo))e% in*
• The acti!it( 7tables8 is acti!e*
9ost
con%itions
The #aiter selects a table to 'ae an or%er for it*
Error cases • The selecte% table is not a!ailable*
•
-
8/19/2019 Issa Hajal-Report 28-9-2015(Final) (1)
21/60
9re
con%itions
• The %e!ice '$st be connecte% to the ser!er*
• The #aiter has lo))e% in*
• The acti!it( 7cate)ories8 is acti!e*
9ost
con%itions
The #aiter 'aes an initial or%er that is a%j$stable*
Error cases The selecte% table is not a!ailable*
Main
Scenario
• The #aiter chooses a cate)or( fro' the list*
• The s(ste' )ets all ite's that are in relation
#ith the chosen cate)or( fro' the %atabase*
• The acti!it( 7ite's8 #ill appear*
• .e chooses the ite' re5$ire% b( clicin) on
7A%%8 b$tton*
• The %ialo) 7:$antit(8 #ill appear*
• .e speci+es the 5$antit( of the chosen ite'
then clic 7OK8*
• When the #aiter clics the 73ac8 b$tton he #ill
ret$rn to the cate)ories list*
• .e has to repeat the process $ntil he +nish his
or%er*
• .e clics the 7
-
8/19/2019 Issa Hajal-Report 28-9-2015(Final) (1)
22/60
?*2* Set %escription ;se Case
;se Case Set %escription
9ri'ar( actor Waiter
9re
con%itions
• The %e!ice '$st be connecte% to the ser!er*
• The #aiter has lo))e% in*
• .e has +nishe% his or%er*
• The acti!it( 7or%ers8 is acti!e*
9ost
con%itions
The #aiter sets so'e %escriptions for each ite' in the
or%er*
Error cases
-
8/19/2019 Issa Hajal-Report 28-9-2015(Final) (1)
23/60
;se Case E%it or%er
9ri'ar( actor Waiter
9re
con%itions
• The %e!ice '$st be connecte% to the ser!er*
• The #aiter has lo))e% in*
• .e has +nishe% his or%er*
• The acti!it( 7tables8 is acti!e*
9ost
con%itions
Correct or a%% 'ore ite's to an( or%er*
Error cases •
-
8/19/2019 Issa Hajal-Report 28-9-2015(Final) (1)
24/60
• To pic his ne# ite's*
• .e clics the 7sen%8 b$tton*
• A 'essa)e %ialo) #ill appear to infor' hi' that
his or%er #ill be accepte% fro' the 'ana)er*
Table H= Description of $se case E%it or%er
?*2*@ Cancel or%er ;se Case
;se Case Cancel or%er
9ri'ar(
actor
Waiter
9re
con%itions
• The %e!ice '$st be connecte% to the ser!er*
• The #aiter has lo))e% in*
• The speci+c or%er is taen*
• The acti!it( 7tables8 is acti!e*
9ost
con%itions
The speci+c or%er #ill be cancele%*
Error cases •
-
8/19/2019 Issa Hajal-Report 28-9-2015(Final) (1)
25/60
ite' on the or%ers*
Table @= Description of $se case Cancel or%er
?*2* Chan)e table ;se Case
o$ sho$l% 'ention here an% later that onl( a !acant table is liste% an%
once a table is chan)e% it beco'es a!ailable *
;se Case Chan)e table
9ri'ar(
actor
Waiter
9re
con%itions
• The %e!ice '$st be connecte% to the ser!er*
• The #aiter has lo))e% in*
• The c$rrent table is not !acant*
• The acti!it( 7tables8 is acti!e*
9ost
con%itions
• The ol% table is s$bstit$te% b( the #ante%
one*
• The stat$s of the ne# one is chan)e% to
7$na!ailable8*
• The stat$s of the ol% one is chan)e% to
7a!ailable8*
Error cases •
-
8/19/2019 Issa Hajal-Report 28-9-2015(Final) (1)
26/60
pics the #ante% table*
• A 'essa)e %ialo) sho#s $p to infor' hi'
that the ne# choice is accepte% if itIs
a!ailable*
• The stat$s of the ne# table chan)e% to
7$na!ailable8 an% the ol% one chan)e% to
7a!ailable8*
• "f not, the 'essa)e infor's hi' that the
table is $na!ailable*
Table = Description of $se case Chan)e table
?*2*F Clean table ;se Case
;se Case Clean table
9ri'ar(
actor
Waiter
9re
con%itions
• The %e!ice '$st be connecte% to the ser!er*
• The #aiter has lo))e% in*
• The c$rrent table is not !acant*
• The acti!it( 7tables8 is acti!e*
9ost
con%itions
• The speci+c table is cleane%*
• The tableIs stat$s chan)es to a!ailable*
Error cases •
-
8/19/2019 Issa Hajal-Report 28-9-2015(Final) (1)
27/60
7clean table8 an% 7as for bill8*
• .e chooses the 7clean table8 option*
• The stat$s of the c$rrent table chan)e to
7A!ailable8*• A 'essa)e %ialo) sho#s $p to infor' hi'
that the ne# table is cleane%*
Table F= Description of $se case Clean table
?*2*1 As for bill ;se Case
;se Case As for bill
9ri'ar(
actor
Waiter
9re
con%itions
• The %e!ice '$st be connecte% to the ser!er*
• The #aiter has lo))e% in*
• The c$rrent table is not !acant*
• The acti!it( 7tables8 is acti!e*
9ostcon%itions
• The bill #ill )et to the table*
Error cases •
-
8/19/2019 Issa Hajal-Report 28-9-2015(Final) (1)
28/60
Main
Scenario
• The #aiter presses for a #hile on a certain
table to )et its bill*
• Three options #ill appear 7chan)e table8,
7clean table8 an% 7as for bill8*
• .e chooses the 7as for bill8 option*
• A 'essa)e %ialo) sho#s $p to infor' hi'
that the bill #ill )et to the table as soon as
possible*
Table 1= Description of $se case As for bill
?*2*11 Lo)o$t ;se Case
;se Case Lo)o$t
9ri'ar( actor Waiter
9re
con%itions
• The %e!ice '$st be connecte% to the ser!er*
• The #aiter has lo))e% in*
•
The acti!it( 7tables8 is acti!e*
9ost
con%itions
The #aiter #ill be lo))e% in*
Error cases •
-
8/19/2019 Issa Hajal-Report 28-9-2015(Final) (1)
29/60
Main
Scenario
• The #aiter presses the 7Lo)o$t8 b$tton in the
acti!it( tales*
• A 'essa)e %ialo) sho# $p asin) hi' if he #ant
reall( to lo)o$t*
• .e chooses 7es8*
• The acti!it( 7Lo)in8 #ill appear*
Table 1?= Description of $se case Lo)o$t
?*? ;se Case %ia)ra' of Mana)er
,igure 3: Use case diagram of manager
2F
-
8/19/2019 Issa Hajal-Report 28-9-2015(Final) (1)
30/60
?*B ;se Case Scenarios of Mana)er
?*B*1 Con+r' or%er ;se Case
;se Case Con+r' or%er
9ri'ar(
actor
Mana)er
9re
con%itions
• The %e!ice '$st be connecte% to the ser!er*
• The 'ana)er has lo))e% in*
9ost
con%itions
• The or%er #ill be con+r'e%*
Error cases •
-
8/19/2019 Issa Hajal-Report 28-9-2015(Final) (1)
31/60
?*B*2 Cancel or%er ;se Case
;se Case Cancel or%er
9ri'ar(
actor
Mana)er
9re
con%itions
• The %e!ice '$st be connecte% to the ser!er*
•
The 'ana)er has lo))e% in*
9ost
con%itions
• The or%er #ill be cancele%*
Error cases •
-
8/19/2019 Issa Hajal-Report 28-9-2015(Final) (1)
32/60
B* Class %ia)ra'
Class Dia)ra' pro!i%es an o!er!ie# of the tar)et s(ste' b(%escribin) the objects an% classes insi%e the s(ste' an% the
relationships bet#een the'* "t sho#s the b$il%in) blocs of an(
objectorientate% s(ste'*
it %epict a static !ie# of the 'o%el, or part of the 'o%el,
%escribin) #hat attrib$tes an% beha!ior it has rather than
%etailin) the 'etho%s for achie!in) operations* ?P
B*1 The 'ain paca)e
This paca)e bello# contains so'e ja!a classes #hich responsible
for creatin) the acti!ities an% the pa)es appears to the $ser*
?2
-
8/19/2019 Issa Hajal-Report 28-9-2015(Final) (1)
33/60
,igure 2: Class diagram for Acti8ity pac9age
B*2 The paca)e of entities
.ere #e see all objects an% class 'o%el of this application* Each
entit( or 'o%el contains the attrib$tes an% the f$nctions*
??
-
8/19/2019 Issa Hajal-Report 28-9-2015(Final) (1)
34/60
,igure 4: Class diagram for entities pac9age
B*? The a%apters paca)e
This paca)e contains all classes necessar( for creatin) the
a%apters that responsible of b$il%in) the lists, all this classes '$st
be e&tant fro' the list a%apter class*
?B
-
8/19/2019 Issa Hajal-Report 28-9-2015(Final) (1)
35/60
,igure 6: Class diagram for adapters pac9age
B*B The %atabase 'ana)e'ent paca)e
The classes in this paca)e incl$%es the connection to the
%atabase an% all 'etho%s that responsible for )ettin), $p%atin),
%eletin) an% insertin) %ata into %atabase*
?
-
8/19/2019 Issa Hajal-Report 28-9-2015(Final) (1)
36/60
,igure .: Class diagram for dataase#anagement pac9age
* Concl$sion
"n this chapter #e ha!e %isc$sse% the projectIs concept an% #e
ha!e taen an i%ea of the ;ML %ia)ra' that %escribes the $se
case an% class %ia)ra'* We also sho#e% ho# each case #ill
interact #ith the $ser*
?H
-
8/19/2019 Issa Hajal-Report 28-9-2015(Final) (1)
37/60
?@
-
8/19/2019 Issa Hajal-Report 28-9-2015(Final) (1)
38/60
C.A9TE0 """= DATA3ASE
1*"ntro%$ction
"n this chapter #e #ill +rst see Entit( relational %ia)ra' an% the
relational sche'a of this project-
On the other han% #e #ill )i!e a %escription for each tables in the
%atabase*
-
8/19/2019 Issa Hajal-Report 28-9-2015(Final) (1)
39/60
2* E0 %ia)ra'
3efore startin) to create the %atabase for o$r project, #e capt$re% the
'anip$late% entities an% relations bet#een the' thro$)h ;ML Entit(
0elation %ia)ra' sho#n belo#* Entit(relation %ia)ra' has been create% b(createl(* BP
,igure 7: ntity relational diagram
?F
-
8/19/2019 Issa Hajal-Report 28-9-2015(Final) (1)
40/60
1*0elational sche'a The entit(relation %ia)ra' is then transfor'e% as tables that
b$il% the %atabase* The follo#in) +)$re sho#s the relational
sche'a of the %atabase that is create% for o$r application* Note
that this %atabase is a little part of a h$)e %atabase for a 9OS
%estop application s(ste'*
,igure ;: )elational schema
B
-
8/19/2019 Issa Hajal-Report 28-9-2015(Final) (1)
41/60
2*TableIs %escription.ere #e )i!e a %escription for each table in the %atabase* E&plain
the p$rpose of each object *
B*1 Description of table TableE>9LA"N
-
8/19/2019 Issa Hajal-Report 28-9-2015(Final) (1)
42/60
B*2 Description of table Or%erTe'p
E>9LA"N
-
8/19/2019 Issa Hajal-Report 28-9-2015(Final) (1)
43/60
;serMana)e"D "%enti+er "nt 9ri'ar( e(
;serMana)e
-
8/19/2019 Issa Hajal-Report 28-9-2015(Final) (1)
44/60
-
8/19/2019 Issa Hajal-Report 28-9-2015(Final) (1)
45/60
"te'Na'e Na'e of ite' " Jarchar
"te'9rice 9rice if ite' 6oat
"te'"con The i'a)e that
e&press the
speci+c ite'
!arbinar(MA>
$ale '7: !escription of tale @-tems
B*H Description of table Cate)ories
E>9LA"N
-
8/19/2019 Issa Hajal-Report 28-9-2015(Final) (1)
46/60
B*@ Description of table A%%itionDetails
E>9LA"N
-
8/19/2019 Issa Hajal-Report 28-9-2015(Final) (1)
47/60
,it can be
reference to a
speci+c ite'
b$t in the
principal
application atthe 'ana)er
$ale *': !escription of tale @Categories
B*F Description of table 9ro)ra'Options
E>9LA"N
-
8/19/2019 Issa Hajal-Report 28-9-2015(Final) (1)
48/60
"n this chapter #e ha!e seen the entit(relation %ia)ra' an% #e
ha!e taen an i%ea of the %atabase #ith the relational sche'a
then #e )i!e a %escription for each tables in the %atabase*
C.A9TE0 "J= TEST"NG AND JAL"DAT"ON
1 "ntro%$ction
"n this chapter #e #ill see an o!er!ie# abo$t the application #or6o#
an% so'e screen shots perfor' the f$nction of the application*
2 ;se% technolo)ies
2*1 /AJA /a!a #as the 'ain lan)$a)e $se% in this project, itIs an objectoriente% pro)ra'in) lan)$a)e that #e $se% to create the classes
an% the object $sin) ADT*
B
-
8/19/2019 Issa Hajal-Report 28-9-2015(Final) (1)
49/60
2*2 >MLActi!ities or la(o$t acti!ities are the )raphical interfaces G;"
sho#n to the $ser, these acti!ities #ere %esi)ne% $sin) >ML
lan)$a)e*
2*? S:LWe $se% S:L lan)$a)es to #rite the %atabase of this project, this
lan)$a)e #ill per'it $s to easil( )et, $p%ate an% %elete %ata fro'
the %atabase*
BF
-
8/19/2019 Issa Hajal-Report 28-9-2015(Final) (1)
50/60
? The application #or6o#
-
8/19/2019 Issa Hajal-Report 28-9-2015(Final) (1)
51/60
B Screenshots
B*1 0e)ister
Once the #aiter sli%e the b$tton to re)ister, he #ill be ase% for the
a%'in pass#or%, then he +ll all the infor'ation for re)istration*
1
,igure '1: )egister
operation
-
8/19/2019 Issa Hajal-Report 28-9-2015(Final) (1)
52/60
B*2 Lo)in
No# the ne# #aiter can #rite his $serna'e an% pass#or% an% start
$sin) the s(ste'*
2
,igure '': Login
Operation
-
8/19/2019 Issa Hajal-Report 28-9-2015(Final) (1)
53/60
B*? Tables
The #aiter chooses a speci+c table to seat his c$sto'ers on, an% he can press
for a #hile on the table- three options #ill appear 7chan)e table8, 7clean
table8 an% 7as for bill8*
?
,igure '*: $ale
operation
-
8/19/2019 Issa Hajal-Report 28-9-2015(Final) (1)
54/60
B*B Cate)ories an% ite's
After selectin) the certain table, the #aiter chooses the #ante% ite's fro' the
#ante% cate)ories, an% set its 5$antit(*
B
,igure '3: Categories
and items
-
8/19/2019 Issa Hajal-Report 28-9-2015(Final) (1)
55/60
B* Or%er an% %escription
All selecte% ite's #ill appear on the 7or%er8 pa)e, the #aiter can e%it the
c$rrent or%er, also can a%% so'e %escription for each ite'* When he clics on7sen%8 the or%er #ill pro!i%e to the 'ana)er, #ho can con+r' it or cancel it
an% then sen% to the #aiter the speci+c reason*
,igure '2: Order
operation
-
8/19/2019 Issa Hajal-Report 28-9-2015(Final) (1)
56/60
B*H All or%ers
"f the #aiter nee%s to a%% 'ore %etails on the or%er, no# he can perfor' this
operation, also he can %elete the $n#ante% or%er fro' the list*
H
,igure '4: dit or delete order
operation
-
8/19/2019 Issa Hajal-Report 28-9-2015(Final) (1)
57/60
B*@ Chan)e table
"n case the c$sto'er nee%s to chan)e his table the #aiter can perfor'
this action b( pressin) for a #hile on the #ante% table an% chooses the
ne# table*
@
,igure '6: Change tale
operation
-
8/19/2019 Issa Hajal-Report 28-9-2015(Final) (1)
58/60
B* Lo)o$t
The #aiter can lo)o$t fro' this application*
,igure '.: Logout operation
-
8/19/2019 Issa Hajal-Report 28-9-2015(Final) (1)
59/60
CONCL;S"ON AND EN.ANCEMENT
"n this report, #e %oc$'ente% the #or %$rin) the trainin) perio%* O$r
project ai's to %e!elop an an%roi% application that perfor' 'ost of the
ser!ices of the #aiter in the resta$rant #ho can tae, e%it or cancel an
or%er*
This application spee% $p the or%erin) process in the resta$rant an%
'ini'ize the errors co'in) fro' the %isor%erin) an% losin) the paper*
"t also sa!es ti'e since it %eli!ers the or%er %irectl( to the itchen b(
$sin) a tablet as a 'e%i$'*M( internship #as !er( intereste%, it allo#e% 'e to fa'iliarize '(self
#ith the %ierent ser!ices an% to ha!e a real approach to the #orl% of
#or* On the other han% this project enable% 'e to appl( '( scienti+c
an% aca%e'ic sills )aine% at $ni!ersit( an% appl( the' in a real
conte&t*
Tea'#or is !er( i'portant beca$se all ser!ices are interrelate% an%
nee% to co''$nicate* A )oo% at'osphere rei)n in the co'pan( an% all
the sta #as !er( cooperati!e an% attenti!e to '( 5$estions*
D$rin) the H 'onths trainin), " #as able to appl( 'an( ac5$ire%
theoretical no#le%)e an% concepts that helpe% 'e to o!erco'e so'e
technical proble's %$rin) the i'ple'entation of the project* " #ish that
the internship lasts lon)er so " can tr( all the position of '( enterprise*
"n the f$t$re is preferre% that #e a%% he part of reser!in) table, an%
%eli!erin) part* Cannot $n%erstan% *
F
-
8/19/2019 Issa Hajal-Report 28-9-2015(Final) (1)
60/60
0eferences
1P s'art sec$rit( #ebsite= http=RRs'artsec$rit(lb*co'R
2P http=RR###*spar&s(ste's*co'R$'lt$torial*ht'l
?P http=RR###*!is$al
para%i)'*co'RJ9Galler(R%ia)ra'sRClass*ht'l
BP ###*creatl(*co'
http://smartsecuritylb.com/http://www.sparxsystems.com/uml-tutorial.htmlhttp://var/www/apps/conversion/tmp/scratch_6/%5B3%5Dhttp://www.visual-paradigm.com/VPGallery/diagrams/Class.htmlhttp://www.visual-paradigm.com/VPGallery/diagrams/Class.htmlhttp://var/www/apps/conversion/tmp/scratch_6/www.creatly.comhttp://smartsecuritylb.com/http://www.sparxsystems.com/uml-tutorial.htmlhttp://var/www/apps/conversion/tmp/scratch_6/%5B3%5Dhttp://www.visual-paradigm.com/VPGallery/diagrams/Class.htmlhttp://www.visual-paradigm.com/VPGallery/diagrams/Class.htmlhttp://var/www/apps/conversion/tmp/scratch_6/www.creatly.com