2006/08
27
面向对象模式小结
| 原文 | 翻译 |
The object-oriented paradigm (Figure 3-23) is summarized in the following. • The real world consists of concrete and conceptual entities, including things, relationships, and occurrences that have a purpose, structural characteristics, and behavioral characteristics. • The first level of abstraction within the object-oriented paradigm consists of representational constructs of concrete and conceptual entities. – Objects are abstracted entities that encapsulate state and behavior. – Links are abstracted relationships among objects. – Scenarios are abstracted message exchanges among objects. • The second level of abstraction within the object-oriented paradigm consists of a set of representational constructs. – Classes are descriptions of a set of objects with common attributes, operation implementations, semantics, associations, and interactions. – Types are descriptions of a set of objects with common attributes, operation interfaces, semantics, associations, and interactions. – Associations are descriptions of a set of links with common attributes, operation implementations, semantics, associations, and interactions. – Interactions are descriptions of a set of scenarios with common message exchange sequences, classes, and associations. • Objects may be combined to build larger or more involved components. This has become known as the component-oriented paradigm. | 面向对象模式小结如下: •现实世界由具体和抽象的实体组成,包括事物,关系,事件,具有一定用途和结构特性。 • 第一层抽象包括对有代表性的具体和抽象实体进行建模。 – 对象是包含状态何行为的抽象实体 – 关联是对象之间的关系。 –活动是对象间的抽象信息交流。 •第二层抽象包括对一组有代表性的结果进行建模。 – 类是对具有相同属性,操作实现,语义,关联和交互的一组对象的描述。 – 类型是对具有相同属性,操作接口,语义,关联和交互的一组对象的描述。 – 联系是对具有相同属性,操作实现,语义,关联和交互的一组关联的描述。 – 交互是对具有相同消息,交换顺序,类和关系的一组活动的描述。 •对象可以被组合成更大更复杂的组件,这在组件开发模式用经常涉及。 |
摘自:
UML in a Nutshell (66-67)
by Sinan Si Alhir
Copyright © 1998 O’Reilly & Associates, Inc. All rights reserved.
Printed in the United States of America.
Published by O’Reilly & Associates, Inc., 101 Morris Street, Sebastopol, CA 95472.



0 Trackbacks