Software System Analysis and Design | 6
1、使用類圖,分別對 Asg-RH.pdf 文檔中 Make Reservation 用例以及 Payment 用例開展領域建模。而後,根據上述模型,給出建議的數據表以及主要字段,特別是主鍵和外鍵
-
注意事項:git
- 對象必須是名詞、特別是技術名詞、報表、描述類的處理;
- 關聯必須有多重性、部分有名稱與導航方向
- 屬性要注意計算字段
Make Reservation
![clipboard.png clipboard.png](http://static.javashuo.com/static/loading.gif)
Payment
![clipboard.png clipboard.png](http://static.javashuo.com/static/loading.gif)
-
數據建模github
- City(ID/Key,name,country,province)
- Hotel(ID/key,name,address,star,brife introduction,CityID/Fkey)
- Room(ID/key,type,date,reserved number,total number)
- Reservation(ID/key,guest name,check in date,HotelID/Fkey)
- Reservation-Item(ID/Key,type,number of nithet,adults,childrens,child-age,RoomID/Fkey,ReservationKey/FKey)
- Payment(ID/Key,payment method,security code,expiry date,title,name,address,phone,ReservationKey/FKey)
使用 UML State Model,對每一個訂單對象生命週期建模
![clipboard.png clipboard.png](http://static.javashuo.com/static/loading.gif)
歡迎關注本站公眾號,獲取更多信息