View
472
Download
0
Embed Size (px)
Citation preview
資料分析/設計
·•找出完成系統功能所需要的資料
·•Database Table 與 Class 設計的基礎
·•Domain Model / Data Model
·•Class diagram / Object diagram
3
Attributes - Signature[visibility] name [[multiplicity]] [: type] [=initial value] [{property}]
+ isLightOn : boolean = false
- numOfPeople : int
mySport
+ passengers : Customer[0..10]
- id : long {readOnly}
5
Operations - Signature[visibility] name [(parameter-list)] [: return-type] [{property}]
+ isLightOn() : boolean
+ addColor(newColor : Color)
+ addColor(newColor : Color) : void
# convertToPoint(x : int, y : int) : Point
- changeItem([in] key : string, [out] newItem : Item) : int
6
13
Object DiagramIn an Object Diagram, class instances can be modeled
In runtime
Class Diagram Object Diagram
13