ucna.ac.irucna.ac.ir/uploads/%D9%85%D9%87%D9%86%D8%AF%D8%B3%DB%8C_%D9%8… · Created Date:...

9
{rc't e ;Sl,*.oltt } ) 9ei a*, y 1l/l.lYY Oi=-r41 G:J'6 1 Jlllp,.d&p oq.;r roU si.c)tb! .919[i ,*o.r:q* u,1,, o,rl;Li! ..r-* oLul pU dijrJ lY. gb,:i,l *,rr lilt -1f cLeai JlA ,=5c$B pU 9 pU ,rr-5.qr.i.j l; o.1 la.,l, Jlt Ju** UCNA .5",- +rJ c.dtyo ;r..gl! oylc e?b C-\a orL- r9c.;*l $-lr1 ny19- 4Jr.J,-f 1r'l "u "ul9>e*tu d,yl,u c,19,o aly Liit .+*J; lq oo ,l 'y toaf; LtU ..:r5,r- ,j.L'J ,r-i; "r; U; e-L, + .: ;i,,5 'rol9:.; .,al,i .5lor-i o9j o;lo &!, .f," ;1 "-g *:; Jf* ,JG ,*"- rs 11 tg.> rjq.F libj .i,Jl!,r"i V,.xa La*.f jl sq+^,t t* rC".+ fl .;-l 3;* ;b -*1 1r ol;*-o .-'or: jsl .-,-lr-, .;.3J f-L" r+lS,f cl-t- L ..r*r_4.1 oJi l*ii a) Class ATM{ Public getCardlnserted0 { c.requestPINO; doSomthing; a.open0 \ j Pubiic acknowledgeQ{ doSomthing; c.seleciF0rmMenu0 !c*i c*rc ATh/l .'--)E q5;Lo;!r,- 11 +i-1, )r {"-; el*5 ;a.j .glorl.:9^; 4 +9, ! - 1 Jly m Customer Account frequestt N rselectF )m ATM +deposit() +withciraw0 :getAmountfl +tocl(0 +vaiidate0 +requestO +initialize0 +getGardlnserted( +typePlN0 +select0 +abortO +ackncwledge() b) Class ATM{ Pubiic getCardlnserted0 { c.requestPINO: doSomthing; a.lock0 ) Public acknowledge${ doSomthing; c.selectFormMenu0 c) Ciass ATM{ Public getCardinsefi ed0 { c.requestPlNtrO; rioSomthing; a.ackno\ /ledge0 \ ) Public aci<nowledge0{ doSomthing; c.selectFormMenu0 ) d) Class ATM{ Pubiic getCardlnserted0 { c.requestPINO; doSomthing; a.valiciate() ) Public acknow,ledge${ doSomthing; c.selectF0rmMenu0 I J

Transcript of ucna.ac.irucna.ac.ir/uploads/%D9%85%D9%87%D9%86%D8%AF%D8%B3%DB%8C_%D9%8… · Created Date:...

Page 1: ucna.ac.irucna.ac.ir/uploads/%D9%85%D9%87%D9%86%D8%AF%D8%B3%DB%8C_%D9%8… · Created Date: 7/14/2015 5:21:27 PM

{rc't e ;Sl,*.oltt } ) 9ei a*, y

1l/l.lYY Oi=-r41 G:J'6 1 Jlllp,.d&p oq.;r roU

si.c)tb! .919[i ,*o.r:q* u,1,, o,rl;Li! ..r-* oLul pU

dijrJ lY. gb,:i,l *,rr lilt -1f cLeai JlA

,=5c$B pU 9 pU

,rr-5.qr.i.j l; o.1 la.,l,

Jlt Ju**UCNA

.5",- +rJ c.dtyo ;r..gl! oylc e?b C-\a orL- r9c.;*l $-lr1 ny19- 4Jr.J,-f 1r'l "u "ul9>e*tu d,yl,u c,19,o aly Liit

.+*J; lq oo ,l 'y toaf; LtU ..:r5,r- ,j.L'J ,r-i; "r; U; e-L, + .: ;i,,5 'rol9:.; .,al,i .5lor-i o9j o;lo &!, .f," ;1 "-g

*:; Jf*

,JG ,*"- rs 11 tg.> rjq.F libj .i,Jl!,r"i V,.xa La*.f jl sq+^,t t* rC".+ fl .;-l 3;* ;b -*1 1r ol;*-o .-'or: jsl .-,-lr-,

.;.3J f-L" r+lS,f cl-t- L ..r*r_4.1 oJi l*ii

a)

Class ATM{Public getCardlnserted0 {

c.requestPINO;doSomthing;a.open0

\jPubiic acknowledgeQ{

doSomthing;c.seleciF0rmMenu0

!c*i c*rc ATh/l .'--)E q5;Lo;!r,- 11 +i-1, )r {"-; el*5 ;a.j .glorl.:9^; 4 +9, ! - 1 Jlym CustomerAccount

frequestt NrselectF )m

ATM

+deposit()+withciraw0:getAmountfl+tocl(0+vaiidate0+requestO+initialize0

+getGardlnserted(

+typePlN0+select0+abortO+ackncwledge()

b)

Class ATM{Pubiic getCardlnserted0 {

c.requestPINO:doSomthing;a.lock0

)Public acknowledge${

doSomthing;c.selectFormMenu0

c)Ciass ATM{Public getCardinsefi ed0 {

c.requestPlNtrO;

rioSomthing;a.ackno\ /ledge0

\)

Public aci<nowledge0{doSomthing;c.selectFormMenu0

)

d)Class ATM{Pubiic getCardlnserted0 {

c.requestPINO;doSomthing;a.valiciate()

)Public acknow,ledge${

doSomthing;c.selectF0rmMenu0

IJ

Page 2: ucna.ac.irucna.ac.ir/uploads/%D9%85%D9%87%D9%86%D8%AF%D8%B3%DB%8C_%D9%8… · Created Date: 7/14/2015 5:21:27 PM

f ;-l c-rr A .r)E .gjLocL ! &1, .tr *.f r^l.l5 -,,-j .giorlc9^; * +y ! -y Jlry

!i-l 6--"..- C .,.)5 .grL"c! ! o&1, ;r *.f f hS J+ Jl9- .51-orlo * *. *i ! -y Jlry

a)

Class A{Public s0{

doSomthing;c.w0

)

Pubiic t0{doSomthing;d.r0

tJ

)

lulI Class A{

I Public s0{doSomthing;c.w0

)

Public t0{doSomthing:d'v0

)... )

c)Class A{Public s0{

doSornthingc.w0

1J

Public t0{doSomthingd.u0

)t

d)Class A{Pubiic s0{

doSomthing;c.w0

)

Public t0{doSomthing;d.v0

))... (

a)

Ciass C{Public w0{

doSomthing:d'w0

1J

Public x0{doSomthing;a.r0

)'l

... I

b)Class C{Public w0{

doSorntliingd.u0

)

Public x0{doSomthinga.r0

)\.'. I

c)Class C{Pubiic v0{

doSomthing;d.r0

tJ

Public w0{doSomthing;a.o

)1

d)Class C{Public w0{

doSomthing;d.v0

)

Public x0{doSomthing;c.r0

)\

Page 3: ucna.ac.irucna.ac.ir/uploads/%D9%85%D9%87%D9%86%D8%AF%D8%B3%DB%8C_%D9%8… · Created Date: 7/14/2015 5:21:27 PM

!;*l 6.-r.- Lq.")E .91L,":'q, li "l-L f *.f rlu5 ri .5lorica-: 4," +i q -f -llr

a)

Class Classl{Publicmethodl0{

doSomthing;c4.method70;doSomthing;c3.method50

.l

Ciass Class3{Pubiicmethod50{

doSomthing;c4.method60;

Ciass Ciass4{PublicmethodT(){

doSomfhing;

)PubiicmethodS(){

doSomthing;

i

b)

Class Ciassi {Publicmethodi0{

doSomthing;c4.method70;doSomthing;c3.method50

'I

{

Class Class3{Publicmethod50{

doSomthing;\)

Class Ciass4{PublicmethodT0{

doSomthing;c3.method6()

c)Class Classl {Publicmethodl0i

doSomthing;c4.method70;doSomthing;c3.method5()

)

Ciass Ciass3{Publicmethod50i

doSomthing;c4.method3();

)J

.lClass Class4{PublicmethodT(){

cioSomthing;

d)Ciass C1assl {Publicmethodl0{

doSomthing:c4.method70;doSomthing;c3.method50

)

Class Class3 {Publicmethod50{

doSomthing;c4.method60;

)

Class Class2{Publicmethod60{

doSomthing;

methodS{)method60

Page 4: ucna.ac.irucna.ac.ir/uploads/%D9%85%D9%87%D9%86%D8%AF%D8%B3%DB%8C_%D9%8… · Created Date: 7/14/2015 5:21:27 PM

f*;l*.,.. a--- ClaSS2 ;l .5-*lu5 r,; 6torl.;9^i e Az9', 1* -6 Jlf,

..r,fc i*,1, oJ; e$-.St+llf a, .r*, .gl"orlcy- , "qy \

Class2Classl

method370

a)Class Class2{Public method290{

doSomthing;c1.method540

)Public method48(){

doSomthing;c3.method370

)

b)Class Class2{Public method290{

doSomthing;c1.method540

)Public method480{

doSomthing;c3.method540

I

c)Class Class2{Public method290{

doSomthing;c1.method540

-}

Public rnethod4S0{doSomthing;c3.method 180

)

d)Class Class2{Public method290{

doSomthing;c1.method370

t(Public method480{

doSomthing;c3.method830

]

-phonebook : Phonebook-speaker: Speaker-radio : Radio

-controller : Controlle+retrieveName0+insertRecord0

+getNumbeo+incomingCall0

allerHangUp0

-ringing : bool

stopRing0+setVolume0

eiName0getNumber0

Page 5: ucna.ac.irucna.ac.ir/uploads/%D9%85%D9%87%D9%86%D8%AF%D8%B3%DB%8C_%D9%8… · Created Date: 7/14/2015 5:21:27 PM

: Radio i___l*--.]_-i inconrinoCali{l i

I".,1

: Controller

nng0

#i turnlrgnOnQ

I

I

showCallerName0i, I \lr l ----------------

I

I

I

I

I

,,Istopl-<rngU i

showStopMessage0rlrrlItlirl

l, getNunrbe0 t

callerHangUp0

I retrieveName0

r----_2\l--v

a)

iurnLighton0showCallerName()retrieveName0showStopMessage()

!.:*l 6-^>.., DisOlay ,,)Lr .gr.olu; ! o!l: sr *-F ph5 -t Jli-b)turnlightOn0showCallerName0showStopMesssage0

c)

showCallerName()retrieveName0getNumber0

!sri-: Assocration " t^,1 , Disptray .r"ys t k .)r plrf -y Jli-

9.:-l 3*o- Speaker ,-*)tf qgL"u- i; aL;l) :s e-f flJS -A Ji*,,

d)turnLighton0turnLightOfoshowCallerName0clearDisplayQshowStopMessage0

b)RadioCcntrollerPhoneBook

c)ConrollerPhoneBook

d)ControllerPhoneBookDisplay

a)RadioControllerPhoneBookRecord

a)

ring0shoi.vStopMessage()retrieveName()

c)

ring0stopRing0

d)ring0setVolume0PlavJingle0

b)ControlierPhoneBookDisplay

!srl.: Association 4.t-t) Speaker o>ls t, L{-ys rlrs --t Jt}.

'1t .9f

iorrroti*PhoneBook

9 &-.lE -b -,r l, .u ,-15; ,'-:--,oe _;!c9^i

Page 6: ucna.ac.irucna.ac.ir/uploads/%D9%85%D9%87%D9%86%D8%AF%D8%B3%DB%8C_%D9%8… · Created Date: 7/14/2015 5:21:27 PM

[x=1][m=2]

E30/[m=m*2]

nternal: E50 I [k = m]xit/[x=x+1]

Ea()[m <=k]rlk=k- ll I E20,

Ea()[m.=4]t[m= m+2]

E2()[m.k] '[m=m+]l

830 [k > 12]/ [k: k + a] E30/[x=x+.1]

:nal:.E50.1:[m =x + k]/ ,[x.=.x + 1l

Entry/ [k=k+xExit/ [x=x+2]

X=X+1

E50 /

Final2 l

50/[x=x+1

E2lll[n=m+1]

E30/[m=0

E60/[m=rn-2]

Eafli[m=m+2]

El0/[m=m-1]

,2ll-> x m k

S1 0 0 1 a

S1 1 2 0 b

{52:521:5212. 52:5241 I 4 t C

S1 I 2 t d

fS2:521:5212. 52:S24] 1 1 0 e

f,>*)L y.; Cl 4 -*;5,-glor"i:";r_rE _l p*-:f- 6)4 q*;9;1-\ 1 Jl?-

S;9'r.rol9; e-,y- 6q il;;*b9 r5l-or1;" l-Jh -: pjl*-*- g J.1 -^1--og &" i., E3 clu;r r5l&J12 1' m k

{52:521:5212. 52:S24} 0 ) 0 a

{52 : S21 : 52 12. S2:524'I 1 2 0 b

{S2:521:5212, 32:5241 I 2 c

{32:521:5212, 32:5241 0 2 1 d

{52:521:5212. 52:S24} I z j ,e

I

*Jb x m k

S1 0 0 0

Page 7: ucna.ac.irucna.ac.ir/uploads/%D9%85%D9%87%D9%86%D8%AF%D8%B3%DB%8C_%D9%8… · Created Date: 7/14/2015 5:21:27 PM

,,Jb m k

52:521:S212, 32:524 0 0 0

t,:,- u-ole> d )y 4? + i.*oa9 ,-gi-o-i. -,*rL I r";*-" r-<J,1 .,1*^aJ *. i, E3 .:1,r.>, t'l

.L-, L> x m k

{S2:521:5211. 32:524) 1 0 0 a

S1 0 0 0 bS1 1 0 0 c

{S2:521:5212, 52:S24} 0 0 0 d

e

c;L ;; C-p * -:*l.5to;; -,r.rh I p*"*- .grL- ;^-; t ;l * \ f Jl_--

!.:9,.u19-- C:y d? 4J !*@9 .5G.r-iL" l-rh I i*1- ,gss. &*b9 eJ e: E2 ;1;-, ,fl

l:l12 x m k

{S2:S22. 52:S24 0 1 2{S2:S22, 52:S24 1 1 0 b

{S2:S21:5212. 52:S24} 1 1 3

{S2:S21:5212, 52:S24} 1 1 1 d

{52:522, 52:S24} I 1 2 'e

f

"r;;L,.,1 Cf'* -p9.gtor;- t.rW S $Li- t q j--*;9;l-\f Jl9-

,",::lo rli {S2:S21:S?11. S2:S25} --.*ts_,rr-91 52 iJl--;r r**-* d.Srlr c/-?lt ,!c9 .ul9- G:y- a-> at, i*), .-6io #; lJ& I F-:-.^,+ .g.rr u:.*o9 &J e_, E2 ,:lx;,, ,fl

Ltlb x m k

{S2:S21:S2tr1. 52:S25} '1 I ", .a

fS2:S21 :"S211. 52 :S25) 1 1 b{S2:S22. 52:S24} 7 1 2 ,c

{S2:521.:5212. 32:524 1 1 d

[S2:521:3212. 52:S25 1 1 2 'e

f

L2Jt> x m k

S1 0 0 0

ftt t.ft

S1 0 0 0

Page 8: ucna.ac.irucna.ac.ir/uploads/%D9%85%D9%87%D9%86%D8%AF%D8%B3%DB%8C_%D9%8… · Created Date: 7/14/2015 5:21:27 PM

aJb .I m k

S1 {) 0 0

.:;ls _,lr-i {S2:S21:S21 1, S2:S25} .-.*o9 rc ;9 32 JL= ,c n;*-*" oS or\ ,_y-fl s

f.:9, -rol9.> G_ty aZ 4' *it 6lsr;:- -,4Jb I ,t.-*?.- .g.s u:-*i9 JaJ e) E2 ;1;;., fl&JL> x m k

{S2:521:5211. 52:S25} I 1 2 ,l

{S2:521:5211, 52:S25} 1 2 I b

{52:521:5212" 52:S24} I 2 2 c

{S2:521:5212, 52:S25} I ,|1 d

e

!i-l pt+q" d/l Fli a-_f plr5 .-r5..- .S;l*& 6G u\y.,-;l+-r -1.:9--9" ;l .:lr-il .?r-\? Jl?-

r,-j€ -b J1; r* Jft JrjL $^!r i..cL ,i" - \ V Jle-

Light button Mode button

Alarm button Advance bulton

F-lr, Jl q a.cL .5,;j oS "roc ;Ll; l, ,_5c.rc.i,-cL ,Lj irr ."_J.-,.rts \ ,_r-s.t l, c-.-rL JJ, ;19:-;

-rf _rr ,*5 CI, l, c"cL .l;, prYl +J; ,Lr-i i? F,Il9i.. ..:, .roi9'- ,31 a;-y,_ ,h toL,;ul o,u

.u -rol9i el* *L ,3; },foy r"Jo +ii*-ic Y -*" u-_;ry-4.1,r- g.cL ,"rl Jl-- q r9,; oclc rl;s (mOde) -Jl.> a.Jc .rii9 .;-l ui"U ;Jt-= ;.cL 6rl-7 -r2;9,U -&..,|{ a.ll= +5s 5l .rg; ,s^.1= ;.rc .{ .-L (advance) J-iJ-1.y" +.5o -,k-! 1! r.o ! 9 o9,

.ct; cf * *lS '5,- "i-lic ;sJa4-, aJ-:;clcrS !.Jl-=;l;D .r-9_,e/ +L-io;*:U;Jl= t c9*: oclc

Page 9: ucna.ac.irucna.ac.ir/uploads/%D9%85%D9%87%D9%86%D8%AF%D8%B3%DB%8C_%D9%8… · Created Date: 7/14/2015 5:21:27 PM

q .AAJ .7 .r--U l, ,rU) 9 s9; ef .ra.l- -:-;l + Jf ,r- ocl.: -,S ttt t_r-o9- .51." cJl-= +-,<c *59!."f,r- Gs^V rl ;r,5G)t);-^^+r:)l-r-.-,-ril:Q;tc)r-,Ljr.r.U eltLl*rr;+J.crL*

( ",* f ) .J#5 p<-t y-) ;-.**!rc 1, ,r--6, ,:.cL ;-l '*--;l rl.:9^; YL ,:1>,-;E + "+i

o.:11L;L *:* {.;! rue.