arrow
返回

Runtime support for type-safe and context-based behavior adaptation

delete2013-12-06
delete5
PRE
AI
C
Changpeng Zhu
Y
Yinliang Zhao *
B
Bo Han
Q
Qinghua Zeng
Y
Ying Ma
DOI:10.1007/s11704-013-2337-6delete
delete原文链接
delete原文求助
delete分享
delete收藏
摘要

摘要

En 中文
Context-awareness is becoming critical for mobile and ubiquitous computing, where the application needs dynamically adapt its behavior to its execution environment. Context-oriented programming (COP) languages support dynamic behavior adaptation, however, they do not support dynamic 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 difficulty. In this paper, we propose a virtual machine (VM)-centric approach to address these issues. It incorporates object composition and delegation into the VM to implement layer activation, and extends existing VM services to support dynamic layer addition. To ensure that our approach preserves the type safety properties of the program, we develop 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 implementation and evaluation of our approach. The evaluation demonstrates that our approach has advantages over the compilerbased approach proposed by JCOP.
Keyword:
context-oriented programming
object composition
delegation
featherweight Java
type system

期刊

Frontiers of Computer Science 封面图
Frontiers of Computer Science
IF:
4.6
论文数:
1.6K
被引数:
2.8K

机构

X
xi'an jiaotong university
学者数:
9.3W
论文数: 6.7W
被引数: 75
引用论文

引用论文

Structure and Emerging Functions of LRCH Proteins in Leukocyte Biology
err2020-09-22
err0
errOAAI
errThibaud Rivière; Almke Bader; Kristin Pogoda; Barbara Walzog; Daniela Maier-Begandt
err分享
err收藏
Social Cognition Training for Enhancing Affective and Cognitive Theory of Mind in Schizophrenia: A Systematic Review and a Meta-Analysis
err2020-10-13
err0
PREAI
errAlessia d’Arma; Sara Isernia; Sonia Di Tella; Marco Rovaris; Annalisa Valle; Francesca Baglio; Antonella Marchetti
err分享
err收藏
Detection of nitroaromatic compounds on coal combustion particles
err2009-10-20
err0
PREAI
errR. L. Hanson; T. R. Henderson; C. H. Hobbs; C. R. Clark; R. L. Carpenter; J. S. Dutcher; T. M. Harvey; D. F. Hunt
err分享
err收藏
err分享
err收藏
Robustness of the Process of Nucleoid Exclusion of Protein Aggregates in Escherichia coli
err2016-03-15
err0
errOAAI
errRamakanth Neeli-Venkata; Antti Martikainen; Abhishekh Gupta; Nadia Gonçalves; Jose Fonseca; Andre S. Ribeiro
err分享
err收藏
Batch normalized recurrent neural networks
err2016-03-01
err0
errOAAI
errCesar Laurent; Gabriel Pereyra; Philemon Brakel; Ying Zhang; Yoshua Bengio
err分享
err收藏
Selection and ranking of ground motion models for seismic hazard analysis in the Pyrenees
err2007-01-27
err0
errOAAI
errStéphane Drouet; Frank Scherbaum; Fabrice Cotton; Annie Souriau
err分享
err收藏
Effects of the healthy start randomized intervention on psychological stress and sleep habits among obesity-susceptible healthy weight children and their parents
err2022-03-10
err0
errOAAI
errNanna Julie Olsen; Sofus Christian Larsen; Jeanett Friis Rohde; Maria Stougaard; Mina Nicole Händel; Ina Olmer Specht; Berit Lilienthal Heitmann
err分享
err收藏
没有更多内容