系統分析作業9

文章目錄


練習資源:Asg-RH.pdf

使用 UMLet 建模

  • 使用類圖,分別對 Asg_RH 文檔中 Make Reservation 用例以及 Payment 用例開展領域建模。然後,根據上述模型,給出建議的數據表以及主要字段,特別是主鍵和外鍵
    • 注意事項:
      • 對象必須是名詞、特別是技術名詞、報表、描述類的處理;
      • 關聯必須有多重性、部分有名稱與導航方向
      • 屬性要注意計算字段
    • 數據建模,爲了簡化描述僅需要給出表清單,例如:
      • 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 對象建模。
    • 建模要求: 參考練習不能提供足夠信息幫助你對訂單對象建模,請參考現在 定旅館 的旅遊網站,儘可能分析圍繞訂單發生的各種情況,直到訂單通過銷售事件(櫃檯銷售)結束訂單。
      在這裏插入圖片描述
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章