SlideShare ist ein Scribd-Unternehmen logo
1 von 19
Downloaden Sie, um offline zu lesen
UML - basic
20150111
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
public
protect
static
Realization
1
1..*
Generalization
Association
Dependency
AggregationComposition
(Strong) (Weak)
同生共死 關我屁事
整理
物件名稱
屬性名稱
方法名稱
• Private
• Protect
• Public
• Static
• Package
➡ -
➡ #
➡ +
➡ ____________
➡ ~
• Association
• Realization
• Generalization
• Dependency
• Aggregation
• Composition
➡ 有關係(Field)
➡ 實現功能、介面
➡ 繼承
➡ 有用到(Method)
➡ 聚合、List(不會一起死)
➡ 組合、List(同生共死)

Weitere ähnliche Inhalte

Andere mochten auch

SE_Lec 07_UML CLASS DIAGRAM
SE_Lec 07_UML CLASS DIAGRAMSE_Lec 07_UML CLASS DIAGRAM
SE_Lec 07_UML CLASS DIAGRAMAmr E. Mohamed
 
Computer architecture and organization
Computer architecture and organizationComputer architecture and organization
Computer architecture and organizationTushar B Kute
 
Dynamic and Static Modeling
Dynamic and Static ModelingDynamic and Static Modeling
Dynamic and Static ModelingSaurabh Kumar
 
UML- Unified Modeling Language
UML- Unified Modeling LanguageUML- Unified Modeling Language
UML- Unified Modeling LanguageShahzad
 
Uml diagrams
Uml diagramsUml diagrams
Uml diagramsbarney92
 
Employee Management System UML Diagrams Use Case Diagram, Activity Diagram, S...
Employee Management System UML Diagrams Use Case Diagram, Activity Diagram, S...Employee Management System UML Diagrams Use Case Diagram, Activity Diagram, S...
Employee Management System UML Diagrams Use Case Diagram, Activity Diagram, S...Mohammad Karim Shahbaz
 
Class diagram presentation
Class diagram presentationClass diagram presentation
Class diagram presentationSayedFarhan110
 
Object Oriented Analysis and Design
Object Oriented Analysis and DesignObject Oriented Analysis and Design
Object Oriented Analysis and DesignHaitham El-Ghareeb
 

Andere mochten auch (12)

Uml
UmlUml
Uml
 
SE_Lec 07_UML CLASS DIAGRAM
SE_Lec 07_UML CLASS DIAGRAMSE_Lec 07_UML CLASS DIAGRAM
SE_Lec 07_UML CLASS DIAGRAM
 
Computer architecture and organization
Computer architecture and organizationComputer architecture and organization
Computer architecture and organization
 
Dynamic and Static Modeling
Dynamic and Static ModelingDynamic and Static Modeling
Dynamic and Static Modeling
 
Class diagram
Class diagramClass diagram
Class diagram
 
Class diagrams
Class diagramsClass diagrams
Class diagrams
 
Class diagrams
Class diagramsClass diagrams
Class diagrams
 
UML- Unified Modeling Language
UML- Unified Modeling LanguageUML- Unified Modeling Language
UML- Unified Modeling Language
 
Uml diagrams
Uml diagramsUml diagrams
Uml diagrams
 
Employee Management System UML Diagrams Use Case Diagram, Activity Diagram, S...
Employee Management System UML Diagrams Use Case Diagram, Activity Diagram, S...Employee Management System UML Diagrams Use Case Diagram, Activity Diagram, S...
Employee Management System UML Diagrams Use Case Diagram, Activity Diagram, S...
 
Class diagram presentation
Class diagram presentationClass diagram presentation
Class diagram presentation
 
Object Oriented Analysis and Design
Object Oriented Analysis and DesignObject Oriented Analysis and Design
Object Oriented Analysis and Design