A

Multi-Dimensional Context-Oriented Programming with a Lightweight Domain Specific Language

ACM SIGPLAN International Conference on Software Language Engineering (SLE), pp. 54–66

Abstract

Context-awareness is crucial for developing cyber-physical systems to enable dynamic behavior. Context-oriented programming (COP) aims to improve the definition of context-dependent behavioral variations. However, existing layer-based COP approaches have two major limitations: layered methods are specified only for single contextual dimensions and restrict adaptations to method replacement or input/output filtering, limiting expressiveness for complex context dependencies. This paper presents an approach to context-oriented programming supporting multiple contextual dimensions. Behavior definition is supported by a composition system that generates context-dependent methods enabling fine-grained code insertion at arbitrary locations within base methods. The approach is implemented as an embedded domain-specific language in Julia for the Contexts.jl library. Evaluation demonstrates improved scalability and flexibility compared to traditional layer-based approaches, enabling sophisticated context-dependent adaptations. This advancement facilitates the development of adaptive applications in domains requiring multi-dimensional contexts, such as autonomous vehicles and smart infrastructure.

Authors 3

  1. RWTH Aachen University · Technische Universität Dresden · Climate-Neutral and Resource-Efficient Construction

    Affiliation as printed

    Chair of Software Technology, Boysen-TU Dresden-Graduiertenkolleg; Technische Universität Dresden; Cluster of Excellence CARE, TU Dresden and RWTH Aachen, Germany, Dresden, Germany

  2. Technische Universität Dresden

    Affiliation as printed

    Technische Universität Dresden, Dresden, Germany

  3. RWTH Aachen University · Technische Universität Dresden · Climate-Neutral and Resource-Efficient Construction

    Affiliation as printed

    Technische Universität Dresden; Cluster of Excellence CARE, TU Dresden and RWTH Aachen, Germany, Dresden, Germany

Cited by 0 stored of 0

No patents citing this paper on Lens.org (checked 2026-10-06).

References 28