...
首页> 外文期刊>Information and software technology >Context-Oriented Behavioral Programming
【24h】

Context-Oriented Behavioral Programming

机译:面向上下文的行为编程

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

摘要

Context: Modern systems require programmers to develop code that dynamically adapts to different contexts, leading to the evolution of new context-oriented programming languages. These languages introduce new software-engineering challenges, such as: how to maintain the separation of concerns of the codebase? how to model the changing behaviors? how to verify the system behavior? and more.Objective: This paper introduces Context-Oriented Behavioral Programming (COBP) - a novel paradigm for developing context-aware systems, centered on natural and incremental specification of context-dependent behaviors. As the name suggests, we combine behavioral-programming (BP) - a scenario-based modeling paradigm - with context idioms that explicitly specify when scenarios are relevant and what information they need. The core idea is to connect the behavioral model with a data model that represents the context, allowing an intuitive connection between the models via update and select queries. Combining behavioral-programming with context-oriented programming brings the best of the two worlds, solving issues that arise when using each of the approaches in separation.Methods: We begin with providing abstract semantics for COBP and two implementations for the semantics, laying the foundations for applying reasoning algorithms to context-aware behavioral programs. Next, we exemplify the semantics with formal specifications of systems, including a variant of Conway's Game of Life. Then, we provide two case studies of real-life context-aware systems (one in robotics and another in IoT) that were developed using this tool. Throughout the examples and case studies, we provide design patterns and a methodology for coping with the above challenges.Results: The case studies show that the proposed approach is applicable for developing real-life systems, and presents measurable advantages over the alternatives - behavioral programming alone and context-oriented programming alone.Conclusion: We present a paradigm allowing programmers and system engineers to capture complex context-dependent requirements and align their code with such requirements.
机译:背景信息:现代系统要求程序员开发动态适应不同上下文的代码,导致新的上下文导向的编程语言的演变。这些语言介绍了新的软件 - 工程挑战,例如:如何维护码基的关注点?如何建模更改的行为?如何验证系统行为?和更多。目的:本文介绍了面向上下文的行为编程(COBP) - 用于开发上下文知识系统的新型范例,以自然和依赖于上下文行为的增量规范为中心。顾名思义,我们将行为编程(BP) - 一种基于方案的建模范例 - 具有上下文成语,在方案相关时明确指定,它们需要哪些信息。核心思想是将行为模型与表示上下文的数据模型连接,允许通过更新和选择查询之间直观的连接。将行为编程与面向上下文的编程组合起来介绍了两个世界中最好的,解决了使用分离方法中的每个方法时出现的问题。我们首先为COBP提供抽象语义,并为语义提供两种实现,铺设了基础将推理算法应用于背景感知行为程序。接下来,我们举例说明了具有正式规范的系统的语义,包括康威生活游戏的变种。然后,我们提供了使用此工具开发的真实环境感知系统(在机器人中的一个,另一个在IOT中的一个案例研究。在整个示例和案例研究中,我们提供设计模式和用于应对上述挑战的方法。结果:案例研究表明,该方法适用于开发现实生活系统,并呈现出替代方案的可衡量优势 - 行为规划单独和面向上下文的编程。结论:我们提出了一种范式,允许程序员和系统工程师捕获复杂的上下文相关要求,并将其代码与此类要求对齐。

著录项

获取原文

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号