KITRI/JAVA

클래슀 λ‹€μ΄μ–΄κ·Έλž¨

λ˜νš¨λ‹ˆ 2020. 5. 12. 11:21

starUML>  http://staruml.io/

 

StarUML

UML 2 Compatible with UML 2.x standard metamodel and diagrams: Class, Object, Use Case, Component, Deployment, Composite Structure, Sequence, Communication, Statechart, Activity and Profile Diagram. Additional Diagrams Support to create Entity-Relationship

staruml.io

draw.io>    http://www.draw.io/

 

Flowchart Maker & Online Diagram Software

Flowchart Maker and Online Diagram Software diagrams.net (formerly draw.io) is free online diagram software. You can use it as a flowchart maker, network diagram software, to create UML online, as an ER diagram tool, to design database schema, to build BPM

app.diagrams.net

클래슀 λ‹€μ΄μ–΄κ·Έλž¨(Class Diagram)

 

UMLꡬ쑰 λ‹€μ΄μ–΄κ·Έλž¨

 

클래슀(Class)

 

1. μ •μ˜

- λ™μΌν•œ 속성과 ν–‰μœ„λ₯Ό λ‚˜νƒ€λ‚΄λŠ” 객체의 μ§‘ν•©

 

2. ν‘œν˜„

  • μ ‘κ·Όμ œν•œμž: public(+), private(-), protected(#), package(~)
  • μ§€μ •μ˜ˆμ•½μ–΄: static(밑쀄), final({frozen} or {readonly}
  • μƒμ„±μž: <<create>>둜 μƒμ„±μžν‘œμ‹œ
  • ν•¨μˆ˜: ν•¨μˆ˜λͺ…κ³Ό λ³€μˆ˜, λ¦¬ν„΄νƒ€μž…μ„ μž‘μ„±

{frozen} = final

관계(Relationship)

 

1. μ •μ˜ 

- κ΅¬μ„±μš”μ†Œλ“€κ°„μ˜ 의미 μžˆλŠ” 연관성을 ν‘œν˜„

- 일반적으둜 ν΄λž˜μŠ€λ“€κ°„μ˜ 관계 ν‘œν˜„ μ‹œ μ‚¬μš©λœλ‹€. 

 

2. μ’…λ₯˜

  • μΌλ°˜ν™”κ΄€κ³„(Generalization Relationship)

 

  • 싀체화, μ‹€ν˜„ν™” 관계(Realization Relationship)

 

  • μ˜μ‘΄κ΄€κ³„(Dependency Relationship)

 

  • 연관관계(Association Relationship)

            - 단방ν–₯

 

            - μ–‘λ°©ν–₯

        집합연관관계(Aggregation Relationship)

     

λ‚΄κ°€ κ°€μ§€κ³  μžˆλŠ” μ»΄ν“¨ν„°μ˜ μ—¬λŸ¬κ°œμ˜ 객체가 멀버 ν•„λ“œλ‘œ μ‚¬μš©λœλ‹€.

 

λ°˜μ‘ν˜•