arrow
Return

Context-Oriented Behavioral Programming

delete2021-05-01
delete16
delete
OA
AI
A
Achiya Elyasaf *
DOI:10.1016/j.infsof.2020.106504delete
deleteOriginal
deleteShare
deleteSave
View PDF
Abstract

Abstract

En 中文
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.
Keywords:
Behavioral programming
Scenario-based programming
Programming paradigm
Context awareness
Context-oriented programming
Context-Oriented Behavioral Programming
Context-oriented programming: A software engineering perspective
err2012-08-01
err69
PREAI
errSalvaneschi, Guido; Ghezzi, Carlo; Pradella, Matteo
errShare
errSave
A framework for analyzing context-oriented programming languages?
err2023-04-01
err1
PREAI
errElyasaf, Achiya; Cardozo, Nicolas; Sturm, Arnon
errShare
errSave
errShare
errSave
Semantics for consistent activation in context-oriented systems
err2015-02-01
err7
PREAI
errCardozo, Nicolas; Gonzalez, Sebastian; Mens, Kim; Van Der Straeten, Ragnhild; Vallejos, Jorge; D'Hondt, Theo
errShare
errSave
Precise slicing of interprocedural concurrent programs
err2017-03-17
err1
PREAI
errLi, Xuansong; Tao, Xianping; Lu, Jian
errShare
errSave

Journal

Information and Software Technology cover
Information and Software Technology
IF:
4.3
Papers:
3.8K
Citations:
9.5K

Organization

B
Ben-Gurion University of the Negev
Scholars:
807
Papers: 350
Citations: 1.6K
Cited Papers

Cited Papers

Associations of pri-miR-34b/c and pre-miR-196a2 Polymorphisms and Their Multiplicative Interactions with Hepatitis B Virus Mutations with Hepatocellular Carcinoma Risk
err2013-03-13
err0
errOAAI
errYifang Han; Rui Pu; Xue Han; Jun Zhao; Yuwei Zhang; Qi Zhang; Jianhua Yin; Jiaxin Xie; Qiuxia Shen; Yang Deng; Yibo Ding; Weiping Li; Juhong Li; Hongwei Zhang; Guangwen Cao
errShare
errSave
Context-oriented programming: A software engineering perspective
err2012-08-01
err69
PREAI
errSalvaneschi, Guido; Ghezzi, Carlo; Pradella, Matteo
errShare
errSave
Assessing the role of the RND efflux pump in metronidazole resistance of Helicobacter pylori by RT-PCR assay
err2010-10-19
err0
errOAAI
errJalil Fallah Mehrabadi; Mehrandokht Sirous; Naser Ebrahimi Daryani; Saeed Eshraghi; Bahram Akbari; Mohammad Hasan Shirazi
errShare
errSave
A Hybrid Mock Circulatory Loop for Fluid Dynamic Characterization of 3D Anatomical Phantoms
err2023-05-01
err0
PREAI
errFrancesco Bardi; Emanuele Gasparotti; Emanuele Vignali; Stéphane Avril; Simona Celi
errShare
errSave
Thermodynamics of binary gas adsorption in nanopores
err2016-01-01
err0
PREAI
errSujeet Dutta; Ronan Lefort; Denis Morineau; Ramona Mhanna; Odile Merdrignac-Conanec; Arnaud Saint-Jalmes; Théo Leclercq
errShare
errSave
Semantics for consistent activation in context-oriented systems
err2015-02-01
err7
PREAI
errCardozo, Nicolas; Gonzalez, Sebastian; Mens, Kim; Van Der Straeten, Ragnhild; Vallejos, Jorge; D'Hondt, Theo
errShare
errSave
researcher View more