首页> 外文会议>2012 IEEE 12th International Conference on Computer and Information Technology. >Runtime Support for Type-Safe and Context-Based Behavior Adaptation
【24h】

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

机译:类型安全和基于上下文的行为适应的运行时支持

获取原文
获取原文并翻译 | 示例

摘要

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.
机译:对于移动和无处不在的计算,上下文感知已变得越来越重要。但是,当前主流的面向对象语言几乎没有为上下文感知提供显式支持。通常提倡对象组合和委托是一种灵活的方法,可以用某种动态行为来表示对象的动态行为。在本文中,我们提出了动态行为适应轻量级Java(DBAFJ),它是轻量级Java的扩展,具有对象组成和委派功能,以支持上下文感知。在DBAFJ中,每一层都由一组分层的类和一个谓词方法组成。前者定义了一组特定于上下文的方法,而后者描述了特定的上下文。分层类的实例由运行时系统创建,并且专门用于基于上下文的对象组合。可以通过在运行时通过对象组合来调整对象,以获得新的特定于上下文的方法,并且使用静态类型规范进行委派可确保正确执行这些新方法。因此,DBAFJ支持该程序根据当前执行上下文动态调整其行为。 DBAFJ的声音类型系统可确保在运行时不会发生“消息不理解”错误。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号