Object Role Stereotypes 中的Stereotypes 怎么翻译

xo_tobacoo 2008-09-24

下面的讲的又是对象,又是角色,又是对象角色类型。请问他们三者之间是什么关系啊?    stereotype 应该理解成什么?请帮我简单解释下哦!谢谢!

 

Object Role Stereotypes
A well-defined object supports a clearly defined role. We use purposeful oversimplifications, or role stereotypes, to help focus an object's responsibilities. Stereotypes are characterizations of the roles needed by an application. Because our goal is to build consistent and easy-to-use objects, it is advantageous to stereotype objects, ignoring specifics of their behaviors and thinking about them at a higher level. By oversimplifying and characterizing it, we can ponder the nature of an object's role more easily.

 

Once we assign and characterize an object's role, its attendant responsibilities will follow. An object may fit into more than one stereotype.

 

But is it playing one or two roles? Often we find that a service provider holds information that it needs to provide its service. In doing so, it assumes two stereotypes information holder and service provider put only one role because the responsibilities are all wrapped up together for the same customers to use. If its information is being used solely to support its service, it assumes two stereotypes but only one role. But if it is perceived as serving two different types of clients for different purposes, it is likely playing two roles.

Global site tag (gtag.js) - Google Analytics