Skip to main content

Design Patterns for RTSJ Application Development

  • Conference paper

Part of the book series: Lecture Notes in Computer Science ((LNCS,volume 3292))

Abstract

The Real-Time Specification for Java provides a memory model, based on memory areas, which introduces some constraints on objects allocation and references. For this reason, many well-known design patterns cannot be used in a RTSJ environment since their structure violates such constraints. In this context, this paper proposes some new RTSJ design patterns and idioms, as well as a re-interpretation of existing patterns into a RTSJ perspective. Five patterns are presented. Three of them are an adaptation to RTSJ world of well-known design patterns—the singleton, the abstract factory and the leader-follower. The other two are new patterns—the eager exception handler and the memory tunnel—which allow to solve some peculiar problems deriving from the constraints of RTSJ memory model.

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

Buying options

Chapter
USD   29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD   84.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD   109.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

Learn about institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. Benowitz, E., Niessner, A.: A Pattern Catalog for RTSJ Software Design. In: Meersman, R., Tari, Z. (eds.) OTM-WS 2003. LNCS, vol. 2889, Springer, Heidelberg (2003)

    Google Scholar 

  2. Bollella, G., Canham, T., Carson, V., Champlin, V., Dvorak, D., Giovannoni, B., Meyer, K., Murray, A., Reinholtz, K.: Programming with Non-Heap Memory in RTSJ. In: Proceedings of the 18th 2003 ACM SIGPLAN Conference on Object-Oriented Programming, Systems, Languages and Applications (OOPSLA 2003), ACM Press, New York (2003)

    Google Scholar 

  3. Bollella, G., Gosling, J., Brosgol, B., Dibble, P., Furr, S., Hardin, D., Turnbull, M.: The Real-Time Specification for Java. Addison-Wesley, Reading (2000)

    Google Scholar 

  4. Corsaro, A., Santoro, C.: A C++ Native Interface for Interpreted JVMs. In: Meersman, R., Tari, Z. (eds.) OTM-WS 2003. LNCS, vol. 2889, Springer, Heidelberg (2003)

    Google Scholar 

  5. Corsaro, A., Schmidt, D.C.: The Design and Performance of the jRate Real- Time Java Implementation. In: Meersman, R., Tari, Z., et al. (eds.) CoopIS 2002, DOA 2002, and ODBASE 2002. LNCS, vol. 2519, pp. 900–921. Springer, Heidelberg (2002)

    Chapter  Google Scholar 

  6. Gamma, E., Helm, R., Johnson, R., Vlissides, J.: Design Patterns: Elements of Reusable Object-Oriented Software. Addison-Wesley, Reading (1995)

    Google Scholar 

  7. Rinard, M., et al.: FLEX Compiler Infrastructure (2002), http://www.flex-compiler.lcs.mit.edu/Harpoon/

  8. OVM/Consortium. OVM An Open RTSJ Compliant JVM (2002), http://www.ovmj.org/

  9. Pizlo, F., Fox, J.M., Holmes, D., Vitek, J.: Real-time java scoped memory design patterns and semantics. In: 7th IEEE International Symposium on Object-oriented Real-time distributed Computing (ISORC 2004), Vienna (2004)

    Google Scholar 

  10. Schmidt, D.C., O’Ryan, C., Pyarali, I., Kircher, M., Buschmann, F.: Leader/ Followers: A Design Pattern for Efficient Multi-threaded Event Demultiplexing and Dispatching. In: Proceedings of the 6th Pattern Languages of Programming Conference, Monticello, IL (August 2000)

    Google Scholar 

  11. Schmidt, D.C., Stal, M., Rohnert, H., Buschmann, F.: Pattern-Oriented Software Architecture: Patterns for Concurrent and Networked Objects, vol. 2. Wiley & Sons, New York (2000)

    Google Scholar 

  12. Siebert, F.: Hard Realtime Garbage Collection in Modern Object Oriented Programming Languages. AICAS GmbH (2003)

    Google Scholar 

  13. Timesys. JTime Virtual Machine (2002), www.timesys.com

Download references

Author information

Authors and Affiliations

Authors

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2004 Springer-Verlag Berlin Heidelberg

About this paper

Cite this paper

Corsaro, A., Santoro, C. (2004). Design Patterns for RTSJ Application Development. In: Meersman, R., Tari, Z., Corsaro, A. (eds) On the Move to Meaningful Internet Systems 2004: OTM 2004 Workshops. OTM 2004. Lecture Notes in Computer Science, vol 3292. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-540-30470-8_54

Download citation

  • DOI: https://doi.org/10.1007/978-3-540-30470-8_54

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-540-23664-1

  • Online ISBN: 978-3-540-30470-8

  • eBook Packages: Springer Book Archive

Publish with us

Policies and ethics