Uniting global and local context behavior with context petri nets

Cardozo Alvarez, Nicolas;Gonzalez Montesinos, Sebastian Andres;Mens, Kim;D'Hont, Théo
(2012) European Conference on Object-Oriented Programming — Location: Beijing, China (11.June.2012)

Files

cardozo12gctx.pdf
  • Restricted Access
  • Adobe PDF
  • 253.38 KB

Details

Authors
  • Cardozo Alvarez, NicolasUCLouvain
    Author
  • Gonzalez Montesinos, Sebastian AndresUCLouvain
    Author
  • Mens, Kimorcid-logoUCLouvain
    Author
  • D'Hont, ThéoVrije Universiteit Brussel
    Author
Abstract
Context-oriented programming enables adaptation of systems to their execution environment. Behavioral adaptations are defined in the system and then associated to a context. Such adaptations are made available at runtime when their context is deemed more appropriate by the execution environment. Context activation is reified using two techniques. Global to all running threads in the system, or local to a particular thread of execution. Providing one technique or the other may hinder the adaptable capabilities of the system. This paper extends the context Petri nets model to unify global and local context behavior. Global and local context behavior are represented as multicolored tokens in context Petri nets, by assigning a color to each thread in the system. By means of context Petri nets, context-oriented systems can unambiguously adapt their behavior globally,or to a particular thread of execution.
Affiliations

Citations

Cardozo Alvarez, N., Gonzalez Montesinos, S. A., Mens, K., & D’Hont, T. (2012). Uniting global and local context behavior with context petri nets. Proceedings of the International Workshop on Context-Oriented Programming, p. 1-6. https://doi.org/10.1145/2307436.2307439