共查询到20条相似文献,搜索用时 46 毫秒
1.
2.
并发面向对象模型中继承异常的一种解决方案 总被引:2,自引:0,他引:2
1 引言继承机制是面向对象软件开发中的重要设施,是实现软件复用和扩充的一种有效的语言机制,它是顺序面向对象语言的一个基本特点。但是,在将面向对象技术与并发相结合的过程中,对并发控制机制处理不当,将会引起继承机制与并发控制间的冲突问题。这种冲突主要表现在:定义子类时需要修改(重定义)父类中的所有代码才能实现自身的并发控制,从而使得子类无法继承父类的代码,产生继承异常现象、继承异常的出现将进一步破坏面向对象技术的两大优点,即:继承和封装。所以,如何有效地避免继承异常或将继承异常的产生降低到最小的程度是并发面向对象模型所要研究的一个重要问题。 相似文献
3.
软件重用是提高软件生产率和保证软件产品质量的重要方法之一,程序设计语言中的继承机制是软件重用的有效途径。在目前引起人们普遍观注的面向对象语言中,讨论较多的是语言所提供的继承设施。本文讨论面向对象语言中的继承种类,重点是限制继承——这是已有继承种类中较薄弱的环节。 相似文献
4.
5.
并发面向对象语言的继承异常问题研究 总被引:1,自引:1,他引:0
1·引言随着面向对象技术的发展,面向对象程序设计语言在软件设计、模块化、可扩充性、可复用性等方面给软件开发人员带来了很大的方便[lj。继承是顺序面向对象语言的一个基本特点,继承机制是面向对象语言的重要机制之一,是实现软件复用和可扩充的有效语言机制。Bertrand Meyer曾指出纯00语言的七个特性川:①模块化结构;②数据抽象(对象是抽象数据类型的实现);③自动 相似文献
6.
继承作为面向对象语言的一个重要特性,在系统设计时经常被用到。但继承的滥用会导致系统的灵活性大大下降。因此在深入了解 继承的基础上,需要正确对待继承。 相似文献
7.
8.
本给出一种包含多种继承行为的,非常灵活的代码复用机制-广义继承,通过给出其操作语义和一个支持类间子类型关系确认的类机制,为其在面向对象程序设计语言中的实现奠定了基础。 相似文献
9.
10.
面向对象抽象思维与java继承机制 总被引:1,自引:1,他引:1
抽象和继承是面向对象程序设计的重要要素,抽象强调实体的本质、内在的属性。在系统开发中.抽象指的是在决定如何实现对象之前的对象的意义和行为。使用抽象可以尽可能避免过早考虑一些细节。继承是面向对象程序设计语言不同于其它语言的最重要的特点,Java作为一门面向对象的编程语言,深入理解它的继承机制,可以帮助我们高效.成功地开发复杂的系统,并且所开发出的系统具有良好的扩展能力。 相似文献
11.
12.
In this paper, a new technique called test derivation is presented,aiming at the promotion of the random testing efficiency for combinational circuits,Combined with a fault simulator based on critical path tracing method,we introduce the concept of seed test derivation and attempt to generate a group of new tests from the seed test by means of critical path transition.The neccessary conditions and efficient algorithms are proposed to guarantee the usefulness of the newly derived tests and the correctness of the critical path transitions.Also,examples are given to demonstrate the effectiveness of the technique. 相似文献
13.
Michael Philippsen 《Concurrency and Computation》2000,12(10):917-980
During the last decade object‐oriented programming has grown from marginal influence into widespread acceptance. During the same period, progress in hardware and networking has changed the computing environment from sequential to parallel. Multi‐processor workstations and clusters are now quite common. Unnumbered proposals have been made to combine both developments. Always the prime objective has been to provide the advantages of object‐oriented software design at the increased power of parallel machines. However, combining both concepts has proven to be notoriously difficult. Depending on the approach, often key characteristics of either the object‐oriented paradigm or key performance factors of parallelism are sacrificed, resulting in unsatisfactory languages. This survey first recapitulates well‐known characteristics of both the object‐oriented paradigm and parallel programming, and then marks out the design space of possible combinations by identifying various interdependencies of key concepts. The design space is then filled with data points: for 111 proposed languages we provide brief characteristics and feature tables. Feature tables, the comprehensive bibliography, and web‐addresses might help in identifying open questions and preventing re‐inventions. Copyright © 2000 John Wiley & Sons, Ltd. 相似文献
14.
扩展面向对象编程(XOOP)的理论和方法 总被引:4,自引:1,他引:4
针对使用继续的传统对象系统在映射真实世界的对象关系时遇到的各种困难,提出一种普遍的软件工程方法,即扩展的面向对象方法(XOO),它通过支持双向派生、归纳、更一般的多态机制等技术,来补足继承机制的不足,并进一步增强对象方法在描述对象关系方面的能力。作者强调了虚归纳是一种普遍的软件工程方法,它使得归纳与继承的高效结合成为可能,可以作为重用已有类库代码和与继续类层次结合的有效方法。文中还描述了XOOP的一个较为完整的实现--编程语言C。 相似文献
15.
Zizette Boufriche-Boufaïda 《Expert Systems》1999,16(1):11-18
Our research originates from a study of the possibilities of integrating rules and objects in knowledge-based systems. In the present work, we are interested in the interactionist perspective of an object. The stepwise reasoning of a diagnostic expert system, possibly involving subgoaling and interactions with the environment, can be easily codified by means of production rules over proposition literals. This set of rules can be graphically represented in a network manner denoting the relations between the rules. The individual nodes in the network can be expressed by means of autonomous objects and their relations, interpreted as possible communications between them. The objects are given a structure and a proper behaviour and cooperate for performing logical reasoning by means of forward and backward chaining inference processes. Therefore, designing this system implies addressing several basic issues such as inter-object communications and their synchronization. The problem here is not necessarily to develop a great intelligence locally but to develop strong networks of good communicators. This approach belongs to the interactionist representation current, where objects are called actors. In principle, the actors may carry out computation in parallel and provide a conceptual foundation for massively concurrent object-oriented paradigms. From this point of view, a system allowing for the simultaneous investigation of several rules and premises in the forward or the backward chaining would be significantly more efficient. 相似文献
16.
17.
18.
19.
20.
This article discusses the problem of constructing robust class libraries. Further design criteria include the flexibility of class libraries, the efficiency of the implementations, and their safe extensibility. We show that it is possible to design robust libraries to satisfy any two of the requirements at the same time. Although the solution may require an exponential growth in the number of classes compared to the original design, this apparent class explosion can be controlled by generating only the necessary additional classes automatically. As an application demonstrating both the theoretical problems and the power of our generator approach, the design of a library modelling data structures and algorithms for graphs is considered. Both the discussion and the results in this article generalize to other domains. Copyright © 2000 John Wiley & Sons, Ltd. 相似文献