Skip to main content

Part of the book series: Lecture Notes in Computer Science ((LNPSE,volume 3393))

Abstract

Interfaces became one of the most important features in modern software systems, especially in object-oriented systems. They provide for abstraction and detail hiding and, therefore, contribute to readable and reusable software construction. Formal specification methods have also addressed interfaces and provided formal semantics to them. These semantics are always based on some forgetful and/or restriction constructions. The main focus has been laid on integrating these constructions with free or behaviourable constructions in order to provide some combined semantics for specification modules.

In this paper, we investigate the algebraic properties of “forgetting” and “restricting”. We define two different notions of model category for algebraic specification with explicit interface signatures, so-called interface specifications. The first one uses forgetful constructions only, the second one integrates the restriction to the part reachable by the interface.

We investigate closure properties of these categories w.r.t. subalgebras, products and directed limits. This analysis provides the first result, namely that interface specifications with Horn-axioms do not exceed the expressiveness of Horn-axiom specifications without interfaces. The inverse is more interesting. We show that each category specified by Horn-axioms can be specified by simple equations on possibly hidden operations. The constructive proof for this theorem leads to the next main result that every class specified by an interface specification with restriction semantics possesses an interface specification using forgetful semantics only.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. Ehrig, H., Kreowski, H.-J., Mahr, B., Padawitz, P.: Algebraic implementation of abstract data types. Theoret. Comp. Sci. 20, 209–263 (1982)

    Article  MATH  Google Scholar 

  2. Ehrig, H., Mahr, B.: Fundamentals of Algebraic Specification 1: Equations and Initial Semantics. EATCS Monographs on Theoretical Computer Science, vol. 6. Springer, Heidelberg (1985)

    MATH  Google Scholar 

  3. Ehrig, H., Mahr, B.: Fundamentals of Algebraic Specification 2: Module Specifications and Constraints. EATCS Monographs on Theoretical Computer Science, vol. 21. Springer, Heidelberg (1990)

    MATH  Google Scholar 

  4. Goguen, J.A., Thatcher, J.W., Wagner, E.G.: An initial algebra approach to the specification, correctness and implementation of abstract data types. IBM Research Report RC 6487 (1976); Also: Current Trends in Programming Methodology IV: Data Structuring, pp. 80–144. Prentice Hall, Englewood Cliffs (1978)

    Google Scholar 

  5. Gosling, J., Joy, B., Steele, G., Bracha, G.: The JavaTMLanguage Specification, 2nd edn. Addison-Wesley, Reading (2000)

    Google Scholar 

  6. Guttag, J.V.: The specification and application to programming of abstract data types. Ph.D. Thesis, University of Toronto (1975)

    Google Scholar 

  7. Herrlich, H., Strecker, G.E.: Category Theory, 2nd edn. Heldermann (1979)

    Google Scholar 

  8. Kreowski, H.-J.: Internal communication. TU-Berlin (1978)

    Google Scholar 

  9. Löwe, M.: Algebra 2, TU-Berlin. Technical Lecture Notes (1991) (in German)

    Google Scholar 

  10. Rumbaugh, J., Jacobson, I., Booch, G.: The Unified Modeling Language Reference Manual. Addison-Wesley, Reading (1999)

    Google Scholar 

  11. Thatcher, J.W., Wagner, E.G., Wright, J.B.: Data Type Specification. Parametrization and the Power of Specifiction Techniques. ACM Transactions on Programming Languages and Systems 4(4), 711–732 (1982)

    Article  MATH  Google Scholar 

  12. Wechler, W.: Universal Algebra for Computer Scientists. Springer, Heidelberg (1992)

    MATH  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2005 Springer-Verlag Berlin Heidelberg

About this chapter

Cite this chapter

Löwe, M., König, H., Schulz, C. (2005). Algebraic Properties of Interfaces. In: Kreowski, HJ., Montanari, U., Orejas, F., Rozenberg, G., Taentzer, G. (eds) Formal Methods in Software and Systems Modeling. Lecture Notes in Computer Science, vol 3393. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-540-31847-7_11

Download citation

  • DOI: https://doi.org/10.1007/978-3-540-31847-7_11

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-540-24936-8

  • Online ISBN: 978-3-540-31847-7

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics