系統分析與設計 作業6

使用 UMLet 建模

1

  • 使用類圖,分別對 Asg_RH 文檔中 Make Reservation 用例以及 Payment 用例開展領域建模。然後,根據上述模型,給出建議的數據表以及主要字段,特別是主鍵和外鍵

  • 注意事項

    • 對象必須是名詞、特別是技術名詞、報表、描述類的處理;
    • 關聯必須有多重性、部分有名稱與導航方向
    • 屬性要注意計算字段
  • 數據建模,爲了簡化描述僅需要給出表清單,例如:

    • Hotel(ID/Key,Name,LoctionID/Fkey,Address……)

Make Reservation

在這裏插入圖片描述

Traveler(id/Key, name, email)
Favorite(id/Key, traveler/Fkey, hotel/Fkey)
Reservation(id/Key, traveler_id/Fkey, check_in_date, nights_num, adult_num, child_num, child_age, special_requirements, is_smoking)
Room(id/Key, order_by/Fkey, description/Fkey)
City(id/Key, name)
Hotel(id/Key, reservation_id/Fkey, location_id/Fkey, name, address, rating, information)
HotelRoomInformation(id/Key, hotel/Fkey, description/Fkey)
RoomDescription(id/Key, room_type/Fkey, num_of_people, price)
RoomType(id/Key, information)

Payment

在這裏插入圖片描述

Traveler(id/Key, name, email)
Payment(id/Key)
ReservationItem(id/Key, owner/Fkey, card/Fkey, payment/Fkey, title, price)
Card(id/Key, owner/Fkey, type/Fkey, number, secuirty_code, expiry_date, title, first_name, last_name, address1, address2, city, country_state, postcode, daytime_tel, evening_tel)
CardType(id/Key, bank)

2

  • 使用 UML State Model,對每個訂單對象生命週期建模

  • 建模對象: 參考 Asg_RH 文檔, 對 Reservation/Order 對象建模。

  • 建模要求: 參考練習不能提供足夠信息幫助你對訂單對象建模,請參考現在 定旅館 的旅遊網站,儘可能分析圍繞訂單發生的各種情況,直到訂單通過銷售事件(櫃檯銷售)結束訂單。

在這裏插入圖片描述

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章