Back to Search Start Over

Runtime Support for Type-Safe and Context-Based Behavior Adaptation.

Authors :
Zhao, Yinliang
Zhu, Changpeng
Han, Bo
Zeng, Qinghua
Source :
2012 IEEE 12th International Conference on Computer & Information Technology; 1/ 1/2012, p25-32, 8p
Publication Year :
2012

Abstract

Context-awareness has become increasingly important for mobile and ubiquitous computing. However, current mainstream object-oriented languages provide little explicit support for context-awareness. Object composition and delegation are often advocated as a flexible approach to represent dynamic behavior of objects with some dynamic behavior. In this paper, we propose Dynamic Behavior Adaptation Featherweight Java (DBAFJ), an extension of Featherweight Java with object composition and delegation, to support for context-awareness. In DBAFJ, each layer consists of a set of layered classes and a predicate method. The former defines a set of context-specific methods, and the latter describes a specific context. Instances of layered classes are created by the runtime system and are specialized in object composition that is context-based. Objects can be adapted by object composition at runtime to obtain new context-specific methods, and delegation with a static type discipline ensures that these new methods are correctly executed. Therefore, DBAFJ supports that the program dynamically adjust its behavior to the current execution context. The sound type system of DBAFJ assures that no "message-not-understood" errors occur at run-time. [ABSTRACT FROM PUBLISHER]

Details

Language :
English
ISBNs :
9781467348737
Database :
Complementary Index
Journal :
2012 IEEE 12th International Conference on Computer & Information Technology
Publication Type :
Conference
Accession number :
86535766
Full Text :
https://doi.org/10.1109/CIT.2012.232