文章目錄
練習資源: Asg-RH.pdf
使用 UMLet 模組化
- 使用類圖,分别對 Asg_RH 文檔中 Make Reservation 用例以及 Payment 用例開展領域模組化。然後,根據上述模型,給出建議的資料表以及主要字段,特别是主鍵和外鍵
- 注意事項:
- 對象必須是名詞、特别是技術名詞、報表、描述類的處理;
- 關聯必須有多重性、部分有名稱與導航方向
- 屬性要注意計算字段
- 資料模組化,為了簡化描述僅需要給出表清單,例如:
- Hotel(ID/Key,Name,LoctionID/Fkey,Address……)
系統分析作業9
- Hotel(ID/Key,Name,LoctionID/Fkey,Address……)
- 注意事項:
Hotel(ID/Key, Name, Address,loc-code,brief-intro)
Room(ID/Key, HotelID/Key,ReservationID/Key,type, date,)
Reservation (ID/Key, HotelID/FKey, RoomID/FKey,date time,check in date,number of nights)
ReservationItem(ID/Key,HotelID/FKey, RoomID/FKey,type,date time,check in time,number of nights,adult,children num,children-age)
Room-Desc(ID/Key,RoomID/Key,type,total,list-price,discription)
Reservation(ID/Key,date time,check in date,number of nights)
Payment(ID/Key,ReservationID/FKey,CreditCardID/FKey,FormID/FKey)
CreditCard(ID/Key,type)
Form(ID/Key,CardNumber,CardSecurityCode,date,adressDetails)
- 使用 UML State Model,對每個訂單對象生命周期模組化
- 模組化對象: 參考 Asg_RH 文檔, 對 Reservation/Order 對象模組化。
- 模組化要求: 參考練習不能提供足夠資訊幫助你對訂單對象模組化,請參考現在 定旅館 的旅遊網站,盡可能分析圍繞訂單發生的各種情況,直到訂單通過銷售事件(櫃台銷售)結束訂單。
系統分析作業9