Skip to main content
Top

2017 | OriginalPaper | Chapter

Object Metamorphism

Type-Safe Modeling of Protean Objects in Scala

Activate our intelligent search to find suitable subject content or patents.

search-config
loading …

Abstract

Modeling protean objects, i.e. objects adapting their structure and behavior dynamically with respect to changeable environment, may be challenging in traditional object oriented languages. While some dynamic languages make the implementation of changeable behavior of objects possible by injecting code into the objects at run-time, their lack of an in-depth compile-time code analysis makes the resulting code fragile. The concept of object metamorphism (OM) targets the gap between the two language types by introducing a declarative modeling of protean objects. Such a model, which is validated at compile-time, defines all possible compositions of a given object from smaller parts represented by traits. The actual composition used to instantiate the object is chosen dynamically with respect to the current environment. The result of this research will provide the theoretical concept of OM along with a proof-of-concept adoption of OM to Scala.

Dont have a licence yet? Then find out more about our products and how to get one now:

Springer Professional "Wirtschaft+Technik"

Online-Abonnement

Mit Springer Professional "Wirtschaft+Technik" erhalten Sie Zugriff auf:

  • über 102.000 Bücher
  • über 537 Zeitschriften

aus folgenden Fachgebieten:

  • Automobil + Motoren
  • Bauwesen + Immobilien
  • Business IT + Informatik
  • Elektrotechnik + Elektronik
  • Energie + Nachhaltigkeit
  • Finance + Banking
  • Management + Führung
  • Marketing + Vertrieb
  • Maschinenbau + Werkstoffe
  • Versicherung + Risiko

Jetzt Wissensvorsprung sichern!

Springer Professional "Technik"

Online-Abonnement

Mit Springer Professional "Technik" erhalten Sie Zugriff auf:

  • über 67.000 Bücher
  • über 390 Zeitschriften

aus folgenden Fachgebieten:

  • Automobil + Motoren
  • Bauwesen + Immobilien
  • Business IT + Informatik
  • Elektrotechnik + Elektronik
  • Energie + Nachhaltigkeit
  • Maschinenbau + Werkstoffe




 

Jetzt Wissensvorsprung sichern!

Springer Professional "Wirtschaft"

Online-Abonnement

Mit Springer Professional "Wirtschaft" erhalten Sie Zugriff auf:

  • über 67.000 Bücher
  • über 340 Zeitschriften

aus folgenden Fachgebieten:

  • Bauwesen + Immobilien
  • Business IT + Informatik
  • Finance + Banking
  • Management + Führung
  • Marketing + Vertrieb
  • Versicherung + Risiko




Jetzt Wissensvorsprung sichern!

Literature
1.
go back to reference Harrison, W., Ossher, H.: Subject-oriented programming (a critique of pure objects). In: Proceedings of the Conference on Object-Oriented Programming Systems, Languages and Applications (OOPSLA 1993), Washington, D.C. ACM, September 1993 Harrison, W., Ossher, H.: Subject-oriented programming (a critique of pure objects). In: Proceedings of the Conference on Object-Oriented Programming Systems, Languages and Applications (OOPSLA 1993), Washington, D.C. ACM, September 1993
2.
go back to reference Harrison, W., Budinsky, F., Simmonds, I.: Subject-oriented programming: supporting decentralized development of objects, IBM TJ Watson Research Center (1995) Harrison, W., Budinsky, F., Simmonds, I.: Subject-oriented programming: supporting decentralized development of objects, IBM TJ Watson Research Center (1995)
3.
go back to reference Coplien, J.O., Reenskaug, T.M.H.: The data, context and interaction paradigm. In: Proceedings of the 3rd Annual Conference on Systems, Programming, and Applications: Software for Humanity (SPLASH 2012), pp. 227–228. ACM, New York (2012) Coplien, J.O., Reenskaug, T.M.H.: The data, context and interaction paradigm. In: Proceedings of the 3rd Annual Conference on Systems, Programming, and Applications: Software for Humanity (SPLASH 2012), pp. 227–228. ACM, New York (2012)
4.
go back to reference Alam, O., Kienzle, J.: designing with inheritance and composition. In: Proceedings of the 3rd International Workshop on Variability & Composition (VariComp 2012), pp. 19–24. ACM, New York (2012) Alam, O., Kienzle, J.: designing with inheritance and composition. In: Proceedings of the 3rd International Workshop on Variability & Composition (VariComp 2012), pp. 19–24. ACM, New York (2012)
5.
go back to reference Herrmann, S.: Demystifying object schizophrenia. In: Proceedings of the 4th Workshop on MechAnisms for SPEcialization, Generalization and inHerItance (MASPEGHI 2010). ACM, New York (2010) Herrmann, S.: Demystifying object schizophrenia. In: Proceedings of the 4th Workshop on MechAnisms for SPEcialization, Generalization and inHerItance (MASPEGHI 2010). ACM, New York (2010)
6.
go back to reference Malayeri, D., Aldrich, J.: CZ: multiple inheritance without diamonds. In: Proceedings of the 24th ACM SIGPLAN Conference on Object Oriented Programming Systems Languages and Applications (OOPSLA 2009). ACM, New York (2009) Malayeri, D., Aldrich, J.: CZ: multiple inheritance without diamonds. In: Proceedings of the 24th ACM SIGPLAN Conference on Object Oriented Programming Systems Languages and Applications (OOPSLA 2009). ACM, New York (2009)
7.
go back to reference Odersky, M., Spoon, L., Venners, B.: Programming in Scala, Artima, 0981531644 (2008) Odersky, M., Spoon, L., Venners, B.: Programming in Scala, Artima, 0981531644 (2008)
Metadata
Title
Object Metamorphism
Author
Zbyněk Šlajchrt
Copyright Year
2017
DOI
https://doi.org/10.1007/978-3-319-46535-7_24

Premium Partner