期刊文献+
共找到1篇文章
< 1 >
每页显示 20 50 100
Runtime support for type-safe and context-based behavior adaptation 被引量:1
1
作者 Changpeng ZHU Yinliang ZHAO Bo HAN Qinghua ZENG Ying MA 《Frontiers of Computer Science》 SCIE EI CSCD 2014年第1期17-32,共16页
Context-awareness is becoming critical for mo- bile and ubiquitous computing, where the application needs dynamically adapt its behavior to its execution environment. Context-oriented programming (COP) languages sup... Context-awareness is becoming critical for mo- bile and ubiquitous computing, where the application needs dynamically adapt its behavior to its execution environment. Context-oriented programming (COP) languages support dy- namic behavior adaptation, however, they do not support dy- namic layer addition. As a result, they provide little support for the runtime adaptation of application behavior in case that unpredictable execution environments are encountered. Furthermore, block-structured constructs for layer activation hardly support fine-grain adaptation and separate changes of contexts and execution of context-specific methods with dif- ficulty. In this paper, we propose a virtual machine (VM)- centric approach to address these issues. It incorporates ob- ject composition and delegation into the VM to implement layer activation, and extends existing VM services to sup- port dynamic layer addition. To ensure that our approach preserves the type safety properties of the program, we de- velop a calculus built on featherweight Java (FJ) to describe the approach, focus on type-checking issues, and prove type soundness of the calculus. We also present the implementa- tion and evaluation of our approach. The evaluation demon- strates that our approach has advantages over the compiler- based approach proposed by JCOP. 展开更多
关键词 context-orientedprogramming object composi-tion DELEGATION featherweight Java type system
原文传递
上一页 1 下一页 到第
使用帮助 返回顶部