Designing event-based context transition in context-oriented programming
Designing event-based context transition in context-oriented programming
复制标题
在面向上下文的编程中设计基于事件的上下文转换
DOI:
10.1145/1930021.1930023
复制
发表时间:
2010
期刊:
影响因子:
--
通讯作者:
HidehikoMasuhara
中科院分区:
文献类型:
--
作者:
Tetsuo Kamina;Tomoyuki Aotani;HidehikoMasuhara
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.
登录
查看更多内容
DOI:
10.1145/1562112.1562121
发表时间:
2009
期刊:
Proceedings of the 1st ACM International Workshop on Context-Oriented Programming
影响因子:
--
作者:
K. R. Jayaram;P. Eugster
通讯作者:
P. Eugster
影响因子:
--
作者:
M. Appeltauer;R. Hirschfeld;M. Haupt;Hidehiko Masuhara
通讯作者:
M. Appeltauer;R. Hirschfeld;M. Haupt;Hidehiko Masuhara
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