Designing event-based context transition in context-oriented programming

Designing event-based context transition in context-oriented programming
复制标题

在面向上下文的编程中设计基于事件的上下文转换

DOI:
10.1145/1930021.1930023
复制
发表时间:
2010
期刊:
Proceedings of 2nd International Workshopon Context-Oriented Programming (COP'10)
影响因子:
--
通讯作者:
HidehikoMasuhara
HidehikoMasuhara
中科院分区:
--
文献类型:
--
作者:
Tetsuo Kamina;Tomoyuki Aotani;HidehikoMasuhara

文献摘要

参考文献

被引文献

相似文献

本文提出了一种新的编程语言EventCJ。它的设计源于我们的观察,即在许多上下文感知的应用程序中,上下文更改是由外部事件触发的。因此,除了当前的COP语言机制(即根据程序中的控制流激活/停用层的机制,以及将方法调用分派到活动层上的部分方法的机制)之外,我们还提出了一种声明性地切换事件接收者上下文的机制。EventCJ可以声明触发上下文转换的事件,以及定义每个实例的上下文在接收到特定事件时如何更改的上下文转换规则。转换之后,实例获得由激活的上下文提供的依赖于上下文的行为。每个事件都在类似aspectj的切入点中声明,该切入点指定事件在系统连接点中的触发位置。EventCJ分离了在现有COP语言中可能横切整个程序的每个上下文何时激活和禁用的规范。此外,上下文转换规则的声明性有助于验证上下文应该满足的一些属性。
This paper proposes a new programming language EventCJ. Its design stems from our observation that, in many context-aware applications, context changes are triggered by external events. Thus, in addition to the current COP language mechanisms, namely the one to activate/deactivate layers in accordance with a flow of control in programs, and the one to dispatch method calls to partial methods on active layers, we propose a mechanism to declaratively switch contexts of the receiver of events. EventCJ can declare events that trigger context transitions, and context transition rules that define how each instance's context changes when it receives a specific event. After the transition, the instance acquires the context dependent behaviors provided by the activated context. Each event is declared in an AspectJ-like pointcut that specifies where the event is fired in the join points of the system. EventCJ separates the specification of when each context is activated and deactivated that may crosscut whole program in the existing COP languages. Furthermore, the declarative nature of the context transition rules help validation of some properties that the contexts should satisfy.
使用 EventJava 进行面向上下文的编程
DOI: 10.1145/1562112.1562121
发表时间: 2009
期刊: Proceedings of the 1st ACM International Workshop on Context-Oriented Programming
影响因子: --
作者:
K. R. Jayaram;P. Eugster
通讯作者: P. Eugster
DOI: 10.11185/imt.6.399
发表时间: 2011
影响因子: --
作者:
M. Appeltauer;R. Hirschfeld;M. Haupt;Hidehiko Masuhara
通讯作者: M. Appeltauer;R. Hirschfeld;M. Haupt;Hidehiko Masuhara
EventJava:用于事件关联的 Java 扩展
DOI: --
发表时间: 2009
期刊: European Conference on Object-Oriented Programming
影响因子: --
作者:
P. Eugster;K. R. Jayaram
通讯作者: K. R. Jayaram
DOI: 10.1007/bfb0053381
发表时间: 1997-01-01
期刊: ECOOP'97: OBJECT-ORIENTED PROGRAMMING
影响因子: --
作者:
Kiczales, G;Lamping, J;Irwin, J
通讯作者: Irwin, J
迈向安全灵活的对象适应
DOI: --
发表时间: 2009
期刊: Proceedings of the International Workshop on Context-Oriented Programming(COP09) (articl no.4(電子出版))
影响因子: --
作者:
松田剛;開一夫;Tetsuo Kamina
通讯作者: Tetsuo Kamina