•
observer
英:【əbˈzɜːrvər】美:【əbˈzɜːvə(r)】
英:
美:
常用释义:
观察者
n.观察者;【天】观测者;遵守者
observer pattern───观察者模式
observer status───n. 观察员身份
复数--observers。
1、The current sole superpower is far from being a disinterested
observer
.───当前惟一的超级大国远非一个公正的观察者。
2、Instruct your ego self that it is only to be an
observer
on this journey, it is not to participate.───指导你的自我的自己,它只是在这个旅程的观察员,这是不参加。
3、The talks took place in the presence of a diplomatic
observer
.───会谈是在一位外交观察家在场的情况下进行的。
4、The president suggested that a UN
observer
should attend the conference.───大会主席建议应该有一名联合国观察员参加该会议。
5、These kind of clouds can be created when the Observer, Cloud and the Sun are in the same position, as you can see in the images below.───当观察者,云和阳光处于同一位置时,就会是这样的效果.如下图分析的。
6、This had stood him in good stead a thousand times and trained him as an
observer
as well.───这个办法以前曾使他一千次立于不败之地,也培养了他的观察能力。
7、Qing Tong now looks back on the more than two years that she spent at the Foxconn plant with the more detached attitude of an
observer
.───回首在富士康工厂度过的两年多时间,青桐如今能够采取较为超然的观察者态度。
8、One of the main things to discover in meditating is to actually "see" that the
observer
(your ego) is the observed.───在沉思中应该发现的重要一点是:真正“看见”观察者(你的自我)正是被观察者。
9、The relative size of Planet X, along the edge of the Sun, has been computed by an
observer
.───沿着太阳边缘的行星X的相对大小被一位观测者计算了出来。
1、server───n.发球员;服伺者;服勤者;伺候者;计算机网络服务器;上菜用具;助祭,辅祭;计算器主机;分菜勺;n.(Server)(美、俄、西、法)塞尔韦尔(人名)
2、observes───遵守;观察(observe的第三人称单数)
3、conserver───油枕
4、observator───观测器
5、observed───adj.观察的;观测的;v.观察;遵守;注意到;庆祝(observe的过去分词形式)
6、reserver───保留;预订;延期
7、deserver───应得者,应受者
8、observe───vt.庆祝;vt.观察;遵守;说;注意到;评论;vi.观察;说;注意到;评论
9、observers───n.观察者(observer的复数)
观察者模式的优点:
1、 Subject和Observer之间是松耦合的,分别可以各自独立改变。
2、 Subject在发送广播通知的时候,无须指定具体的Observer,Observer可以自己决定是否要订阅Subject的通知。
3、 遵守大部分GRASP原则和常用设计原则,高内聚、低耦合。
观察者模式的缺陷:
1、 松耦合导致代码关系不明显,有时可能难以理解。(废话)
2、 如果一个Subject被大量Observer订阅的话,在广播通知的时候可能会有效率问题。(毕竟只是简单的遍历)