| 摘要: |
| 在论述了面向对象技术中对象间的关系作为第一级建模概念的重要性之后,该文设计并实现了显式支持对象间关系的RCPP(relational C++)语言.它提供了显式描述对象间关系特性和语义的机制,利用关系来动态地控制对象行为的作用和传播.它的运行是通过一个转换器把RCPP代码翻译成C++代码,再经C++环境编译后,形成可执行程序而实现的.文章对RCPP语言的模型、语言提供的服务以及具体系统的描述和实现作了深入阐述. |
| 关键词: 面向对象,对象间关系,程序设计语言,面向对象建模. |
| DOI: |
| 分类号: |
| 基金项目:本文研究得到山东省自然科学基金(No.93G8379)资助. |
|
| Modeling Object Relationships in Programming Language |
|
WAN Jian-cheng,ZHANG Shu-ming
|
| Abstract: |
| After a discussion of the importance of relationships among objects as a first-class modeling concept in object-oriented technology, a new object-oriented programming language, named as RCPP (relational C++), is presented and developed in this paper, which can directly and explicitly support the relationships among objects. Object relationships can be used to dynamically manipulate object behaviors and their propagation. In this paper, the authors explain the functional properties, the language model for the specification of object relations and its implementation mechanism, especially the semantic aspects of object relations. The running of RCPP programs is implemented first by translating RCPP source codes into C++ codes, and then by compiling and linking them to form executable programs. |
| Key words: Object-Oriented, object relationship, programming language, object-oriented modeling. |