- 7
- 0
- 约1.1万字
- 约 42页
- 2020-11-10 发布于四川
- 举报
Hotel Airline TourCompany The three objects are tightly coupled Example of Mediator Pattern In such a way, all the 3 companies are tightly coupled as figure below. notifyAirLine() notifyHotel() notifyTour() notifyHotel() +notifyAirLine() +notifyTour() 设计缺点:各个对象之间直接交互 调用关系复杂 可扩展性差 等缺点 解决方案:使用中介者模式,引入中介者类 BusinessMediator. Example of Mediator Pattern Hotel Airport TourCompany Use mediator to reduce the coupling Example of Mediator Pattern BusinessMediator HotelGUI -m: BusinessMediator +addCustomer(String c); +addPossibleCustomer(String c) +displayInfo(String txt) TourGUI -m: Busin
您可能关注的文档
- 摄影测量学课件 4.2.2像对的立体观察 - 像对的立体观察.ppt
- 摄影测量学课件 4.1.1人造立体视觉 - 人造立体视觉.ppt
- 摄影测量学课件 3.6.3像点位移与方向偏差 - 像点位移与方向偏差.ppt
- 摄影测量学课件 3.5.5单片空间后方交会 - 单片空间后方交会.ppt
- 摄影测量学课件 3.4.3共线条件方程 - 共线条件方程.ppt
- 摄影测量学课件 3.3.3像空间直角坐标变换 - 像空间直角坐标变换.ppt
- 摄影测量学课件 3.2.1航摄影像的方位元素 - 航摄影像的方位元素.ppt
- 摄影测量学课件 3.1.1摄影测量常用坐标系 - 摄影测量常用坐标系.ppt
- 摄影测量学课件 2.3.1透视变换成像原理 - 透视变换成像原理.ppt
- 摄影测量学课件 2.2.1航摄像片的重要点线面 - 航摄像片的重要点线面.ppt
原创力文档

文档评论(0)