Bridging real-world contexts and units of behavioral variations by composite layers

  • Authors:
  • Tetsuo Kamina;Tomoyuki Aotani;Hidehiko Masuhara

  • Affiliations:
  • University of Tokyo;Japan Advanced Institute of Science and Technology;University of Tokyo

  • Venue:
  • Proceedings of the International Workshop on Context-Oriented Programming
  • Year:
  • 2012

Quantified Score

Hi-index 0.00

Visualization

Abstract

This paper proposes a new linguistic construct composite layers and an extension of EventCJ with it. A composite layer is implicitly activated when the declared condition is met. This extension bridges the gap between contexts and units of behavioral variations that complicates programs written in COP languages. In this proposal, only atomic layers (layers that directly correspond to a context) can be explicitly controlled by linguistic operations for layer activation. Composite layers (layers that are not atomic) are declared with a proposition constructed from other layers. Examples show that the extension simplifies programs and enhances separation of concerns.