uml basic - class diagram

Post on 15-Jul-2015

272 Views

Category:

Software

0 Downloads

Preview:

Click to see full reader

TRANSCRIPT

UML - basic20150111

Yeti

UML• UML(Unified Modeling Language)

• 一種用於描述軟體結構的語言

• 模型類別:

• Class diagram

• Sequence Diagram

• Use Case Diagram

• …

Class Diagram

Sequence Diagram

http://www.agiledata.org/images/oo101SequenceDiagram.gif

Use Case Diagram

http://upload.wikimedia.org/wikipedia/commons/5/59/Use_Case_diagram_V1.JPG

State Diagram

https://users.cs.jmu.edu/bernstdh/web/common/lectures/images/statechart_tcp.gif

Why UML?

http://yuann.tw/wp-content/uploads/2006/06/101_yuann_1280x1024.jpg

How it should look like?

http://pic18.nipic.com/20111210/2457331_130859084388_2.jpg

Class Diagram

物件名稱

屬性名稱

方法名稱

private

publicprotect

static

Realization

11..*

Generalization

Association

Dependency

AggregationComposition(Strong) (Weak)

同生共死 關我屁事

整理

物件名稱

屬性名稱

方法名稱

• Private

• Protect

• Public

• Static

• Package

➡ -

➡ #

➡ +

➡ ____________

➡ ~

• Association

• Realization

• Generalization

• Dependency

• Aggregation

• Composition

➡ 有關係(Field)

➡ 實現功能、介面

➡ 繼承

➡ 有用到(Method)

➡ 聚合、List(不會一起死)

➡ 組合、List(同生共死)

top related