An expressive and modular layer activation mechanism for Context-Oriented Programming

被引:2
|
作者
Leger, Paul [1 ]
Cardozo, Nicolas [2 ]
Masuhara, Hidehiko [3 ]
机构
[1] Univ Catolica Norte, Escuela Ingeniria, Coquimbo, Chile
[2] Univ Andes, Syst & Comp Engn Dept, Bogota, Colombia
[3] Tokyo Inst Technol, Tokyo, Japan
关键词
Context -Oriented Programming; Activation mechanisms; EMA; LANGUAGE;
D O I
10.1016/j.infsof.2022.107132
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
Context. There is a trend in the software industry towards building systems that dynamically adapt their behavior in response to their surrounding environment, given the proliferation of various technological devices, such as notebooks, smartphones, and wearables, capable of capturing their execution context. Context-oriented Programming (COP) allows developers to use layer abstractions to adapt software behavior to the context. A layer is associated with a context and can be dynamically activated in direct response to gathered information from its surrounding execution environment. However, most existing layer activation mechanisms have been tailored specifically to address a particular concern; implying that developers need to tweak layer definitions in contortive ways or create new specialized activation mechanisms altogether if their specific needs are not supported. Objective. Complementing ideas to expressively declare activation mechanism models with interfaces that define conditionals of activation mechanisms modularly, this paper proposes an Expressive and Modular Activation mechanism, named EMA. Method. To propose EMA, we analyze existing activation mechanisms in COP regarding activation features and scope strategies. After, we propose the design of EMA and validate it with a case study discussion. Results. Using a concrete JavaScript implementation of EMA, named EMAjs, we can implement two Web applications: a smartphone application as an example to illustrate EMAjs in action, and an application of home automation to discuss and compare our proposal. Conclusions. Our proposed mechanism allows developers to instantiate different activation scope strategies and interfaces to decouple the declaration of activation mechanism conditionals from the base code.
引用
收藏
页数:14
相关论文
共 50 条
  • [31] Scoping changes in self-supporting development environments using context-oriented programming
    Hasso-Plattner-Institut, Universität Potsdam, Germany
    Int. Workshop Context-Oriented Program., COP - Co-located Eur. Conf. Object-Oriented Program., ECOOP, 1600,
  • [32] EventCJ: A context-oriented language with declarative per-object layer transitions
    Japan Advanced Institute of Science and Technology, Japan
    不详
    Comput. Softw., 2013, 3 (130-147):
  • [33] Context-oriented design of industrial exoskeletons
    Hoffmann, Niclas
    Ralfs, Lennart
    Weidner, Robert
    Konstruktion, 2024, 76 (8-9): : 64 - 70
  • [34] The presentation & inference mechanism of electronic business distribution knowledge task context-oriented
    Xiao, Liang
    Journal of Computational Information Systems, 2010, 6 (06): : 2017 - 2026
  • [35] THOUGHTS ON CONTEXT-ORIENTED GENRE THEORY OF THE BALLAD
    WURZBACH, N
    JAHRBUCH FUR VOLKSLIEDFORSCHUNG, 1984, 29 : 112 - 116
  • [36] Mobile context-oriented platform for learning support
    Budina, J.
    Klapka, O.
    Zmitko, M.
    2015 13TH INTERNATIONAL CONFERENCE ON EMERGING ELEARNING TECHNOLOGIES AND APPLICATIONS (ICETA), 2015, : 51 - 57
  • [37] Auto-COP: Adaptation generation in Context-oriented Programming using Reinforcement Learning options
    Cardozo, Nicolas
    Dusparic, Ivana
    INFORMATION AND SOFTWARE TECHNOLOGY, 2023, 164
  • [38] RTCOP: Context-Oriented Programming Framework based on C plus plus for Application in Embedded Software
    Tanigawa, Ikuta
    Hisazumi, Kenji
    Ogura, Nobuhiko
    Sugaya, Midori
    Watanabe, Harumi
    Fukuda, Akira
    PROCEEDINGS OF THE 2ND INTERNATIONAL CONFERENCE ON INFORMATION SCIENCE AND SYSTEMS (ICISS 2019), 2019, : 65 - 72
  • [39] CONTEXT-ORIENTED WEB METHODOLOGY WITH A QUALITY APPROACH
    Griman, Anna
    Perez, Maria
    Ortega, Maryoly
    Mendoza, Luis E.
    ICEIS 2008: PROCEEDINGS OF THE TENTH INTERNATIONAL CONFERENCE ON ENTERPRISE INFORMATION SYSTEMS, VOL ISAS-2: INFORMATION SYSTEMS ANALYSIS AND SPECIFICATION, VOL 2, 2008, : 213 - 219
  • [40] Group Decision Making A Context-oriented View
    Brezillon, Patrick
    Zarate, Pascale
    JOURNAL OF DECISION SYSTEMS, 2008, 17 (01) : 11 - 26