RoachMotel
2020-06-22 11:39:27 0 举报
RoachModel系统类图
作者其他创作
大纲/内容
RoomMessageFactory
+ getRoomMessageByType(string):AbstractRoomMessage
SPA
FoodBar
CheckOut
+ getMoney(Customer):double
AbstractRoom
+ roomType:string+ roomNo:string+ roomStatus:bool+ customerNo:string
+ setRoomStatus(bool):void
LuxuryRoomMessage
1
RoachMotel
+ publicPlace:PublicPlace+ manageRoom:ManageRoom
PublicPlace
+ spa:SPA+ foodBar:FoodBar
LuxuryRoom
SuiteRoomMessage
1...n
AbstractRoomMessage:抽象类,代表不同类型的房间信息;RoomMessageFactory:房间信息工厂,管理Roommessage;AbstractRoom:抽象类,代表不同房间类型,与房间信息(RoomMessage)相互关联且与顾客(Customer)相互关联;RoomFactory:房间工厂,初始化房间;ManageRooms:对房间进行管理;PublicPlace:公共区域,有做美容(SPA)和吃饭(FoodBar)的地方;CheckOut:对顾客结账;RoachMotel:整个罗奇宾馆;
AbstractRoomMessage
+ account:int+ rommtype:string+ shower:Shower
+ setShower(Shower):void+ getAccount():int
RoomFactory
+ normalRoomList:List<AbstractRoom>+ luxuryRoomList:List<AbstractRoom>+ suiteRoomList:List<AbstractRoom>
+ getNormalRoomList(string):List<AbstractRoom>+ getLuxuryRoomList(string):List<AbstractRoom>+ getSuiteRoomList(string):List<AbstractRoom>+ getRoomByRoomNo(string):AbstractRoom+ getRoomByCustomerNo(string):AbstractRoom
NormalRoom
ManageRooms
+ roomFactory:RoomFactory
Customer
+ cardNo:string+ startTime:string+ endTime:string+ room:Abstract
+ setStartTime(string):void+ setRoom(Room):void
NormalRoomMessage
SuiteRoom
收藏
收藏
0 条评论
下一页
为你推荐
查看更多
抱歉,暂无相关内容