2. UML
โข ์๊ตฌ๋ถ์, ์์คํ ์ค๊ณ, ์์คํ ๊ตฌํ ๋ฑ์ ์์คํ ๊ฐ๋ฐ ๊ณผ
์ ์์, ๊ฐ๋ฐ์๊ฐ์ ์์ฌ์ํต์ ์ํํ๊ฒ ์ด๋ฃจ์ด์ง๊ฒ ํ
๊ธฐ ์ํ์ฌ ํ์คํํ ๋ชจ๋ธ๋ง ์ธ์ด์ด๋ค.
โข UML is a universal visual modeling language.
โข UML models the world as systems of interacting objects.
An object is a cohensive cluster of data and function.
โข ์ธ์์ object๋ค์ด ์ํธ๊ฐ interaction์ ํ๋ฉด์ ์ด๋ฃจ์ด์ง
๋ ์์คํ ๋ค์ ๋ฌถ์์ด๋ค.
3.
4. Diagrams in UML
Diagrams
static model
(system structure)
dynamic model
(system behavior)
class diagram
component diagram
deployment diagram
object diagram
use case diagram
sequence diagram
collaboration diagram
state-chart diagram
activity diagram
7. Use Case Modelling Step
โข Find the system boundary
โข Find the actors
โข Find the use cases:
โ specify the use case
โ create scenarios
โข actors
โข use cases
โข relationships
โข system boundary
9. Actor
โข Actor๋
โ ์์คํ ์ธ๋ถ์ ์์น.
โ ์์คํ ๊ณผ ์ง์ ์ ์ธ ๊ต๋ฅ๊ฐ ์๋ ์ญํ
โข ๋์ผํ ์ฌ๋์ด ๋ค๋ฅธ role์ ์ทจํ๋ ๊ฒฝ์ฐ ๋ค๋ฅธ actor
โ ์. ์ผ๋ฐ ์ฌ์ฉ์ / ๊ด๋ฆฌ์.
โข ์ญํ ์ด๊ธฐ ๋๋ฌธ์ ํ ์์คํ ๋ actor๋ก ์ทจ๊ธ
โ ์. NOS Publisher (post to docs ๊ฒฝ์ฐ)
โข Who or what uses or interacts with the system?
<<actor>>
NOS Publisher
Admin Time
10. Use case
โข use case๋
โ ์์ ์ ์ํ actor๊ฐ ์์คํ ์ด ํด์ฃผ๊ธฐ๋ฅผ ๋ฐ๋ผ๋ ๊ฒ๋ค.
โ actor์ ์ํด์ ์์
โ actor ๊ด์ ์์ ์์ธ ๋ด์ฉ์ด ๊ธฐ์ ๋๋ค.
โข How does each actor use the system?
โข What does do for each actor?
SuspendUser
11. Use Case Diagram์
์์คํ ์ ๊ธฐ๋ฅ์ ์๊ตฌ
์ฌํญ์ ๋ถ์ํ๋ฉฐ, ์์คํ
์ญํ ์ ์ฝ๊ฒ ์ดํดํ๋๋ก
๋์์ด ๋๋๋ก ์ต๋ํ
๊ฐ๋จํ ๊ทธ๋ ค์ ธ์ผ ํ๋ค.
Use Case Diagram๋ง
๊ทธ๋ฆฌ๋ค๊ฐ ๋ชจ๋ธ๋ง ํฌ๊ธฐํ๋
์ฌ๋์ด ๋ง๋ค.
Use Case Diagram์
์ ์ฐจ์ ์ผ๋ก ๋ฐ๋ณต์ ์ผ๋ก
๊ฐฑ์ ๋๋ฉด์ ์์ฑ๋๊ฐ๋
๊ฒ์ด๋ค.
Use Case Diagram์
์ต๋ํ ๋จ์ํ๋ฅผ ์ํค๋๋ก
๊ทธ๋ ค๊ฐ๋ค.
12. Detail a use case
Use Case modelling์ diagram ๊ทธ๋ฆฌ
๋ ์๊ฐ์์ ๋ง๋ฌด๋ฆฌ ํ๋ ๊ฒฝ์ฐ๊ฐ ๋ง๋ค.
์ด๋ก ์ธํด ๋ง์ ๋ฌธ์ ๋ฐ์ํ์๋ค. ์ด
๋ก ์ธํด Use Case Diagram ๋ฐ๋๋ก ์
๋ค๋ ๋ํ๋ฌ์๋ค.
์ด๋ ์์ธํ ๊ณผ์ ์ด ์์๊ธฐ ๋๋ฌธ์ด๋ค.
13.
14. ์์ธ ์ํฉ๋ค์ ๋ํ ์ฒ๋ฆฌ (1)
โข If / Else, For, While ๊ธฐ๋ฒ ์ ์ฉ
โข alternative flow: post condition์ ๊ธฐ์
โ ์ด๋ ์์ ์๋ ๋ฐ์๋ ์ ์๋ ์ํฉ์ ๋ํ ๊ธฐ์
โ ์. ์ฌ์ฉ์๊ฐ ์ฌ์ดํธ๋ฅผ ๋์ค์ ๋๊ฐ๋ฒ๋ฆฐ๋ค.
15. ์์ธ ์ํฉ๋ค์ ๋ํ ์ฒ๋ฆฌ (2)
โข scenario๋
โ ์ ์์ ์ธ use case ๋์(primary scenario) ๊ฒฝ์ฐ ์ธ ๊ฒฝ
์ฐ์ ๋ํด์ ๋ณ๋ use case spec.(secondary
scenarios)๋ก ์ ๋ฆฌ
โ a use case = primary scenario + secondary scenarios
โ scenario ์ฌ์ฉ ๊ฒฝ์ฐ์๋ branch๊ฐ ์๋ค.
โข secondary scenario๋ค์ ๋ณ๋ use case spec. ์ผ
๋ก ์ ๋ฆฌ. ํ๊ธฐ๋ ํ์ดํ์ ๋์ Use case ๊ธฐ๋ก ํ
์ถ๊ฐ๋ก secondary scenario ๋ช ์