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.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
Similar content being viewed by others
References
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)
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)
Bollella, G., Gosling, J., Brosgol, B., Dibble, P., Furr, S., Hardin, D., Turnbull, M.: The Real-Time Specification for Java. Addison-Wesley, Reading (2000)
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)
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)
Gamma, E., Helm, R., Johnson, R., Vlissides, J.: Design Patterns: Elements of Reusable Object-Oriented Software. Addison-Wesley, Reading (1995)
Rinard, M., et al.: FLEX Compiler Infrastructure (2002), http://www.flex-compiler.lcs.mit.edu/Harpoon/
OVM/Consortium. OVM An Open RTSJ Compliant JVM (2002), http://www.ovmj.org/
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)
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)
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)
Siebert, F.: Hard Realtime Garbage Collection in Modern Object Oriented Programming Languages. AICAS GmbH (2003)
Timesys. JTime Virtual Machine (2002), www.timesys.com
Author information
Authors and Affiliations
Editor information
Editors and Affiliations
Rights 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