class diagram
2016-05-22 19:46:19 0 举报
ssd9 homework1 类图
作者其他创作
大纲/内容
1
Order
+ OrderID : String+ CustomerID : String+ room : Hotel[]+ airTicket : AirlineCompany[]+ car : CarRentalCompany[]
Car
+ CarID : String+ Price : String+ Class : String+ MakeAdnMade : String
0..*
Room
+ RoomID : String+ Price : String+ RoomType : String+ BedType : String+ Checkintime : Date+ CheckoutTime : Date+ Amentites : String
Ticket
+ AirplaneID : String+ AirlineType : String+ TicketID : String+ Price : int+ SeatID : int+ DepartureTime : Date+ ArrivalTime : Date+ DepartureSite : String+ LandingSite : String
AirlineCompany
+ CompanyID : String+ Name : String+ Address : String+PhoneNUmber : String+Tickets : Ticket[]
+ setTickets() : void+ getTickets() : Ticket[]+ getAvailableSeats() : Ticket[]
Hotel
+ CompanyID : String+ Name : String+ HotelRank : int+ Address : String+ PhoneNumber : String+Rooms : Room[]
+ setRooms() : void+ getRooms() : Room[]+ getAvailableRooms() : Room[]
Customer
+ CustomerID : String+ CardID : String+ Name : String+ Gender : char+ Address : String+ PhoneNumber : String
+ CreateOrder() : boolean+ ModifyOrder() : boolean+ DeleteOrder() : boolean+ inquireAirline(TravelAgency) : String + reserverTicket(AirlineCompany[]) : boolean+ inquireHotel(TravelAgency) : String+ reserveHotel(Hotel[]) : boolean+ inquireCar(TravelAgency) : String+ reserveCar(CarRentalCompany[]): boolean+ addToOrder() : boolean
CarRentalCompany
+ CompanyID : String+ Name : String+ Address : String+ PhoneNumber : String+ Cars : Cars[]
+ setCars() : void+ getCars() : Cars[]+ getAvailableCars() : Cars[]
Travel Agency
+ getAirlineInfo(ArilineCompany[]) : String+ getHotelInfo(Hotel[]) : String+ getCarRentalInfo(CarRentalCompany[]) : String+ getOrdersInfo(Order[]) : String+ getCustomerInfo(Customer[]) : String
0 条评论
下一页