๋‹ค์Œ์œผ๋กœ ๋˜ ๋งŽ์ด ์“ฐ์ด๋Š” Sequence Diagram์— ๋Œ€ํ•ด ์•Œ์•„๋ณด์ž.

ํ•ด๋‹น ๊ธ€์˜ ์‚ฌ์ง„ ์ž๋ฃŒ๋Š” ์™ธ๋ถ€ ๋ธ”๋กœ๊ทธ๋ฅผ ๋งŽ์ด ์ฐธ๊ณ ํ–ˆ๋‹ค.

Sequence Diagram

์‹œ์Šคํ…œ์ด๋‚˜ ๊ฐ์ฒด๋“ค์ด ๋ฉ”์‹œ์ง€๋ฅผ ์ฃผ๊ณ ๋ฐ›์œผ๋ฉฐ ์ƒํ˜ธ์ž‘์šฉํ•˜๋Š” ๊ณผ์ •์„ ํ‘œํ˜„ํ•˜๋Š” ๋‹ค์ด์–ด๊ทธ๋žจ

  • ์–ด๋– ํ•œ ์‹œ๋‚˜๋ฆฌ์˜ค๋กœ ํ˜๋Ÿฌ๊ฐ€๋Š”์ง€ ์‰ฝ๊ฒŒ ํ‘œํ˜„ ๊ฐ€๋Šฅ
  • ๊ฐ ๋™์ž‘์— ์ฐธ์—ฌํ•˜๋Š” ์‹œ์Šคํ…œ์ด๋‚˜ ๊ฐ์ฒด๋“ค์˜ ์ˆ˜ํ–‰ ๊ธฐ๊ฐ„ ํ™•์ธ
  • ์‹œ์Šคํ…œ์˜ ๋™์ ์ธ ๊ตฌ์กฐ๋ฅผ ๋ณด์—ฌ์ฃผ๊ธฐ์— ์ ํ•ฉ

๊ตฌ์„ฑ ์š”์†Œ

ComponentsindexDescription
Actor (์•กํ„ฐ)์‹œ์Šคํ…œ์œผ๋กœ๋ถ€ํ„ฐ ์„œ๋น„์Šค๋ฅผ ์š”์ฒญํ•˜๋Š” ์™ธ๋ถ€ ์š”์†Œ๋กœ, ์‚ฌ๋žŒ์ด๋‚˜ ์™ธ๋ถ€ ์‹œ์Šคํ…œ์„ ๋œปํ•จ
Object (๊ฐ์ฒด)๋ฉ”์‹œ์ง€๋ฅผ ์ฃผ๊ณ ๋ฐ›๋Š” ์ฃผ์ฒด
Lifelines (์ƒ๋ช…์„ )- ๊ฐ์ฒด๊ฐ€ ๋ฉ”๋ชจ๋ฆฌ์— ์กด์žฌํ•˜๋Š” ๊ธฐ๊ฐ„์œผ๋กœ, ๊ฐ์ฒด ์•„๋ž˜์ชฝ์— ์ ์„ ์„ ๊ทธ์–ด ํ‘œํ˜„ํ•จ
- ๊ฐ์ฒด ์†Œ๋ฉธ(X)์ด ํ‘œ์‹œ๋œ ๊ธฐ๊ฐ„๊นŒ์ง€ ์กด์žฌํ•จ
Activations (์‹คํ–‰ ์ƒ์ž)๊ฐ์ฒด๊ฐ€ ๋ฉ”์‹œ์ง€๋ฅผ ์ฃผ๊ณ ๋ฐ›์œผ๋ฉฐ ๊ตฌ๋™๋˜๊ณ  ์žˆ์Œ์„ ํ‘œํ˜„ํ•จ
Message (๋ฉ”์‹œ์ง€)๊ฐ์ฒด๊ฐ€ ์ƒํ˜ธ ์ž‘์šฉ์„ ์œ„ํ•ด ์ฃผ๊ณ ๋ฐ›๋Š” ๋ฉ”์‹œ์ง€
Destruction (๊ฐ์ฒด ์†Œ๋ฉธ)ํ•ด๋‹น ๊ฐ์ฒด๊ฐ€ ๋”์ด์ƒ ๋ฉ”๋ชจ๋ฆฌ์— ์กด์žฌํ•˜์ง€ ์•Š์Œ์„ ํ‘œํ˜„
Frame (ํ”„๋ ˆ์ž„)๋‹ค์ด์–ด๊ทธ๋žจ์˜ ์ „์ฒด ๋˜๋Š” ์ผ๋ถ€๋ฅผ ๋ฌถ์–ด ํ‘œํ˜„ํ•œ ๊ฒƒ

๋ฉ”์‹œ์ง€

TypeindexDescription
Sync Message๋™๊ธฐ์ ์œผ๋กœ ๋ฉ”์‹œ์ง€ ์ „์†ก
Async Message๋น„๋™๊ธฐ์ ์œผ๋กœ ๋ฉ”์‹œ์ง€ ์ „์†ก
Sync Return Message๋™๊ธฐ์ ์œผ๋กœ ๋ฉ”์‹œ์ง€ ํ˜ธ์ถœ ๋ฐ˜ํ™˜
Async Return Message๋น„๋™๊ธฐ์ ์œผ๋กœ ๋ฉ”์‹œ์ง€ ํ˜ธ์ถœ ๋ฐ˜ํ™˜

์ถ”๊ฐ€ ์‚ฌํ•ญ

  • ์ž์ฒด์ ์œผ๋กœ ํ˜ธ์ถœํ•˜๋Š” ๊ฒฝ์šฐ๋Š” ์œ„์™€ ๊ฐ™์ด ํ‘œํ˜„ํ•  ์ˆ˜ ์žˆ๋‹ค.

์˜ˆ์‹œ

Reference