【24h】

Composable Actor Behaviour

机译:可组合演员行为

获取原文

摘要

Code reusability is the cornerstone of object-oriented programming. Reuse mechanisms such as inheritance and trait composition lay at the basis of a whole range of software engineering practices with the goal to improve software quality and reliability. In this paper we investigate code reuse mechanisms for actors, and find that it is currently difficult to specify the behaviour of an actor out of reusable parts. We discuss different kinds of code reuse mechanisms in different kinds of actor model, and we motivate why these mechanisms are currently unsatisfactory. As a possible solution we define a new reuse mechanism based on delegation-based trait composition. In a nutshell, the mechanism allows programmers to compose the behaviour of actors, and every time a compound behaviour is spawned into an actor, it will cause multiple actors to be spawned (one for each independent behaviour). Some messages will be automatically delegated to the actor that implements the desired functionality. We provide an implementation of this model in a prototype Active Object language called Stella, and we formalise a subset of Stella using a small-step operational semantics to unambiguously define the different steps involved in our reuse mechanism.
机译:代码可重用性是面向对象编程的基石。诸如继承和特征构成之类的重用机制是整个软件工程实践的基础,旨在提高软件质量和可靠性。在本文中,我们研究了参与者的代码重用机制,发现当前很难从可重用的部分中指定参与者的行为。我们讨论了不同类型的参与者模型中的不同类型的代码重用机制,并激发了为什么这些机制当前不令人满意的原因。作为一种可能的解决方案,我们定义了一种基于基于委托的特征构成的新重用机制。简而言之,该机制允许程序员编写参与者的行为,并且每当一个参与者产生一个复合行为时,就会导致产生多个参与者(每个独立行为一个)。一些消息将自动委派给实现所需功能的角色。我们使用一种称为Stella的活动对象语言原型提供了该模型的实现,并使用一小步操作语义对Stella的子集进行形式化,以明确定义重用机制中涉及的不同步骤。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号