The Context-Dependent Role Model

  • Jorge Vallejos
  • Peter Ebraert
  • Brecht Desmet
  • Tom Van Cutsem
  • Stijn Mostinckx
  • Pascal Costanza
Conference paper
Part of the Lecture Notes in Computer Science book series (LNCS, volume 4531)


Implementing context-dependent behaviour of pervasive computing applications puts a great burden on programmers: Devices need to continuously adapt not only to their own context, but also to the context of other devices they interact with. We present an approach that modularises behavioural adaptations into roles. Role selection takes the context of all the devices involved in an interaction into account, ensures an unambiguous scope of adaptation even in the presence of concurrency, and protects the privacy of the devices. Thus, our context-dependent role (CDR) model facilitates expressing interactions between applications in different, possibly conflicting contexts.


Pervasive Computing Behavioural Adaptation Incoming Call Default Behaviour Extend Logic Program 
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.


  1. 1.
    Agha, G.: Actors: a Model of Concurrent Computation in Distributed Systems. MIT Press, Cambridge (1986)Google Scholar
  2. 2.
    Agha, G., Hewitt, C.: Concurrent programming using actors. Object-oriented concurrent programming, pp. 37–53 (1987)Google Scholar
  3. 3.
    Aracic, I., Gasiunas, V., Mezini, M., Ostermann, K.: Overview of caesarj. In: Rashid, A., Aksit, M. (eds.) Transactions on Aspect-Oriented Software Development I. LNCS, vol. 3880, pp. 135–173. Springer, Heidelberg (2006)CrossRefGoogle Scholar
  4. 4.
    Bardou, D., Dony, C.: Split objects: a disciplined use of delegation within objects. In: Proceedings of the 11th ACM SIGPLAN conference on Object-oriented programming, systems, languages, and applications, pp. 122–137. ACM Press, New York (1996)Google Scholar
  5. 5.
    Bardram, J.E.: The java context awareness framework (jcaf) - a service infrastructure and programming framework for context-aware applications. In: Pervasive, pp. 98–115 (2005)Google Scholar
  6. 6.
    Bergel, A., Ducasse, S., Nierstrasz, O., Wuyts, R.: Classboxes: controlling visibility of class extensions. Computer Languages, Systems and Structures 31(3-4), pp. 107–126 (2004)CrossRefzbMATHGoogle Scholar
  7. 7.
    Bergmans, L.: The composition filters object model. Technical report, Dept. of Computer Science, University of Twente (1994)Google Scholar
  8. 8.
    Bracha, G., Cook, W.: Mixin-based inheritance. In: Meyrowitz, N. (ed.) Proceedings of the Conference on Object-Oriented Programming: Systems, Languages, and Applications / Proceedings of the European Conference on Object-Oriented Programming, pp. 303–311. ACM Press, Ottawa, Canada (1990)Google Scholar
  9. 9.
    Brewer, E.A., Katz, R.H., Amir, E., Balakrishnan, H., Chawathe, Y., Fox, A., Gribble, S.D., Hodes, T., Nguyen, G., Padmanabhan, V.N., Stemm, M., Seshan,S., Henderson, T.: A network architecture for heterogeneous mobile computing. Personal Communications, IEEE (1998)Google Scholar
  10. 10.
    Brewka, G.: Well-founded semantics for extended logic programs with dynamic preferences. Journal of Artificial Intelligence Research 4, 19 (1996)MathSciNetzbMATHGoogle Scholar
  11. 11.
    Correa, C.D., Marsic, I.: A flexible architecture to support awareness in heterogeneous collaborative environments. In: Fourth International Symposium on Collaborative Technologies and Systems (CTS 2003), pp. 109–116 (November 2003)Google Scholar
  12. 12.
    Costanza, P., Hirschfeld, R.: Language constructs for context-oriented programming - An overview of ContextL. In: Dynamic Languages Symposium (2005)Google Scholar
  13. 13.
    David, P.-C., Ledoux, T.: Wildcat: a generic framework for context-aware applications. In: MPAC ’05. Proceedings of the 3rd international workshop on Middleware for pervasive and ad-hoc computing, pp. 1–7. ACM Press, New York (2005)CrossRefGoogle Scholar
  14. 14.
    Dedecker, J.: Ambient-Oriented Programming. PhD thesis, Vrije Universiteit Brussel (2006)Google Scholar
  15. 15.
    Dedecker, J., Van Belle, W.: Actors for Mobile Ad-hoc Networks. In: International Conference on Embedded and Ubiquitous Computing EUC2004 (2004)Google Scholar
  16. 16.
    Dedecker, J., Van Cutsem, T., Mostinckx, S., D’Hondt, T., De Meuter, W.: Ambient-Oriented Programming in Ambienttalk. In: Proceedings of the 20th European Conference on Object-Oriented Programming (ECOOP) Nantes, France (2006)Google Scholar
  17. 17.
    Ernst, M.D., Kaplan, C.S., Chambers, C.: Predicate dispatching: A unified theory of dispatch. In: ECOOP ’98, the 12th European Conference on Object-Oriented Programming, pp. 186–211, Brussels, Belgium (July 20-24, 1998)Google Scholar
  18. 18.
    Forgy, C.: Rete: A fast algorithm for the many pattern/many object pattern match problem. Artificial Intelligence 19, 17–37 (1982)CrossRefGoogle Scholar
  19. 19.
    Gabbay, D., Laenens, E., Vermeir, D.: Credulous vs. sceptical semantics for ordered logic programs. In: Kaufmann, M. (ed.) Second International Conference on Principles of Knowledge Representation and Reasoning, pp. 208–217 (1991)Google Scholar
  20. 20.
    I.A. Group. Ambient intelligence: from vision to reality (September 2003)Google Scholar
  21. 21.
    Lieberman, H.: Using prototypical objects to implement shared behavior in object-oriented systems. In: Conference proceedings on Object-oriented Programming Systems, Languages and Applications, pp. 214–223. ACM Press, New York (1986)Google Scholar
  22. 22.
    Preuveneers, D., Van den Bergh, J., Wagelaar, D., Georges, A., Rigole, P., Clerckx, T., Berbers, Y., Coninx, K., Jonckers, V., De Bosschere, K.: Towards an extensible context ontology for ambient intelligence. In: Ambient Intelligence, pp. 148–159 (2004)Google Scholar
  23. 23.
    Ren, S., Yu, Y., Chen, N., Marth, K., Poirot, P.-E., Shen, L.: Actors, roles and coordinators - a coordination model for open distributed and embedded systems. In: COORDINATION, pp. 247–265 (2006)Google Scholar
  24. 24.
    Salber, D., Dey, A.K., Abowd, G.D.: The context toolkit: aiding the development of context-enabled applications. In: A. Press (ed.) CHI 99: Proceedings of the SIGCHI conference on Humon factors in computing systems, pp. 434–441. New York, USA (1999)Google Scholar
  25. 25.
    Salber, D., Dey, A.K., Abowd, G.D.: The context toolkit: aiding the development of context-enabled applications. In: CHI ’99. Proceedings of the SIGCHI conference on Human factors in computing systems, pp. 434–441. ACM Press, New York (1999)Google Scholar
  26. 26.
    Schärli, N., Ducasse, S., Nierstrasz, O., Black, A.: Traits: Composable units of behavior. In: ECOOP 2003 – Object-Oriented Programming, LNCS, vol. 2743, pp. 248–274, Springer, Heidelberg (2003)Google Scholar
  27. 27.
    Sørensen, C.-F., Wu, M., Sivaharan, T., Blair, G.S., Okanda, P., Friday, A., Duran-Limon, H.: A context-aware middleware for applications in mobile ad hoc environments. In: MPAC ’04. Proceedings of the 2nd workshop on Middleware for pervasive and ad-hoc computing, pp. 107–110. ACM Press, New York (2004)Google Scholar
  28. 28.
    Varela, C.A., Agha, G.: A hierarchical model for coordination of concurrent activities. In: Ciancarini, P., Wolf, A.L. (eds.) COORDINATION 1999. LNCS, vol. 1594, pp. 166–182. Springer, Heidelberg (1999)Google Scholar
  29. 29.
    Vos, M.D., Vermeir, D.: Choice logic programs and nash equilibria in strategic games. In: Flum, J., Rodriguez-Artalejo, M. (eds.) Computer Science Logic, vol. 1683, pp. 266–276. Springer, Heidelberg (1999)CrossRefGoogle Scholar

Copyright information

© IFIP International Federation for Information Processing 2007

Authors and Affiliations

  • Jorge Vallejos
    • 1
  • Peter Ebraert
    • 1
  • Brecht Desmet
    • 1
  • Tom Van Cutsem
    • 1
  • Stijn Mostinckx
    • 1
  • Pascal Costanza
    • 1
  1. 1.Programming Technology Lab – Vrije Universiteit Brussel, Pleinlaan 2 - 1050 BrusselsBelgium

Personalised recommendations