ISQS7338--DCD

N message is required clause is optional l

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: := 1..N ]: message() “*” is required; [ ... ] clause is optional l Communication diagrams add Seq. Numbers before conditional messages or loops Logic in sequence diagrams: which notation do you prefer? :F o o :B a r x x opt [ color = red ] cl ut ale ca Figure 15.13 y y :F o o :B a r x x [cl r=e ]cl ut o o rd a l e ca Figure 15.14 y y Logic in communication diagrams c d n m a , ih s o ii a e g w t t n ol s e t e t s ma 1 eg se s :o F o 1co rd cca [ o = ] a lt l r e : l ue Figure 15.29 :a B r Loops in sequence diagrams: which notation do you prefer? l e m: iI s ne [ t i S sn e aLI m l ie e t :a S l e t go = t tl ea T loop [ i < lineItems.size ] s g u tl t e ba =t t So i+ + T lf ln o eeno h iee x p e n i s i b r rs t e s i sn fo a leo f a n c rmoc n m te a cl t o n i y S sn eo c a L I me . l ie e t bt js ln e [ i t e ps n i e m s er s t I s h xei o t i o seo e e fo te e t n l m rm l c ee n t h cl c n m ot oa leo f n i y S sn e ;hi vu aL I m e a l i e s ‘” l e e t t rf r t t e m i t e a e s h a “ n gr eo s e i ” h ud i te O a n L Pm h Of e r a c n xa o i airr l n a n t b m nn b y g g ai oo y t c a rt a aue stm ( t i c e cmni t e n i h a,n e g) a e n s s i r n ‘’ t s et i Figure 15.16 i i p e v t eee wha l s tsl c orhi ln oh i pe ad e lf i t i tp c i ln es : ie m I t[ i S snt m a Le l iI e e :S a l e t=eol gT tt a loop Figure 15.17 s gSt t l t=euo t ba Iteration in communication diagrams t =g t oa eT t l : S le a 1*[ =1. ] s =g t u t t l i . n: t eS boa t isit r t na dr c r e c c u ein ic t s h eaio n e ur n e la s d ae w aelo p ga r s e c e mn o t e e r o in co s a h le e t f h lin I e sc lle t n et m o cio . lin It m: e e si S le L et m a s in I e T islif lin b xr pe e t o ein t n ef o a h e e o e r s ns n sa c r m c lle t no mn S le L et m b cs o cio f a y a s in I e o je t . lin It m[i] ist ee pe s nt s le t o e ee s h x r s io o e c n e mn f o t ec lle tio o mn le e t r mh o c n f a y S le L e e s t e‘i” v lu c msfr mh a s in It m; h aeoe o te ms a ec u e e s g la s . t =g t...
View Full Document

Ask a homework question - tutors are online