0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

UML メモ

Last updated at Posted at 2023-03-14

クラス図

汎化 (継承)

  • 汎化(継承)は、一般クラス(親クラス)とそれを特化したクラス(子クラス)との関係を表す。
image.png
  • PlantUML <|--

実現 (実装)

  • 実現(実装)は、インターフェースとそれを実装するクラスの関係を示す。
image.png
  • PlantUML <|..

集約

  • 集約は、あるクラスが他のクラスを保持し、それらが全体-部分の関係を持つことを示す。
image.png
  • PlantUML o--

合成 (Composition)

  • 合成は、集約よりも強い関連性を持つ全体-部分の関係を表す特別な形式の関連である。
  • 例: PersonHeartの関係。
  • PlantUML *--

依存関係

  • 依存関係は、あるクラスが他のクラスのメソッドを一時的に使用する場合や、特定のパラメータとして他のクラスを使用する場合に存在する。
  • 依存関係はクラス図上で破線の矢印で表される。
  • 例: Printer <------- Course
  • PlantUML -->

関連

  • 関連は、あるクラスが他のクラスのオブジェクトを長期にわたって保持する場合に存在する。
  • 関連はクラス図上で実線の矢印で表される。
  • 例: Student ____ Course
  • PlantUML --
表記 意味
A→B
Uses▶
AがBを使用する
A→B
Creates▶
AがBを生成する
A→B
Notifies▶
AがBに通知する

表記

  • A→B Uses▶: AがBを使用する。
  • A→B Creates▶: AがBを生成する。
  • A→B Notifies▶: AがBに通知する。

参考URL

シーケンス図

image.png

コロン(:),下線はインスタンスを表す。

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?