arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1305.6114cs.SE
收藏

放松行为遗传

Relaxing Behavioural Inheritance

Nuno Amálio

摘要:

面向对象(OO)继承允许以分层的方式定义类的家族。在行为继承中,一个强版本,应该可以用子类的对象替换其超类的对象,而不会对系统产生任何可观察到的影响。行为继承与形式细化有关,但是,正如在文献中观察到的那样,细化约束过于严格,排除了许多有用的OO子类。本文研究了ZOO环境下的行为继承,ZOO是Z.为了克服细化的限制,本文提出放宽行为继承细化规则。这项工作是为Z提出的,但结果适用于任何支持契约式设计的OO语言。

英文摘要:

Object-oriented (OO) inheritance allows the definition of families of classes in a hierarchical way. In behavioural inheritance, a strong version, it should be possible to substitute an object of a subclass for an object of its superclass without any observable effect on the system. Behavioural inheritance is related to formal refinement, but, as observed in the literature, the refinement constraints are too restrictive, ruling out many useful OO subclassings. This paper studies behavioural inheritance in the context of ZOO, an object-oriented style for Z. To overcome refinement's restrictions, this paper proposes relaxations to the behavioural inheritance refinement rules. The work is presented for Z, but the results are applicable to any OO language that supports design-by-contract.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑